GNU bug report logs

#32394 [PATCH] gnu: restic: Fix tests.

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Reply or subscribe to this bug. View this bug as an mbox, status mbox, or maintainer mbox

Report forwarded to guix-patches@gnu.org:
bug#32394; Package guix-patches. (Wed, 08 Aug 2018 05:30:02 GMT) (full text, mbox, link).


Acknowledgement sent to Oleg Pykhalov <go.wigust@gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches@gnu.org. (Wed, 08 Aug 2018 05:30:02 GMT) (full text, mbox, link).


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

From: Oleg Pykhalov <go.wigust@gmail.com>
To: guix-patches@gnu.org
Cc: Oleg Pykhalov <go.wigust@gmail.com>
Subject: [PATCH] gnu: restic: Fix tests.
Date: Wed, 8 Aug 2018 08:29:06 +0300
* gnu/packages/backup.scm (restic)[arguments]: Replace 'check' phase.
---
 gnu/packages/backup.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 0733d9c34..bca070d3f 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -850,6 +850,9 @@ is like a time machine for your data. ")
     (build-system go-build-system)
     (arguments
      `(#:import-path "github.com/restic/restic"
+       #:modules ((srfi srfi-26)
+                  (guix build go-build-system)
+                  (guix build utils))
        #:unpack-path "github.com/restic"
       ;; We don't need to install the source code for end-user applications.
        #:install-source? #f
@@ -862,6 +865,18 @@ is like a time machine for your data. ")
                                         ,version)
                (invoke "go" "run" "build.go"))))
 
+         (replace 'check
+           (lambda _
+             (with-directory-excursion (string-append
+                                        "src/github.com/restic/restic-"
+                                        ,version)
+               (for-each (cut delete-file <>)
+                         '(;; Requires a network.
+                           "internal/backend/rest/rest_int_test.go"
+                           ;; unexpected error: fusermount: exit status 1
+                           "cmd/restic/integration_fuse_test.go"))
+               (invoke "go" "run" "build.go" "--test"))))
+
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out"))
-- 
2.18.0





Information forwarded to guix-patches@gnu.org:
bug#32394; Package guix-patches. (Wed, 08 Aug 2018 13:23:04 GMT) (full text, mbox, link).


Message #8 received at 32394@debbugs.gnu.org (full text, mbox, reply):

From: Leo Famulari <leo@famulari.name>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 32394@debbugs.gnu.org
Subject: Re: [bug#32394] [PATCH] gnu: restic: Fix tests.
Date: Wed, 8 Aug 2018 09:22:15 -0400
[Message part 1 (text/plain, inline)]
On Wed, Aug 08, 2018 at 08:29:06AM +0300, Oleg Pykhalov wrote:
> * gnu/packages/backup.scm (restic)[arguments]: Replace 'check' phase.

Thanks, LGTM! Should we report the issues upstream?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches@gnu.org:
bug#32394; Package guix-patches. (Wed, 08 Aug 2018 17:59:01 GMT) (full text, mbox, link).


Message #11 received at 32394@debbugs.gnu.org (full text, mbox, reply):

From: Oleg Pykhalov <go.wigust@gmail.com>
To: Leo Famulari <leo@famulari.name>
Cc: 32394@debbugs.gnu.org
Subject: Re: [bug#32394] [PATCH] gnu: restic: Fix tests.
Date: Wed, 08 Aug 2018 20:58:32 +0300
[Message part 1 (text/plain, inline)]
Hello Leo,

Thank you for review.

Leo Famulari <leo@famulari.name> writes:

> On Wed, Aug 08, 2018 at 08:29:06AM +0300, Oleg Pykhalov wrote:
>> * gnu/packages/backup.scm (restic)[arguments]: Replace 'check' phase.
>
> Thanks, LGTM! Should we report the issues upstream?

I've played little bit more and found that
‘internal/backend/rest/rest_int_test.go’ is actually passes.

Pushed 4976ebddf1a4735ee12808083876f573121993bf as with changes:
[restic.diff (text/x-patch, inline)]
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index bca070d3f..251dadf84 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -850,9 +850,6 @@ is like a time machine for your data. ")
     (build-system go-build-system)
     (arguments
      `(#:import-path "github.com/restic/restic"
-       #:modules ((srfi srfi-26)
-                  (guix build go-build-system)
-                  (guix build utils))
        #:unpack-path "github.com/restic"
       ;; We don't need to install the source code for end-user applications.
        #:install-source? #f
@@ -870,11 +867,8 @@ is like a time machine for your data. ")
              (with-directory-excursion (string-append
                                         "src/github.com/restic/restic-"
                                         ,version)
-               (for-each (cut delete-file <>)
-                         '(;; Requires a network.
-                           "internal/backend/rest/rest_int_test.go"
-                           ;; unexpected error: fusermount: exit status 1
-                           "cmd/restic/integration_fuse_test.go"))
+               ;; unexpected error: fusermount: exit status 1
+               (delete-file "cmd/restic/integration_fuse_test.go")
                (invoke "go" "run" "build.go" "--test"))))
 
          (replace 'install
[Message part 3 (text/plain, inline)]
I'm not sure about reporting to upstream, because I think fusermount
fail in a build process is Guix specific.  WDYT?

Oleg.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches@gnu.org:
bug#32394; Package guix-patches. (Wed, 08 Aug 2018 18:51:02 GMT) (full text, mbox, link).


Message #14 received at 32394@debbugs.gnu.org (full text, mbox, reply):

From: Leo Famulari <leo@famulari.name>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 32394@debbugs.gnu.org
Subject: Re: [bug#32394] [PATCH] gnu: restic: Fix tests.
Date: Wed, 8 Aug 2018 14:50:27 -0400
[Message part 1 (text/plain, inline)]
On Wed, Aug 08, 2018 at 08:58:32PM +0300, Oleg Pykhalov wrote:
> I'm not sure about reporting to upstream, because I think fusermount
> fail in a build process is Guix specific.  WDYT?

Agreed, if it's really specific to Guix then I think we should not report
it.
[signature.asc (application/pgp-signature, inline)]

Added tag(s) fixed. Request was from Oleg Pykhalov <go.wigust@gmail.com> to control@debbugs.gnu.org. (Wed, 08 Aug 2018 20:45:02 GMT) (full text, mbox, link).


bug closed, send any further explanations to 32394@debbugs.gnu.org and Oleg Pykhalov <go.wigust@gmail.com> Request was from Oleg Pykhalov <go.wigust@gmail.com> to control@debbugs.gnu.org. (Wed, 08 Aug 2018 20:45:02 GMT) (full text, mbox, link).


Information forwarded to guix-patches@gnu.org:
bug#32394; Package guix-patches. (Wed, 08 Aug 2018 20:45:03 GMT) (full text, mbox, link).


Message #21 received at 32394-done@debbugs.gnu.org (full text, mbox, reply):

From: Oleg Pykhalov <go.wigust@gmail.com>
To: Leo Famulari <leo@famulari.name>
Cc: 32394-done@debbugs.gnu.org
Subject: Re: [bug#32394] [PATCH] gnu: restic: Fix tests.
Date: Wed, 08 Aug 2018 23:44:09 +0300
[Message part 1 (text/plain, inline)]
Leo Famulari <leo@famulari.name> writes:

> On Wed, Aug 08, 2018 at 08:58:32PM +0300, Oleg Pykhalov wrote:
>> I'm not sure about reporting to upstream, because I think fusermount
>> fail in a build process is Guix specific.  WDYT?
>
> Agreed, if it's really specific to Guix then I think we should not report
> it.

OK, then I close the bug report.

Thanks,
Oleg.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs@gnu.org> to internal_control@debbugs.gnu.org. (Thu, 06 Sep 2018 11:24:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Nov 4 22:18:12 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.