GNU bug report logs -
#74225
[PATCH] lint: Check for more types of custom 'check phases.
Previous Next
Reported by: Dariqq <dariqq <at> posteo.net>
Date: Wed, 6 Nov 2024 11:05:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
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 74225 in the body.
You can then email your comments to 74225 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix <at> cbaines.net, dev <at> jpoiret.xyz, ludo <at> gnu.org, othacehe <at> gnu.org, zimon.toutoune <at> gmail.com, me <at> tobias.gr, guix-patches <at> gnu.org
:
bug#74225
; Package
guix-patches
.
(Wed, 06 Nov 2024 11:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dariqq <dariqq <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
guix <at> cbaines.net, dev <at> jpoiret.xyz, ludo <at> gnu.org, othacehe <at> gnu.org, zimon.toutoune <at> gmail.com, me <at> tobias.gr, guix-patches <at> gnu.org
.
(Wed, 06 Nov 2024 11:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* guix/lint.scm (check-optional-tests): Also check for add-before and
add-after when adding custom 'check phases.
Change-Id: Idc959f90d7e9aa9d5001f34e00f88b41aa20fb2a
---
Hi,
Stumbled upon a test failure in u-boot-utils today which is not using #:tests? for its custom 'check phase but not being detected by the linter. Reason is that the 'check phase is added after 'install and not just replacing it.
This little patch makes it it possible to detect it and adds 38 more warnings.
guix/lint.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/guix/lint.scm b/guix/lint.scm
index 8c6c20c723..4ba728da33 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -1433,6 +1433,10 @@ (define (check-optional-tests package)
(match delta
(`(replace 'check ,expression)
(check-check-procedure expression))
+ (`(add-after ,_ 'check ,expression)
+ (check-check-procedure expression))
+ (`(add-before ,_ 'check ,expression)
+ (check-check-procedure expression))
(_ '())))
(define (check-phases-deltas deltas)
(append-map check-phases-delta deltas))
base-commit: 0c1a6db8094dc6b20762eceae369daae545fc5e4
--
2.46.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#74225
; Package
guix-patches
.
(Sat, 16 Nov 2024 11:00:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 74225 <at> debbugs.gnu.org (full text, mbox):
Hi,
On Wed, 06 Nov 2024 at 10:46, Dariqq <dariqq <at> posteo.net> wrote:
> diff --git a/guix/lint.scm b/guix/lint.scm
> index 8c6c20c723..4ba728da33 100644
> --- a/guix/lint.scm
> +++ b/guix/lint.scm
> @@ -1433,6 +1433,10 @@ (define (check-optional-tests package)
> (match delta
> (`(replace 'check ,expression)
> (check-check-procedure expression))
> + (`(add-after ,_ 'check ,expression)
> + (check-check-procedure expression))
> + (`(add-before ,_ 'check ,expression)
> + (check-check-procedure expression))
Please note that 'check here is up to packagers. They might pick the
symbol 'tests or 'run-check or 'adjusted-tests or 'custom-tests or
whatever else. To my knowledge, there is no real convention.
Well, I do not know.
Cheers,
simon
Information forwarded
to
guix-patches <at> gnu.org
:
bug#74225
; Package
guix-patches
.
(Tue, 19 Nov 2024 14:33:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 74225 <at> debbugs.gnu.org (full text, mbox):
Hi Simon,
On 16.11.24 09:07, Simon Tournier wrote:
> Hi,
>
> On Wed, 06 Nov 2024 at 10:46, Dariqq <dariqq <at> posteo.net> wrote:
>
>> diff --git a/guix/lint.scm b/guix/lint.scm
>> index 8c6c20c723..4ba728da33 100644
>> --- a/guix/lint.scm
>> +++ b/guix/lint.scm
>> @@ -1433,6 +1433,10 @@ (define (check-optional-tests package)
>> (match delta
>> (`(replace 'check ,expression)
>> (check-check-procedure expression))
>> + (`(add-after ,_ 'check ,expression)
>> + (check-check-procedure expression))
>> + (`(add-before ,_ 'check ,expression)
>> + (check-check-procedure expression))
>
> Please note that 'check here is up to packagers. They might pick the
> symbol 'tests or 'run-check or 'adjusted-tests or 'custom-tests or
> whatever else. To my knowledge, there is no real convention.
>
Of course this is not perfect because the name of the phase to run the
tests is arbitrary but this (simple) change catches this problem in 38
packages currently in guix (and 'check seems to be convention in guix)
This came out of a frustration with failing tests in u-boot-tools which
implements a custom 'check phase after 'install which before
e6ec657c497cdfe9130b7bf5bdfb717a823bf02b were unskipable but passed the
lint check.
> Well, I do not know.
>
> Cheers,
> simon
Dariqq
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Wed, 18 Dec 2024 10:47:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Dariqq <dariqq <at> posteo.net>
:
bug acknowledged by developer.
(Wed, 18 Dec 2024 10:47:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 74225-done <at> debbugs.gnu.org (full text, mbox):
Dariqq <dariqq <at> posteo.net> skribis:
> * guix/lint.scm (check-optional-tests): Also check for add-before and
> add-after when adding custom 'check phases.
>
> Change-Id: Idc959f90d7e9aa9d5001f34e00f88b41aa20fb2a
Applied, thanks!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 15 Jan 2025 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 211 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.