RE: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop)
- Date: Fri, 8 Feb 2019 15:38:05 -0500
- From: "Randall S. Becker" <rsbecker@xxxxxxxxxxxxx>
- Subject: RE: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop)
> -----Original Message-----
> From: Jeff King <peff@xxxxxxxx>
> Sent: February 8, 2019 14:32
> To: Randall S. Becker <rsbecker@xxxxxxxxxxxxx>
> Cc: 'Junio C Hamano' <gitster@xxxxxxxxx>; git@xxxxxxxxxxxxxxx; 'Linux
> Kernel' <linux-kernel@xxxxxxxxxxxxxxx>; git-packagers@xxxxxxxxxxxxxxxx
> Subject: Re: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop)
> On Fri, Feb 08, 2019 at 02:26:17PM -0500, Randall S. Becker wrote:
> > > > For this, we could use truncate -s count file instead of dd to get
> > > > a fixed size file of nulls. This would remove the need for
> > > > /dev/zero in
> > > > t5318 (the patch below probably will wrap badly in my mailer so I
> > > > can submit a real patch separately.
> > >
> > > I don't think "truncate" is portable, though.
> > It is available AFAIK on Linux, POSIX, and Windows under Cygwin.
> > That's more than /dev/zero has anyway. I have the patch ready if you
> > want it.
> Is it POSIX? Certainly truncate() is, but I didn't think the command-line tool
> was. If it really is available everywhere, then yeah, I'd be fine with it.
> > > > > Other cases don't seem to actually care that they're getting
> > > > > NULs, and are just redirecting stdin from /dev/zero to get an
> > > > > infinite amount of input. They could probably use "yes" for that.
> > > >
> > > > What about reading from /dev/null?
> > >
> > > That would yield zero bytes, not an infinite number of them.
> > So something like: yes | tr 'y' '\0' | stuff?
> Exactly (if we even care about them being NULs; otherwise, we can omit the
> "tr" invocation).
I'm a bit perplexed about this... Obviously added some debugging info, but why we're getting No REQUEST_METHOD is perplexing. Is this a lack of an apache2 instance?
yes | tr "y" "\\0" | git http-backend 2>err &&
echo "Err is" &&
cat err &&
grep "fatal:.*CONTENT_LENGTH" err
Status: 500 Internal Server Error
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Cache-Control: no-cache, max-age=0, must-revalidate
fatal: No REQUEST_METHOD from server
not ok 15 - CONTENT_LENGTH overflow ssite_t