unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#69960] [PATCH gnome-team 1/2] gnu: todoman: Update style.
  2024-03-23 10:24 [bug#69960] [PATCH gnome-team 0/2] Fix todoman test failure Vivien Kraus via Guix-patches via
@ 2024-03-23 10:20 ` Vivien Kraus via Guix-patches via
  2024-03-23 10:48   ` Liliana Marie Prikler
  2024-03-23 10:21 ` [bug#69960] [PATCH gnome-team 2/2] gnu: todoman: Fix tests Vivien Kraus via Guix-patches via
  1 sibling, 1 reply; 7+ messages in thread
From: Vivien Kraus via Guix-patches via @ 2024-03-23 10:20 UTC (permalink / raw)
  To: 69960; +Cc: rg, vivien, liliana.prikler, maxim.cournoyer

* gnu/packages/task-management.scm (todoman) [arguments]: Convert to list of G-Expressions.

Change-Id: I63faadabb27fa2053e3e01c3e285176bc040c634
---
 gnu/packages/task-management.scm | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm
index f9221f8483..aac643799f 100644
--- a/gnu/packages/task-management.scm
+++ b/gnu/packages/task-management.scm
@@ -443,21 +443,22 @@ (define-public todoman
           (base32 "1j2h5cv8wnmw41fpz1ggsgi599qhk184cas9kgd92glj3m4alg6f"))))
     (build-system python-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'patch-tests
-           (lambda _
-             (substitute* '("tests/test_cli.py" "tests/test_formatter.py")
-               (("tests\\.helpers") "helpers"))))
-         (replace 'check
-           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
-             (when tests?
-               (invoke "pytest" "-vv" "tests" "-k"
-                       (string-append
-                        ;; Test expects wrong output string.
-                        "not test_bad_start_date "
-                        ;; Unknown failure
-                        "and not test_default_command_args"))))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-tests
+            (lambda _
+              (substitute* '("tests/test_cli.py" "tests/test_formatter.py")
+                (("tests\\.helpers") "helpers"))))
+          (replace 'check
+            (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+              (when tests?
+                (invoke "pytest" "-vv" "tests" "-k"
+                        (string-append
+                         ;; Test expects wrong output string.
+                         "not test_bad_start_date "
+                         ;; Unknown failure
+                         "and not test_default_command_args"))))))))
     (native-inputs
       (list python-setuptools-scm
             python-pytest
-- 
2.41.0




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

* [bug#69960] [PATCH gnome-team 2/2] gnu: todoman: Fix tests.
  2024-03-23 10:24 [bug#69960] [PATCH gnome-team 0/2] Fix todoman test failure Vivien Kraus via Guix-patches via
  2024-03-23 10:20 ` [bug#69960] [PATCH gnome-team 1/2] gnu: todoman: Update style Vivien Kraus via Guix-patches via
@ 2024-03-23 10:21 ` Vivien Kraus via Guix-patches via
  2024-03-23 10:50   ` Liliana Marie Prikler
  1 sibling, 1 reply; 7+ messages in thread
From: Vivien Kraus via Guix-patches via @ 2024-03-23 10:21 UTC (permalink / raw)
  To: 69960; +Cc: rg, vivien, liliana.prikler, maxim.cournoyer

* gnu/packages/task-management.scm (todoman) [#:phase 'check]: Load the `ci'
hypothesis profile provided by upstream.

Change-Id: I2ea01f8c424a50cd617303f8338f92563e7b0204
---
 gnu/packages/task-management.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm
index aac643799f..96df50d747 100644
--- a/gnu/packages/task-management.scm
+++ b/gnu/packages/task-management.scm
@@ -453,7 +453,8 @@ (define-public todoman
           (replace 'check
             (lambda* (#:key inputs outputs tests? #:allow-other-keys)
               (when tests?
-                (invoke "pytest" "-vv" "tests" "-k"
+                (invoke "pytest" "--hypothesis-profile=ci"
+                        "-vv" "tests" "-k"
                         (string-append
                          ;; Test expects wrong output string.
                          "not test_bad_start_date "
-- 
2.41.0




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

* [bug#69960] [PATCH gnome-team 0/2] Fix todoman test failure
@ 2024-03-23 10:24 Vivien Kraus via Guix-patches via
  2024-03-23 10:20 ` [bug#69960] [PATCH gnome-team 1/2] gnu: todoman: Update style Vivien Kraus via Guix-patches via
  2024-03-23 10:21 ` [bug#69960] [PATCH gnome-team 2/2] gnu: todoman: Fix tests Vivien Kraus via Guix-patches via
  0 siblings, 2 replies; 7+ messages in thread
From: Vivien Kraus via Guix-patches via @ 2024-03-23 10:24 UTC (permalink / raw)
  To: 69960; +Cc: liliana.prikler, maxim.cournoyer, rg, vivien

Dear Guix,

The todoman test suite should be run with the "ci" hypothesis profile, so as
to disable deadlines and other nice improvements.

What do you think?

Best regards,

Vivien

Vivien Kraus (2):
  gnu: todoman: Update style.
  gnu: todoman: Fix tests.

 gnu/packages/task-management.scm | 32 +++++++++++++++++---------------
 1 file changed, 17 insertions(+), 15 deletions(-)


base-commit: a9951a74a591a9b22ee2d93d8efe0523c6c42c97
-- 
2.41.0




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

* [bug#69960] [PATCH gnome-team 1/2] gnu: todoman: Update style.
  2024-03-23 10:20 ` [bug#69960] [PATCH gnome-team 1/2] gnu: todoman: Update style Vivien Kraus via Guix-patches via
@ 2024-03-23 10:48   ` Liliana Marie Prikler
  0 siblings, 0 replies; 7+ messages in thread
From: Liliana Marie Prikler @ 2024-03-23 10:48 UTC (permalink / raw)
  To: Vivien Kraus, 69960; +Cc: rg, maxim.cournoyer

Am Samstag, dem 23.03.2024 um 11:20 +0100 schrieb Vivien Kraus:
> * gnu/packages/task-management.scm (todoman) [arguments]: Convert to
> list of G-Expressions.
> 
> Change-Id: I63faadabb27fa2053e3e01c3e285176bc040c634
LGTM




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

* [bug#69960] [PATCH gnome-team 2/2] gnu: todoman: Fix tests.
  2024-03-23 10:21 ` [bug#69960] [PATCH gnome-team 2/2] gnu: todoman: Fix tests Vivien Kraus via Guix-patches via
@ 2024-03-23 10:50   ` Liliana Marie Prikler
  2024-03-23 10:52     ` Vivien Kraus via Guix-patches via
  0 siblings, 1 reply; 7+ messages in thread
From: Liliana Marie Prikler @ 2024-03-23 10:50 UTC (permalink / raw)
  To: Vivien Kraus, 69960; +Cc: rg, maxim.cournoyer

Am Samstag, dem 23.03.2024 um 11:21 +0100 schrieb Vivien Kraus:
> * gnu/packages/task-management.scm (todoman) [#:phase 'check]: Load
> the `ci'
> hypothesis profile provided by upstream.
> 
> Change-Id: I2ea01f8c424a50cd617303f8338f92563e7b0204
SGTM.  If you're okay with it, I'd locally rephrase this to [#:phases]
<check> and push it with that change once it's confirmed by the rest,
WDTY?




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

* [bug#69960] [PATCH gnome-team 2/2] gnu: todoman: Fix tests.
  2024-03-23 10:50   ` Liliana Marie Prikler
@ 2024-03-23 10:52     ` Vivien Kraus via Guix-patches via
  2024-03-24 11:15       ` bug#69960: " Liliana Marie Prikler
  0 siblings, 1 reply; 7+ messages in thread
From: Vivien Kraus via Guix-patches via @ 2024-03-23 10:52 UTC (permalink / raw)
  To: Liliana Marie Prikler, 69960; +Cc: rg, maxim.cournoyer

Le samedi 23 mars 2024 à 11:50 +0100, Liliana Marie Prikler a écrit :
> Am Samstag, dem 23.03.2024 um 11:21 +0100 schrieb Vivien Kraus:
> > * gnu/packages/task-management.scm (todoman) [#:phase 'check]: Load
> > the `ci'
> > hypothesis profile provided by upstream.
> > 
> > Change-Id: I2ea01f8c424a50cd617303f8338f92563e7b0204
> SGTM.  If you're okay with it, I'd locally rephrase this to
> [#:phases]
> <check> and push it with that change once it's confirmed by the rest,
> WDTY?

Sorry, I always hesitate with this. I will try my best to do the
correct thing in the future, but in the mean time, please go ahead.

Vivien




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

* bug#69960: [PATCH gnome-team 2/2] gnu: todoman: Fix tests.
  2024-03-23 10:52     ` Vivien Kraus via Guix-patches via
@ 2024-03-24 11:15       ` Liliana Marie Prikler
  0 siblings, 0 replies; 7+ messages in thread
From: Liliana Marie Prikler @ 2024-03-24 11:15 UTC (permalink / raw)
  To: Vivien Kraus, 69960-done; +Cc: rg, maxim.cournoyer

Am Samstag, dem 23.03.2024 um 11:52 +0100 schrieb Vivien Kraus:
> Le samedi 23 mars 2024 à 11:50 +0100, Liliana Marie Prikler a écrit :
> > Am Samstag, dem 23.03.2024 um 11:21 +0100 schrieb Vivien Kraus:
> > > * gnu/packages/task-management.scm (todoman) [#:phase 'check]:
> > > Load the `ci' hypothesis profile provided by upstream.
> > > 
> > > Change-Id: I2ea01f8c424a50cd617303f8338f92563e7b0204
> > SGTM.  If you're okay with it, I'd locally rephrase this to
> > [#:phases] <check> and push it with that change once it's confirmed
> > by the rest,WDTY?
> 
> Sorry, I always hesitate with this. I will try my best to do the
> correct thing in the future, but in the mean time, please go ahead.
It's fine – I do fall back to my own writing style a lot, and the
guidelines aren't super close on the details as of yet, so I sometimes
go ahead with edits and hesitate at other times.

Anyway, pushed.




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

end of thread, other threads:[~2024-03-24 11:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-23 10:24 [bug#69960] [PATCH gnome-team 0/2] Fix todoman test failure Vivien Kraus via Guix-patches via
2024-03-23 10:20 ` [bug#69960] [PATCH gnome-team 1/2] gnu: todoman: Update style Vivien Kraus via Guix-patches via
2024-03-23 10:48   ` Liliana Marie Prikler
2024-03-23 10:21 ` [bug#69960] [PATCH gnome-team 2/2] gnu: todoman: Fix tests Vivien Kraus via Guix-patches via
2024-03-23 10:50   ` Liliana Marie Prikler
2024-03-23 10:52     ` Vivien Kraus via Guix-patches via
2024-03-24 11:15       ` bug#69960: " Liliana Marie Prikler

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

	https://git.savannah.gnu.org/cgit/guix.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).