autopkgtest fails in groovy in 2021

Bug #1910560 reported by Balint Reczey
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
golang-github-spf13-cobra (Debian)
Fix Released
Unknown
golang-github-spf13-cobra (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

https://autopkgtest.ubuntu.com/packages/g/golang-github-spf13-cobra/groovy/armhf

=== RUN TestGoldenAddCmd
    add_test.go:26: "/tmp/autopkgtest.bI0QyR/autopkgtest_tmp/obj-arm-linux-gnueabihf/src/github.com/spf13/cobra/cobra/cmd/testproject/cmd/test.go" and "testdata/test.go.golden" are not equal!

        $ diff -u /tmp/autopkgtest.bI0QyR/autopkgtest_tmp/obj-arm-linux-gnueabihf/src/github.com/spf13/cobra/cobra/cmd/testproject/cmd/test.go testdata/test.go.golden
        --- /tmp/autopkgtest.bI0QyR/autopkgtest_tmp/obj-arm-linux-gnueabihf/src/github.com/spf13/cobra/cobra/cmd/testproject/cmd/test.go 2021-01-06 14:50:42.535821792 +0000
        +++ testdata/test.go.golden 2020-07-16 12:39:18.000000000 +0000
        @@ -1,5 +1,5 @@
         /*
        -Copyright © 2021 NAME HERE <EMAIL ADDRESS>
        +Copyright © 2020 NAME HERE <EMAIL ADDRESS>

         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.

        exit status 1
--- FAIL: TestGoldenAddCmd (0.03s)

Revision history for this message
Anthony Fok (foka) wrote :

See Debian Bug #979583 "golang-github-spf13-cobra: autopkgtest regression in testing: date of execution is capture in comparison":

    https://bugs.debian.org/979583

and its fix by Shengjing Zhu here:

    https://salsa.debian.org/go-team/packages/golang-github-spf13-cobra/-/commit/99b7f2093b5bfecd14d140a6867c7f9a4da468ca

Changed in golang-github-spf13-cobra (Ubuntu):
status: New → Confirmed
Revision history for this message
Anthony Fok (foka) wrote :

Might just as well attach Shengjing Zhu's patch here. :-)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Add patch to set year to fixed value in Cobra golden tests" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Brian Murray (brian-murray) wrote :

 golang-github-spf13-cobra (1.1.1-2) unstable; urgency=medium
 .
   * Team upload.
   * Add patch to set year to fixed value in golden tests (Closes: #979583)
   * Update Section to golang
   * Update Standards-Version to 4.5.1
   * Bump uscan watch file version to 4

Changed in golang-github-spf13-cobra (Ubuntu):
status: Confirmed → Fix Released
Changed in golang-github-spf13-cobra (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.