GNU bug report logs - #29492
tests/guix-system.sh failure on unbound variable check

Previous Next

Package: guix;

Reported by: Eric Bavier <bavier <at> cray.com>

Date: Tue, 28 Nov 2017 19:26:02 UTC

Severity: normal

Done: Eric Bavier <bavier <at> cray.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29492 in the body.
You can then email your comments to 29492 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#29492; Package guix. (Tue, 28 Nov 2017 19:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eric Bavier <bavier <at> cray.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 28 Nov 2017 19:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eric Bavier <bavier <at> cray.com>
To: "'bug-guix <at> gnu.org'" <bug-guix <at> gnu.org>
Subject: tests/guix-system.sh failure on unbound variable check
Date: Tue, 28 Nov 2017 19:25:03 +0000
Hello Guix,

Latest guix master (2cdf78df2d3d5d88c7e6908754233cf37cce1e61) fails tests/guix-system.sh for me, on line 128.  This seems to be caused by the fact that the error output contains a multi-character column number:

```
/tmp/bavier/tmpfile:9:14: In procedure #<procedure 3aba2820 ()>:
/tmp/bavier/tmpfile:9:14: GRUB-config: unbound variable
hint: Did you forget a `use-modules' form?
./test-env: line 1: 59998 Terminated              "/home/users/bavier/src/guix/pre-inst-env" "/home/users/bavier/src/guix/guix-daemon" --disable-chroot --substitute-urls="$GUIX_BINARY_SUBSTITUTE_URL"
```

Which is not matched by the current grep pattern.  This patch fixes the issue for me, as a follow-up to commit b70d72ac47fdc9364a64bd22962b2e11524e38b2

```
diff --git a/tests/guix-system.sh b/tests/guix-system.sh
index 4bb866a..2138648 100644
--- a/tests/guix-system.sh
+++ b/tests/guix-system.sh
@@ -123,9 +123,9 @@ else
     then
        # FIXME: With Guile 2.2.0 the error is reported on line 4.
        # See <http://bugs.gnu.org/26107>.
-       grep "$tmpfile:[49]:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
+       grep "$tmpfile:[49]:[0-9]\+: GRUB-config.*[Uu]nbound variable" "$errorfile"
     else
-       grep "$tmpfile:9:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
+       grep "$tmpfile:9:[0-9]\+: GRUB-config.*[Uu]nbound variable" "$errorfile"
     fi
 fi

```

Eric Bavier, Scientific Libraries, Cray Inc.





Information forwarded to bug-guix <at> gnu.org:
bug#29492; Package guix. (Thu, 30 Nov 2017 10:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 29492 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Eric Bavier <bavier <at> cray.com>
Cc: 29492 <at> debbugs.gnu.org
Subject: Re: bug#29492: tests/guix-system.sh failure on unbound variable check
Date: Thu, 30 Nov 2017 11:04:25 +0100
[Message part 1 (text/plain, inline)]
Hi Eric,

Eric Bavier <bavier <at> cray.com> skribis:

> Latest guix master (2cdf78df2d3d5d88c7e6908754233cf37cce1e61) fails tests/guix-system.sh for me, on line 128.  This seems to be caused by the fact that the error output contains a multi-character column number:
>
> ```
> /tmp/bavier/tmpfile:9:14: In procedure #<procedure 3aba2820 ()>:
> /tmp/bavier/tmpfile:9:14: GRUB-config: unbound variable
> hint: Did you forget a `use-modules' form?

I suppose that’s with Guile 2.0, right?

So the patch would become:

[Message part 2 (text/x-patch, inline)]
diff --git a/tests/guix-system.sh b/tests/guix-system.sh
index 4bb866adf..eaa0c4332 100644
--- a/tests/guix-system.sh
+++ b/tests/guix-system.sh
@@ -125,7 +125,8 @@ else
 	# See <http://bugs.gnu.org/26107>.
 	grep "$tmpfile:[49]:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
     else
-	grep "$tmpfile:9:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
+	# With Guile 2.0.14 the error is reported on line 14 (the last line).
+	grep "$tmpfile:9:[0-9]\+: GRUB-config.*[Uu]nbound variable" "$errorfile"
     fi
 fi
 
[Message part 3 (text/plain, inline)]
Please push if it works for you.

Thanks,
Ludo’.

Information forwarded to bug-guix <at> gnu.org:
bug#29492; Package guix. (Fri, 01 Dec 2017 23:29:01 GMT) Full text and rfc822 format available.

Message #11 received at 29492 <at> debbugs.gnu.org (full text, mbox):

From: Eric Bavier <bavier <at> cray.com>
To: 'Ludovic Courtès' <ludo <at> gnu.org>
Cc: "'29492 <at> debbugs.gnu.org'" <29492 <at> debbugs.gnu.org>
Subject: RE: bug#29492: tests/guix-system.sh failure on unbound variable check
Date: Fri, 1 Dec 2017 23:28:39 +0000
> -----Original Message-----
> From: Ludovic Courtès [mailto:ludo <at> gnu.org]
> Sent: Thursday, November 30, 2017 4:04 AM
> To: Eric Bavier
> Cc: 29492 <at> debbugs.gnu.org
> Subject: Re: bug#29492: tests/guix-system.sh failure on unbound variable
> check
> 
> Hi Eric,
> 
> Eric Bavier <bavier <at> cray.com> skribis:
> 
> > Latest guix master (2cdf78df2d3d5d88c7e6908754233cf37cce1e61) fails
> tests/guix-system.sh for me, on line 128.  This seems to be caused by the
> fact that the error output contains a multi-character column number:
> >
> > ```
> > /tmp/bavier/tmpfile:9:14: In procedure #<procedure 3aba2820 ()>:
> > /tmp/bavier/tmpfile:9:14: GRUB-config: unbound variable
> > hint: Did you forget a `use-modules' form?
> 
> I suppose that’s with Guile 2.0, right?

Right, 2.0.14.

> So the patch would become:

diff --git a/tests/guix-system.sh b/tests/guix-system.sh
index 4bb866adf..eaa0c4332 100644
--- a/tests/guix-system.sh
+++ b/tests/guix-system.sh
@@ -125,7 +125,8 @@ else
 	# See <http://bugs.gnu.org/26107>.
 	grep "$tmpfile:[49]:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
     else
-	grep "$tmpfile:9:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
+	# With Guile 2.0.14 the error is reported on line 14 (the last line).
+	grep "$tmpfile:9:[0-9]\+: GRUB-config.*[Uu]nbound variable" "$errorfile"
     fi
 fi

No, at *column* 14.  Which I believe is the desired result, right?  Character 14 is the '(', the 'GRUB-config symbol itself starts at character 15.   But now I wonder whether we should be using a regex for that anyhow.  Do we expect the column number to change ever?

I think it would be fine to fix the regex for Guile 2.0 only, but once the bug affecting 2.2 is fixed, it'll need to be applied there too.  Maybe it would make sense to fix both at the same time.

WDYT?

`~Eric

Information forwarded to bug-guix <at> gnu.org:
bug#29492; Package guix. (Sat, 02 Dec 2017 10:01:01 GMT) Full text and rfc822 format available.

Message #14 received at 29492 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Eric Bavier <bavier <at> cray.com>
Cc: "'29492 <at> debbugs.gnu.org'" <29492 <at> debbugs.gnu.org>
Subject: Re: bug#29492: tests/guix-system.sh failure on unbound variable check
Date: Sat, 02 Dec 2017 10:59:57 +0100
Eric Bavier <bavier <at> cray.com> skribis:

>> -----Original Message-----
>> From: Ludovic Courtès [mailto:ludo <at> gnu.org]
>> Sent: Thursday, November 30, 2017 4:04 AM
>> To: Eric Bavier
>> Cc: 29492 <at> debbugs.gnu.org
>> Subject: Re: bug#29492: tests/guix-system.sh failure on unbound variable
>> check
>> 
>> Hi Eric,
>> 
>> Eric Bavier <bavier <at> cray.com> skribis:
>> 
>> > Latest guix master (2cdf78df2d3d5d88c7e6908754233cf37cce1e61) fails
>> tests/guix-system.sh for me, on line 128.  This seems to be caused by the
>> fact that the error output contains a multi-character column number:
>> >
>> > ```
>> > /tmp/bavier/tmpfile:9:14: In procedure #<procedure 3aba2820 ()>:
>> > /tmp/bavier/tmpfile:9:14: GRUB-config: unbound variable
>> > hint: Did you forget a `use-modules' form?
>> 
>> I suppose that’s with Guile 2.0, right?
>
> Right, 2.0.14.
>
>> So the patch would become:
>
> diff --git a/tests/guix-system.sh b/tests/guix-system.sh
> index 4bb866adf..eaa0c4332 100644
> --- a/tests/guix-system.sh
> +++ b/tests/guix-system.sh
> @@ -125,7 +125,8 @@ else
>  	# See <http://bugs.gnu.org/26107>.
>  	grep "$tmpfile:[49]:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
>      else
> -	grep "$tmpfile:9:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
> +	# With Guile 2.0.14 the error is reported on line 14 (the last line).
> +	grep "$tmpfile:9:[0-9]\+: GRUB-config.*[Uu]nbound variable" "$errorfile"
>      fi
>  fi
>
> No, at *column* 14.  Which I believe is the desired result, right?  Character 14 is the '(', the 'GRUB-config symbol itself starts at character 15.   But now I wonder whether we should be using a regex for that anyhow.  Do we expect the column number to change ever?

We don’t, but sometimes location info is not as precise as we’d like.

> I think it would be fine to fix the regex for Guile 2.0 only, but once the bug affecting 2.2 is fixed, it'll need to be applied there too.  Maybe it would make sense to fix both at the same time.

Yes, you’re right, it’s better to fix both.

Feel free to push.

Thank you!

Ludo’.




Reply sent to Eric Bavier <bavier <at> cray.com>:
You have taken responsibility. (Mon, 04 Dec 2017 15:38:02 GMT) Full text and rfc822 format available.

Notification sent to Eric Bavier <bavier <at> cray.com>:
bug acknowledged by developer. (Mon, 04 Dec 2017 15:38:02 GMT) Full text and rfc822 format available.

Message #19 received at 29492-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Bavier <bavier <at> cray.com>
To: "29492-done <at> debbugs.gnu.org" <29492-done <at> debbugs.gnu.org>
Subject: Re: bug#29492: tests/guix-system.sh failure on unbound variable check
Date: Mon, 4 Dec 2017 15:37:19 +0000
Pushed in 42d16037d857aac02add38513bfa58535c1ddcfe

Thanks,

Eric Bavier, Scientific Libraries, Cray Inc.

________________________________________
From: Ludovic Courtès <ludo <at> gnu.org>
Sent: Saturday, December 2, 2017 03:59
To: Eric Bavier
Cc: '29492 <at> debbugs.gnu.org'
Subject: Re: bug#29492: tests/guix-system.sh failure on unbound variable check

Eric Bavier <bavier <at> cray.com> skribis:

>> -----Original Message-----
>> From: Ludovic Courtès [mailto:ludo <at> gnu.org]
>> Sent: Thursday, November 30, 2017 4:04 AM
>> To: Eric Bavier
>> Cc: 29492 <at> debbugs.gnu.org
>> Subject: Re: bug#29492: tests/guix-system.sh failure on unbound variable
>> check
>>
>> Hi Eric,
>>
>> Eric Bavier <bavier <at> cray.com> skribis:
>>
>> > Latest guix master (2cdf78df2d3d5d88c7e6908754233cf37cce1e61) fails
>> tests/guix-system.sh for me, on line 128.  This seems to be caused by the
>> fact that the error output contains a multi-character column number:
>> >
>> > ```
>> > /tmp/bavier/tmpfile:9:14: In procedure #<procedure 3aba2820 ()>:
>> > /tmp/bavier/tmpfile:9:14: GRUB-config: unbound variable
>> > hint: Did you forget a `use-modules' form?
>>
>> I suppose that’s with Guile 2.0, right?
>
> Right, 2.0.14.
>
>> So the patch would become:
>
> diff --git a/tests/guix-system.sh b/tests/guix-system.sh
> index 4bb866adf..eaa0c4332 100644
> --- a/tests/guix-system.sh
> +++ b/tests/guix-system.sh
> @@ -125,7 +125,8 @@ else
>       # See <http://bugs.gnu.org/26107>.
>       grep "$tmpfile:[49]:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
>      else
> -     grep "$tmpfile:9:[0-9]: GRUB-config.*[Uu]nbound variable" "$errorfile"
> +     # With Guile 2.0.14 the error is reported on line 14 (the last line).
> +     grep "$tmpfile:9:[0-9]\+: GRUB-config.*[Uu]nbound variable" "$errorfile"
>      fi
>  fi
>
> No, at *column* 14.  Which I believe is the desired result, right?  Character 14 is the '(', the 'GRUB-config symbol itself starts at character 15.   But now I wonder whether we should be using a regex for that anyhow.  Do we expect the column number to change ever?

We don’t, but sometimes location info is not as precise as we’d like.

> I think it would be fine to fix the regex for Guile 2.0 only, but once the bug affecting 2.2 is fixed, it'll need to be applied there too.  Maybe it would make sense to fix both at the same time.

Yes, you’re right, it’s better to fix both.

Feel free to push.

Thank you!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 Jan 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.