FTBFS with golang-1.21: TestGenerateApparmorSpecOpts fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
containerd-app (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Committed
|
Undecided
|
Unassigned | ||
Jammy |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
[Impact]
This bug was never present in jammy or focal, but they have tasks here due to an SRU[1] that is backporting 1.7.12 to these releases.
The 1.7.12 backports need golang 1.21, and that would introduce this FTBFS bug in those releases without the patch. Therefore the bug is referenced in the changes file and in d/changelog, and will be closed once the upload is accepted and released. So it's best to explain here what is going on.
[Test plan]
The test plan is to verify that:
a) golang-1.21 was used for the package build
b) the build succeeded
[Where problems could occur]
The fix is a bit of a workaround, and upstream also remarked[2] that eventually the tests should be changed to not need "go:noinline", but in the end these are just test fixes.
1. https:/
2. https:/
[ Other info ]
Not at this time.
[Original description]
--- FAIL: TestGenerateSec
--- FAIL: TestGenerateSec
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateSec
--- FAIL: TestGenerateSec
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateSec
--- FAIL: TestGenerateSec
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateSec
--- FAIL: TestGenerateSec
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateSec
--- FAIL: TestGenerateSec
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateSec
--- FAIL: TestGenerateSec
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateSec
--- FAIL: TestGenerateSec
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateSec
--- FAIL: TestGenerateSec
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateSec
--- FAIL: TestGenerateApp
--- FAIL: TestGenerateApp
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateApp
--- FAIL: TestGenerateApp
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateApp
--- FAIL: TestGenerateApp
Error Trace: /<<PKGBUILDDIR>
Error: Not equal:
Test: TestGenerateApp
It has been fixed in https:/
submitted patch to https:/ /github. com/canonical/ containerd- app/pull/ 3