Source: golang-testify Version: 1.6.1-1 Severity: serious Tags: ftbfs Justification: fails to build from source User: de...@lists.apertis.org Usertags: apertis-ftbfs X-Debbugs-Cc: de...@lists.apertis.org
Dear Maintainer, While preparing the pacakge for a derivative distribution, I have come to notice that the package's (some of the) tests, fail on the armhf architecture. The build failure snippet is below. I also noticed that the same has been seen on the reproducible builds too. **************************************************************************** === RUN TestBoolAssertionFunc === RUN TestBoolAssertionFunc/true === RUN TestBoolAssertionFunc/false --- PASS: TestBoolAssertionFunc (0.00s) --- PASS: TestBoolAssertionFunc/true (0.00s) --- PASS: TestBoolAssertionFunc/false (0.00s) === RUN TestErrorAssertionFunc === RUN TestErrorAssertionFunc/noError === RUN TestErrorAssertionFunc/error --- PASS: TestErrorAssertionFunc (0.00s) --- PASS: TestErrorAssertionFunc/noError (0.00s) --- PASS: TestErrorAssertionFunc/error (0.00s) PASS ok github.com/stretchr/testify/require 0.823s === RUN TestPassedReturnsTrueWhenAllTestsPass --- PASS: TestPassedReturnsTrueWhenAllTestsPass (0.00s) === RUN TestPassedReturnsFalseWhenSomeTestFails --- PASS: TestPassedReturnsFalseWhenSomeTestFails (0.00s) === RUN TestSuiteRequireTwice === RUN TestSuiteRequireTwice === RUN TestSuiteRequireTwice/TestRequireOne suite_test.go:42: Error Trace: suite_test.go:42 Error: Not equal: expected: 1 actual : 2 Test: TestSuiteRequireTwice/TestRequireOne === RUN TestSuiteRequireTwice/TestRequireTwo suite_test.go:47: Error Trace: suite_test.go:47 Error: Not equal: expected: 1 actual : 2 Test: TestSuiteRequireTwice/TestRequireTwo --- FAIL: TestSuiteRequireTwice (0.03s) --- FAIL: TestSuiteRequireTwice/TestRequireOne (0.01s) --- FAIL: TestSuiteRequireTwice/TestRequireTwo (0.00s) --- PASS: TestSuiteRequireTwice (0.03s) === RUN TestSuiteRecoverPanic === RUN TestPanicInSetupSuite suite.go:63: test panicked: oops in setup suite goroutine 21 [running]: runtime/debug.Stack(0x842dbc, 0x2f5ab0, 0x390fc0) /usr/lib/go-1.15/src/runtime/debug/stack.go:24 +0x78 github.com/stretchr/testify/suite.failOnPanic(0x904e00) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:63 +0x3c panic(0x2f5ab0, 0x390fc0) /usr/lib/go-1.15/src/runtime/panic.go:969 +0x158 github.com/stretchr/testify/suite.(*panickingSuite).SetupSuite(0x915260) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:63 +0x38 github.com/stretchr/testify/suite.Run(0x904e00, 0x3966d8, 0x915260) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:118 +0x45c github.com/stretchr/testify/suite.TestSuiteRecoverPanic.func1(0x904e00) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:108 +0x40 testing.tRunner(0x904e00, 0x35343c) /usr/lib/go-1.15/src/testing/testing.go:1123 +0xc8 created by testing.(*T).Run /usr/lib/go-1.15/src/testing/testing.go:1168 +0x220 --- FAIL: TestPanicInSetupSuite (0.01s) === RUN TestPanicInSetupTest === RUN TestPanicInSetupTest/Test suite.go:63: test panicked: oops in setup test goroutine 23 [running]: runtime/debug.Stack(0x89ed64, 0x2f5ab0, 0x390fc8) /usr/lib/go-1.15/src/runtime/debug/stack.go:24 +0x78 github.com/stretchr/testify/suite.failOnPanic(0x904fc0) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:63 +0x3c panic(0x2f5ab0, 0x390fc8) /usr/lib/go-1.15/src/runtime/panic.go:969 +0x158 github.com/stretchr/testify/suite.(*panickingSuite).SetupTest(0xa19940) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:69 +0x38 github.com/stretchr/testify/suite.Run.func1(0x904fc0) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:148 +0x460 testing.tRunner(0x904fc0, 0xa33b30) /usr/lib/go-1.15/src/testing/testing.go:1123 +0xc8 created by testing.(*T).Run /usr/lib/go-1.15/src/testing/testing.go:1168 +0x220 --- FAIL: TestPanicInSetupTest (0.01s) --- FAIL: TestPanicInSetupTest/Test (0.00s) === RUN TestPanicInBeforeTest === RUN TestPanicInBeforeTest/Test suite.go:63: test panicked: oops in before test goroutine 25 [running]: runtime/debug.Stack(0x89ed64, 0x2f5ab0, 0x390fd0) /usr/lib/go-1.15/src/runtime/debug/stack.go:24 +0x78 github.com/stretchr/testify/suite.failOnPanic(0x905180) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:63 +0x3c panic(0x2f5ab0, 0x390fd0) /usr/lib/go-1.15/src/runtime/panic.go:969 +0x158 github.com/stretchr/testify/suite.(*panickingSuite).BeforeTest(0xa4a280, 0x2df382, 0xe, 0x2d0bfb, 0x4) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:75 +0x38 github.com/stretchr/testify/suite.Run.func1(0x905180) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:151 +0x450 testing.tRunner(0x905180, 0xa519a0) /usr/lib/go-1.15/src/testing/testing.go:1123 +0xc8 created by testing.(*T).Run /usr/lib/go-1.15/src/testing/testing.go:1168 +0x220 --- FAIL: TestPanicInBeforeTest (0.01s) --- FAIL: TestPanicInBeforeTest/Test (0.00s) === RUN TestPanicInTest === RUN TestPanicInTest/Test suite.go:63: test panicked: oops in test goroutine 27 [running]: runtime/debug.Stack(0x843c0c, 0x2f5ab0, 0x390fd8) /usr/lib/go-1.15/src/runtime/debug/stack.go:24 +0x78 github.com/stretchr/testify/suite.failOnPanic(0x905340) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:63 +0x3c panic(0x2f5ab0, 0x390fd8) /usr/lib/go-1.15/src/runtime/panic.go:969 +0x158 github.com/stretchr/testify/suite.(*panickingSuite).Test(0xa66bc0) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:81 +0x38 reflect.Value.call(0xa24dc0, 0xa5deb0, 0x13, 0x339a2d, 0x4, 0x843ee0, 0x1, 0x1, 0x2df37b, 0x15, ...) /usr/lib/go-1.15/src/reflect/value.go:476 +0x628 reflect.Value.Call(0xa24dc0, 0xa5deb0, 0x13, 0x89eee0, 0x1, 0x1, 0x0, 0x430100, 0x402) /usr/lib/go-1.15/src/reflect/value.go:337 +0x78 github.com/stretchr/testify/suite.Run.func1(0x905340) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:158 +0x250 testing.tRunner(0x905340, 0xa77810) /usr/lib/go-1.15/src/testing/testing.go:1123 +0xc8 created by testing.(*T).Run /usr/lib/go-1.15/src/testing/testing.go:1168 +0x220 --- FAIL: TestPanicInTest (0.01s) --- FAIL: TestPanicInTest/Test (0.00s) === RUN TestPanicInAfterTest === RUN TestPanicInAfterTest/Test suite.go:63: test panicked: oops in after test goroutine 29 [running]: runtime/debug.Stack(0x89ecf8, 0x2f5ab0, 0x390ee8) /usr/lib/go-1.15/src/runtime/debug/stack.go:24 +0x78 github.com/stretchr/testify/suite.failOnPanic(0x905500) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:63 +0x3c panic(0x2f5ab0, 0x390ee8) /usr/lib/go-1.15/src/runtime/panic.go:969 +0x158 github.com/stretchr/testify/suite.(*panickingSuite).AfterTest(0xa81580, 0x2df382, 0xe, 0x2d0bfb, 0x4) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:87 +0x38 github.com/stretchr/testify/suite.Run.func1.1(0xa900d8, 0x905500, 0x2d0bfb, 0x4, 0x0, 0x0, 0x3991c0, 0xa24dc0, 0xa24dc0, 0xa913d0, ...) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:137 +0xdc github.com/stretchr/testify/suite.Run.func1(0x905500) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:159 +0x2a0 testing.tRunner(0x905500, 0xa9b680) /usr/lib/go-1.15/src/testing/testing.go:1123 +0xc8 created by testing.(*T).Run /usr/lib/go-1.15/src/testing/testing.go:1168 +0x220 --- FAIL: TestPanicInAfterTest (0.01s) --- FAIL: TestPanicInAfterTest/Test (0.00s) === RUN TestPanicInTearDownTest === RUN TestPanicInTearDownTest/Test suite.go:63: test panicked: oops in tear down test goroutine 31 [running]: runtime/debug.Stack(0x843cf8, 0x2f5ab0, 0x390ef0) /usr/lib/go-1.15/src/runtime/debug/stack.go:24 +0x78 github.com/stretchr/testify/suite.failOnPanic(0x9056c0) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:63 +0x3c panic(0x2f5ab0, 0x390ef0) /usr/lib/go-1.15/src/runtime/panic.go:969 +0x158 github.com/stretchr/testify/suite.(*panickingSuite).TearDownTest(0xa9fec0) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:93 +0x38 github.com/stretchr/testify/suite.Run.func1.1(0xa915c0, 0x9056c0, 0x2d0bfb, 0x4, 0x0, 0x0, 0x3991c0, 0xa24dc0, 0xa24dc0, 0xac28b8, ...) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:141 +0xac github.com/stretchr/testify/suite.Run.func1(0x9056c0) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:159 +0x2a0 testing.tRunner(0x9056c0, 0xabd4f0) /usr/lib/go-1.15/src/testing/testing.go:1123 +0xc8 created by testing.(*T).Run /usr/lib/go-1.15/src/testing/testing.go:1168 +0x220 --- FAIL: TestPanicInTearDownTest (0.01s) --- FAIL: TestPanicInTearDownTest/Test (0.00s) === RUN TestPanicInTearDownSuite === RUN TestPanicInTearDownSuite/Test === CONT TestPanicInTearDownSuite suite.go:63: test panicked: oops in tear down suite goroutine 32 [running]: runtime/debug.Stack(0x842d80, 0x2f5ab0, 0x390ef8) /usr/lib/go-1.15/src/runtime/debug/stack.go:24 +0x78 github.com/stretchr/testify/suite.failOnPanic(0x9057a0) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:63 +0x3c panic(0x2f5ab0, 0x390ef8) /usr/lib/go-1.15/src/runtime/panic.go:969 +0x158 github.com/stretchr/testify/suite.(*panickingSuite).TearDownSuite(0xaca800) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:99 +0x38 github.com/stretchr/testify/suite.Run.func2(0x3966d8, 0xaca800, 0xac2aa8, 0x2df382, 0xe) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:166 +0x110 github.com/stretchr/testify/suite.Run(0x9057a0, 0x3966d8, 0xaca800) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite.go:177 +0x604 github.com/stretchr/testify/suite.TestSuiteRecoverPanic.func7(0x9057a0) /srv/build/golang-testify-1.6.1/obj-arm-linux-gnueabihf/src/github.com/stretchr/testify/suite/suite_test.go:132 +0x40 testing.tRunner(0x9057a0, 0x353454) /usr/lib/go-1.15/src/testing/testing.go:1123 +0xc8 created by testing.(*T).Run /usr/lib/go-1.15/src/testing/testing.go:1168 +0x220 --- FAIL: TestPanicInTearDownSuite (0.01s) --- PASS: TestPanicInTearDownSuite/Test (0.00s) --- PASS: TestSuiteRecoverPanic (0.06s) === RUN TestRunSuite === RUN TestRunSuite/TestOne === RUN TestRunSuite/TestSkip suite_test.go:227: === RUN TestRunSuite/TestSubtest === RUN TestRunSuite/TestSubtest/first === RUN TestRunSuite/TestSubtest/second === RUN TestRunSuite/TestTwo === CONT TestRunSuite suite_test.go:269: --- SKIP: TestRunSuite (0.02s) --- PASS: TestRunSuite/TestOne (0.00s) --- SKIP: TestRunSuite/TestSkip (0.00s) --- PASS: TestRunSuite/TestSubtest (0.00s) --- PASS: TestRunSuite/TestSubtest/first (0.00s) --- PASS: TestRunSuite/TestSubtest/second (0.00s) --- PASS: TestRunSuite/TestTwo (0.00s) === RUN TestSkippingSuiteSetup suite.go:190: warning: no tests to run --- PASS: TestSkippingSuiteSetup (0.01s) === RUN TestSuiteGetters --- PASS: TestSuiteGetters (0.00s) === RUN TestSuiteLogging --- PASS: TestSuiteLogging (0.02s) === RUN TestSuiteCallOrder === RUN TestSuiteCallOrder/Test_A === RUN TestSuiteCallOrder/Test_B --- PASS: TestSuiteCallOrder (0.91s) --- PASS: TestSuiteCallOrder/Test_A (0.22s) --- PASS: TestSuiteCallOrder/Test_B (0.23s) === RUN TestSuiteWithStats === RUN TestSuiteWithStats/TestSomething --- PASS: TestSuiteWithStats (0.05s) --- PASS: TestSuiteWithStats/TestSomething (0.00s) === RUN TestFailfastSuite === RUN TestFailfastSuite === RUN TestFailfastSuite/Test_A_Fails suite_test.go:583: Test A meant to fail === RUN TestFailfastSuite/Test_B_Passes --- FAIL: TestFailfastSuite (0.03s) --- FAIL: TestFailfastSuite/Test_A_Fails (0.00s) --- PASS: TestFailfastSuite/Test_B_Passes (0.00s) --- PASS: TestFailfastSuite (0.04s) === RUN TestFailfastSuiteFailFastOn suite_test.go:558: Running go test -v -race -run TestFailfastSuite -failfast suite_test.go:560: suite_test.go:562: exit status 2 --- FAIL: TestFailfastSuiteFailFastOn (0.21s) FAIL FAIL github.com/stretchr/testify/suite 1.521s FAIL dh_auto_test: error: cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 8 github.com/stretchr/testify github.com/stretchr/testify/assert github.com/stretchr/testify/http github.com/stretchr/testify/mock github.com/stretchr/testify/require github.com/stretchr/testify/suite returned exit code 1 make: *** [debian/rules:4: build] Error 255 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 Command `dpkg-buildpackage --changes-option=-DDistribution=bullseye` failed. **************************************************************************** -- System Information: Debian Release: 11.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-6-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_USER Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled