git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
@ 2019-02-08 10:48 Randall S. Becker
  2019-02-08 10:55 ` Johannes Schindelin
  2019-02-08 11:10 ` SZEDER Gábor
  0 siblings, 2 replies; 8+ messages in thread
From: Randall S. Becker @ 2019-02-08 10:48 UTC (permalink / raw)
  To: 'Junio C Hamano', git; +Cc: 'Linux Kernel', git-packagers

Hi All,

We have a few new breakages on the NonStop port in 2.21.0-rc0. The first is in t5403, as below:

/home/git/git/t/trash directory.t5403-post-checkout-hook/clone3/.git/hooks/post-checkout: line 2: $GIT_DIR/post-checkout.args: ambiguous redirect
not ok 8 - post-checkout hook is triggered by clone
#
#               mkdir -p templates/hooks &&
#               write_script templates/hooks/post-checkout <<-\EOF &&
#               echo "$@" >$GIT_DIR/post-checkout.args
#               EOF
#               git clone --template=templates . clone3 &&
#               test -f clone3/.git/post-checkout.args
#

The post-checkout hook is:
#!/usr/local/bin/bash
echo "$@" >$GIT_DIR/post-checkout.args

This looks like it is a "bash thing" and $GIT_DIR might have to be in quotes, and is not be specific to the platform. If I replace 

echo "$@" >$GIT_DIR/post-checkout.args

with

echo "$@" >"$GIT_DIR/post-checkout.args"

The test passes. I wonder I should provide this patch or whether the author would like to do so.

Thanks,
Randall


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
  2019-02-08 10:48 [Breakage] Git v2.21.0-rc0 - t5403 (NonStop) Randall S. Becker
@ 2019-02-08 10:55 ` Johannes Schindelin
  2019-02-08 10:58   ` Randall S. Becker
  2019-02-08 11:10 ` SZEDER Gábor
  1 sibling, 1 reply; 8+ messages in thread
From: Johannes Schindelin @ 2019-02-08 10:55 UTC (permalink / raw)
  To: Randall S. Becker
  Cc: 'Junio C Hamano', git, 'Linux Kernel',
	git-packagers

Hi Randall,

On Fri, 8 Feb 2019, Randall S. Becker wrote:

> This looks like it is a "bash thing" and $GIT_DIR might have to be in
> quotes, and is not be specific to the platform. If I replace 
> 
> echo "$@" >$GIT_DIR/post-checkout.args
> 
> with
> 
> echo "$@" >"$GIT_DIR/post-checkout.args"
> 
> The test passes. I wonder I should provide this patch or whether the
> author would like to do so.

It is the correct fix, you came up with it, why not simply provide a
patch yourself?

Thanks,
Dscho

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
  2019-02-08 10:55 ` Johannes Schindelin
@ 2019-02-08 10:58   ` Randall S. Becker
  0 siblings, 0 replies; 8+ messages in thread
From: Randall S. Becker @ 2019-02-08 10:58 UTC (permalink / raw)
  To: 'Johannes Schindelin'
  Cc: 'Junio C Hamano', git, 'Linux Kernel',
	git-packagers

On February 8, 2019 5:56, Johannes Schindelin wrote:
> To: Randall S. Becker <rsbecker@nexbridge.com>
> Cc: 'Junio C Hamano' <gitster@pobox.com>; git@vger.kernel.org; 'Linux
> Kernel' <linux-kernel@vger.kernel.org>; git-packagers@googlegroups.com
> Subject: Re: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
> 
> Hi Randall,
> 
> On Fri, 8 Feb 2019, Randall S. Becker wrote:
> 
> > This looks like it is a "bash thing" and $GIT_DIR might have to be in
> > quotes, and is not be specific to the platform. If I replace
> >
> > echo "$@" >$GIT_DIR/post-checkout.args
> >
> > with
> >
> > echo "$@" >"$GIT_DIR/post-checkout.args"
> >
> > The test passes. I wonder I should provide this patch or whether the
> > author would like to do so.
> 
> It is the correct fix, you came up with it, why not simply provide a patch
> yourself?

Will do (later today)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
  2019-02-08 10:48 [Breakage] Git v2.21.0-rc0 - t5403 (NonStop) Randall S. Becker
  2019-02-08 10:55 ` Johannes Schindelin
@ 2019-02-08 11:10 ` SZEDER Gábor
  2019-02-08 11:36   ` Randall S. Becker
  2019-02-08 20:11   ` Todd Zullinger
  1 sibling, 2 replies; 8+ messages in thread
From: SZEDER Gábor @ 2019-02-08 11:10 UTC (permalink / raw)
  To: Randall S. Becker
  Cc: Jeff King, 'Junio C Hamano', git, 'Linux Kernel',
	git-packagers

On Fri, Feb 08, 2019 at 05:48:27AM -0500, Randall S. Becker wrote:
> We have a few new breakages on the NonStop port in 2.21.0-rc0. The first is in t5403, as below:
> 
> /home/git/git/t/trash directory.t5403-post-checkout-hook/clone3/.git/hooks/post-checkout: line 2: $GIT_DIR/post-checkout.args: ambiguous redirect
> not ok 8 - post-checkout hook is triggered by clone
> #
> #               mkdir -p templates/hooks &&
> #               write_script templates/hooks/post-checkout <<-\EOF &&
> #               echo "$@" >$GIT_DIR/post-checkout.args
> #               EOF
> #               git clone --template=templates . clone3 &&
> #               test -f clone3/.git/post-checkout.args
> #
> 
> The post-checkout hook is:
> #!/usr/local/bin/bash
> echo "$@" >$GIT_DIR/post-checkout.args
> 
> This looks like it is a "bash thing" and $GIT_DIR might have to be in quotes, and is not be specific to the platform. If I replace 
> 
> echo "$@" >$GIT_DIR/post-checkout.args
> 
> with
> 
> echo "$@" >"$GIT_DIR/post-checkout.args"
> 
> The test passes.

Wow, this is the second time this "redirection to a filename with
spaces under Bash" issue pops up today, see the other one here:

  https://public-inbox.org/git/20190208031746.22683-2-tmz@pobox.com/T/#u

In short, Bash (when invoked as bash) doesn't conform to POSIX in this
respect; for a (too detailed) explanation see:

  https://public-inbox.org/git/20180926121107.GH27036@localhost/

Even our CodingGuidelines suggest the use of quotes around the
redirection's target.

> I wonder I should provide this patch or whether the author would like to do so.

Well, since you didn't Cc the author, he might very well overlook this
issue, so I think you should ;)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
  2019-02-08 11:10 ` SZEDER Gábor
@ 2019-02-08 11:36   ` Randall S. Becker
  2019-02-08 20:11   ` Todd Zullinger
  1 sibling, 0 replies; 8+ messages in thread
From: Randall S. Becker @ 2019-02-08 11:36 UTC (permalink / raw)
  To: 'SZEDER Gábor'
  Cc: 'Jeff King', 'Junio C Hamano', git,
	'Linux Kernel', git-packagers, orgads,
	'Duy Nguyen'

On February 8, 2019 6:10, SZEDER Gábor
> On Fri, Feb 08, 2019 at 05:48:27AM -0500, Randall S. Becker wrote:
> > We have a few new breakages on the NonStop port in 2.21.0-rc0. The first
> is in t5403, as below:
> >
> > /home/git/git/t/trash
> > directory.t5403-post-checkout-hook/clone3/.git/hooks/post-checkout:
> > line 2: $GIT_DIR/post-checkout.args: ambiguous redirect not ok 8 - post-
> checkout hook is triggered by clone #
> > #               mkdir -p templates/hooks &&
> > #               write_script templates/hooks/post-checkout <<-\EOF &&
> > #               echo "$@" >$GIT_DIR/post-checkout.args
> > #               EOF
> > #               git clone --template=templates . clone3 &&
> > #               test -f clone3/.git/post-checkout.args
> > #
> >
> > The post-checkout hook is:
> > #!/usr/local/bin/bash
> > echo "$@" >$GIT_DIR/post-checkout.args
> >
> > This looks like it is a "bash thing" and $GIT_DIR might have to be in
> > quotes, and is not be specific to the platform. If I replace
> >
> > echo "$@" >$GIT_DIR/post-checkout.args
> >
> > with
> >
> > echo "$@" >"$GIT_DIR/post-checkout.args"
> >
> > The test passes.
> 
> Wow, this is the second time this "redirection to a filename with spaces
> under Bash" issue pops up today, see the other one here:
> 
>   https://public-inbox.org/git/20190208031746.22683-2-
> tmz@pobox.com/T/#u
> 
> In short, Bash (when invoked as bash) doesn't conform to POSIX in this
> respect; for a (too detailed) explanation see:
> 
>   https://public-inbox.org/git/20180926121107.GH27036@localhost/
> 
> Even our CodingGuidelines suggest the use of quotes around the
> redirection's target.
> 
> > I wonder I should provide this patch or whether the author would like to do
> so.
> 
> Well, since you didn't Cc the author, he might very well overlook this issue,
> so I think you should ;)

+ Nguyen and Orgad

Thanks. Fix has been submitted as a patch. This is definitely a common one. 😊


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
  2019-02-08 11:10 ` SZEDER Gábor
  2019-02-08 11:36   ` Randall S. Becker
@ 2019-02-08 20:11   ` Todd Zullinger
  2019-02-08 20:30     ` SZEDER Gábor
  1 sibling, 1 reply; 8+ messages in thread
From: Todd Zullinger @ 2019-02-08 20:11 UTC (permalink / raw)
  To: SZEDER Gábor
  Cc: Randall S. Becker, Jeff King, 'Junio C Hamano', git,
	'Linux Kernel', git-packagers

SZEDER Gábor wrote:
> On Fri, Feb 08, 2019 at 05:48:27AM -0500, Randall S. Becker wrote:
>> We have a few new breakages on the NonStop port in 2.21.0-rc0. The first is in t5403, as below:
[...]
>> The post-checkout hook is:
>> #!/usr/local/bin/bash
>> echo "$@" >$GIT_DIR/post-checkout.args
>> 
>> This looks like it is a "bash thing" and $GIT_DIR might have to be in quotes, and is not be specific to the platform. If I replace 
>> 
>> echo "$@" >$GIT_DIR/post-checkout.args
>> 
>> with
>> 
>> echo "$@" >"$GIT_DIR/post-checkout.args"
>> 
>> The test passes.
> 
> Wow, this is the second time this "redirection to a filename with
> spaces under Bash" issue pops up today, see the other one here:
> 
>   https://public-inbox.org/git/20190208031746.22683-2-tmz@pobox.com/T/#u

Indeed, I was surprised to see another one today.

It made me wonder how I had missed it in my own testing.
This one requires SHELL_PATH to be bash, while I only set
TEST_SHELL_PATH to bash for the improved -x tracing in the
fedora builds.

I ran the tests again with SHELL_PATH as bash on fedora and
this was the only failure I saw (other than the one from my
earlier message, that is).

-- 
Todd

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
  2019-02-08 20:11   ` Todd Zullinger
@ 2019-02-08 20:30     ` SZEDER Gábor
  2019-02-09  6:48       ` Todd Zullinger
  0 siblings, 1 reply; 8+ messages in thread
From: SZEDER Gábor @ 2019-02-08 20:30 UTC (permalink / raw)
  To: Todd Zullinger
  Cc: Randall S. Becker, Jeff King, 'Junio C Hamano', git,
	'Linux Kernel', git-packagers

On Fri, Feb 08, 2019 at 03:11:29PM -0500, Todd Zullinger wrote:
> It made me wonder how I had missed it in my own testing.
> This one requires SHELL_PATH to be bash, while I only set
> TEST_SHELL_PATH to bash for the improved -x tracing in the
> fedora builds.

Note that you don't need Bash to use '-x' tracing since a5bf824f3b (t:
prevent '-x' tracing from interfering with test helpers' stderr,
2018-02-25) and the followup commits, except for 't1510-repo-setup.sh'
(and even t1510 just falls back to ignore '-x' instead of causing
failures).


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Breakage] Git v2.21.0-rc0 - t5403 (NonStop)
  2019-02-08 20:30     ` SZEDER Gábor
@ 2019-02-09  6:48       ` Todd Zullinger
  0 siblings, 0 replies; 8+ messages in thread
From: Todd Zullinger @ 2019-02-09  6:48 UTC (permalink / raw)
  To: SZEDER Gábor
  Cc: Randall S. Becker, Jeff King, 'Junio C Hamano', git

[-cc: linux-kernel & git-packagers]

SZEDER Gábor wrote:
> On Fri, Feb 08, 2019 at 03:11:29PM -0500, Todd Zullinger wrote:
>> It made me wonder how I had missed it in my own testing.
>> This one requires SHELL_PATH to be bash, while I only set
>> TEST_SHELL_PATH to bash for the improved -x tracing in the
>> fedora builds.
> 
> Note that you don't need Bash to use '-x' tracing since a5bf824f3b (t:
> prevent '-x' tracing from interfering with test helpers' stderr,
> 2018-02-25) and the followup commits, except for 't1510-repo-setup.sh'
> (and even t1510 just falls back to ignore '-x' instead of causing
> failures).

Huh, cool.  I somehow missed that nice improvement.  Thanks
for all your fine work on the test suite!  It makes my life
as a packager much better having a robust test suite running
with each build.

-- 
Todd

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-02-09  6:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-08 10:48 [Breakage] Git v2.21.0-rc0 - t5403 (NonStop) Randall S. Becker
2019-02-08 10:55 ` Johannes Schindelin
2019-02-08 10:58   ` Randall S. Becker
2019-02-08 11:10 ` SZEDER Gábor
2019-02-08 11:36   ` Randall S. Becker
2019-02-08 20:11   ` Todd Zullinger
2019-02-08 20:30     ` SZEDER Gábor
2019-02-09  6:48       ` Todd Zullinger

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).