Details
-
Type:
Bug
-
Status: Done
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.1.0
-
Labels:None
-
Backlog:yes
-
Days in progress:0
Description
The unit tests for mender-artifact can fail with go panic. This does not happen very often, approximately 1/5 runs.
It was first seen during the 3.1.0b1 release builds of mender-artifact, were was observed that without code changes, some times the unit tests will fail with a go panic.
- Build for mender-artifact 3.1.0b1-build8 on GitLab Pipeline 75606270.
- Dummy PR launched to reproduce the error. on GitLab Pipeline 76138022.
Error trace follows:
panic: Fail in goroutine after TestCopyFromStdin has completed goroutine 770 [running]: testing.(*common).Fail(0xc420440000) /snap/go/3133/src/testing/testing.go:509 +0x134 testing.(*common).FailNow(0xc420440000) /snap/go/3133/src/testing/testing.go:531 +0x2b testing.(*common).Fatalf(0xc420440000, 0x86046b, 0x18, 0x0, 0x0, 0x0) /snap/go/3133/src/testing/testing.go:597 +0x83 github.com/mendersoftware/mender-artifact/cli/mender-artifact.TestCopyFromStdin.func5(0xc420440000, 0xc42023e038) /home/lluis/go/src/github.com/mendersoftware/mender-artifact/cli/mender-artifact/copy_test.go:720 +0x82 created by github.com/mendersoftware/mender-artifact/cli/mender-artifact.TestCopyFromStdin /home/lluis/go/src/github.com/mendersoftware/mender-artifact/cli/mender-artifact/copy_test.go:716 +0x3ed FAIL github.com/mendersoftware/mender-artifact/cli/mender-artifact 7.935s
It can be reproduced locally executing multiple times the command:
go test -count=1 github.com/mendersoftware/mender-artifact/cli/mender-artifact