** Description changed:

+ [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://bugs.launchpad.net/ubuntu/+source/docker.io-app/+bug/2040460
+ 2. https://github.com/containerd/containerd/pull/8957#issuecomment-1678829933
+ 
+ [Original description]
+ 
  https://launchpadlibrarian.net/678987210/buildlog_ubuntu-mantic-
  amd64.containerd-app_1.7.2-0ubuntu2_BUILDING.txt.gz
  
  --- FAIL: TestGenerateSeccompSecurityProfileSpecOpts (0.00s)
-     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_default_seccomp_when_seccomp_is_runtime/default
 (0.00s)
-         container_create_linux_test.go:946: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
-               Error:          Not equal: 
-                               expected: 0x26dcae0
-                               actual  : 0x26dbb20
-               Test:           
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_default_seccomp_when_seccomp_is_runtime/default
-     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_specified_profile_when_local_profile_is_specified
 (0.00s)
-         container_create_linux_test.go:946: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
-               Error:          Not equal: 
-                               expected: 0x2690120
-                               actual  : 0x261f040
-               Test:           
TestGenerateSeccompSecurityProfileSpecOpts/should_set_specified_profile_when_local_profile_is_specified
-     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_use_default_profile_when_seccomp_is_empty
 (0.00s)
-         container_create_linux_test.go:946: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
-               Error:          Not equal: 
-                               expected: 0x268fd40
-                               actual  : 0x261f040
-               Test:           
TestGenerateSeccompSecurityProfileSpecOpts/should_use_default_profile_when_seccomp_is_empty
-     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified
 (0.00s)
-         container_create_linux_test.go:946: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
-               Error:          Not equal: 
-                               expected: 0x268f960
-                               actual  : 0x261f040
-               Test:           
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified
-     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified_even_without_prefix
 (0.00s)
-         container_create_linux_test.go:946: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
-               Error:          Not equal: 
-                               expected: 0x268f580
-                               actual  : 0x261f040
-               Test:           
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified_even_without_prefix
-     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_runtime/default
 (0.00s)
-         container_create_linux_test.go:946: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
-               Error:          Not equal: 
-                               expected: 0x26dc7e0
-                               actual  : 0x26dbb20
-               Test:           
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_runtime/default
-     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_fallback_to_docker/default_when_seccomp_is_empty_and_default_is_runtime/default
 (0.00s)
-         container_create_linux_test.go:946: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
-               Error:          Not equal: 
-                               expected: 0x26dc9e0
-                               actual  : 0x26dbb20
-               Test:           
TestGenerateSeccompSecurityProfileSpecOpts/should_fallback_to_docker/default_when_seccomp_is_empty_and_default_is_runtime/default
-     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_docker/default
 (0.00s)
-         container_create_linux_test.go:946: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
-               Error:          Not equal: 
-                               expected: 0x26dc8e0
-                               actual  : 0x26dbb20
-               Test:           
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_docker/default
+     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_default_seccomp_when_seccomp_is_runtime/default
 (0.00s)
+         container_create_linux_test.go:946:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
+              Error:           Not equal:
+                           expected: 0x26dcae0
+                           actual  : 0x26dbb20
+              Test:            
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_default_seccomp_when_seccomp_is_runtime/default
+     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_specified_profile_when_local_profile_is_specified
 (0.00s)
+         container_create_linux_test.go:946:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
+              Error:           Not equal:
+                           expected: 0x2690120
+                           actual  : 0x261f040
+              Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_set_specified_profile_when_local_profile_is_specified
+     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_use_default_profile_when_seccomp_is_empty
 (0.00s)
+         container_create_linux_test.go:946:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
+              Error:           Not equal:
+                           expected: 0x268fd40
+                           actual  : 0x261f040
+              Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_use_default_profile_when_seccomp_is_empty
+     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified
 (0.00s)
+         container_create_linux_test.go:946:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
+              Error:           Not equal:
+                           expected: 0x268f960
+                           actual  : 0x261f040
+              Test:            
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified
+     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified_even_without_prefix
 (0.00s)
+         container_create_linux_test.go:946:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
+              Error:           Not equal:
+                           expected: 0x268f580
+                           actual  : 0x261f040
+              Test:            
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified_even_without_prefix
+     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_runtime/default
 (0.00s)
+         container_create_linux_test.go:946:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
+              Error:           Not equal:
+                           expected: 0x26dc7e0
+                           actual  : 0x26dbb20
+              Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_runtime/default
+     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_fallback_to_docker/default_when_seccomp_is_empty_and_default_is_runtime/default
 (0.00s)
+         container_create_linux_test.go:946:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
+              Error:           Not equal:
+                           expected: 0x26dc9e0
+                           actual  : 0x26dbb20
+              Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_fallback_to_docker/default_when_seccomp_is_empty_and_default_is_runtime/default
+     --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_docker/default
 (0.00s)
+         container_create_linux_test.go:946:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
+              Error:           Not equal:
+                           expected: 0x26dc8e0
+                           actual  : 0x26dbb20
+              Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_docker/default
  --- FAIL: TestGenerateApparmorSpecOpts (0.00s)
-     --- FAIL: 
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_not_specified
 (0.00s)
-         container_create_linux_test.go:1095: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
-               Error:          Not equal: 
-                               expected: 0x2692140
-                               actual  : 0x261faa0
-               Test:           
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_not_specified
-     --- FAIL: 
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_runtime/default
 (0.00s)
-         container_create_linux_test.go:1095: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
-               Error:          Not equal: 
-                               expected: 0x2692000
-                               actual  : 0x261faa0
-               Test:           
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_runtime/default
-     --- FAIL: 
TestGenerateApparmorSpecOpts/sp_should_set_default_apparmor_when_apparmor_is_runtime/default
 (0.00s)
-         container_create_linux_test.go:1095: 
-               Error Trace:    
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
-               Error:          Not equal: 
-                               expected: 0x2691ec0
-                               actual  : 0x261faa0
-               Test:           
TestGenerateApparmorSpecOpts/sp_should_set_default_apparmor_when_apparmor_is_runtime/default
+     --- FAIL: 
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_not_specified
 (0.00s)
+         container_create_linux_test.go:1095:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
+              Error:           Not equal:
+                           expected: 0x2692140
+                           actual  : 0x261faa0
+              Test:            
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_not_specified
+     --- FAIL: 
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_runtime/default
 (0.00s)
+         container_create_linux_test.go:1095:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
+              Error:           Not equal:
+                           expected: 0x2692000
+                           actual  : 0x261faa0
+              Test:            
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_runtime/default
+     --- FAIL: 
TestGenerateApparmorSpecOpts/sp_should_set_default_apparmor_when_apparmor_is_runtime/default
 (0.00s)
+         container_create_linux_test.go:1095:
+              Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
+              Error:           Not equal:
+                           expected: 0x2691ec0
+                           actual  : 0x261faa0
+              Test:            
TestGenerateApparmorSpecOpts/sp_should_set_default_apparmor_when_apparmor_is_runtime/default
  
- 
- It has been fixed in https://github.com/containerd/containerd/commit/0f043ae4
+ It has been fixed in
+ https://github.com/containerd/containerd/commit/0f043ae4

** Description changed:

  [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://bugs.launchpad.net/ubuntu/+source/docker.io-app/+bug/2040460
  2. https://github.com/containerd/containerd/pull/8957#issuecomment-1678829933
+ 
+ [ Other info ]
+ 
+ Not at this time.
  
  [Original description]
  
  https://launchpadlibrarian.net/678987210/buildlog_ubuntu-mantic-
  amd64.containerd-app_1.7.2-0ubuntu2_BUILDING.txt.gz
  
  --- FAIL: TestGenerateSeccompSecurityProfileSpecOpts (0.00s)
      --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_default_seccomp_when_seccomp_is_runtime/default
 (0.00s)
          container_create_linux_test.go:946:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
               Error:           Not equal:
                            expected: 0x26dcae0
                            actual  : 0x26dbb20
               Test:            
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_default_seccomp_when_seccomp_is_runtime/default
      --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_specified_profile_when_local_profile_is_specified
 (0.00s)
          container_create_linux_test.go:946:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
               Error:           Not equal:
                            expected: 0x2690120
                            actual  : 0x261f040
               Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_set_specified_profile_when_local_profile_is_specified
      --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_use_default_profile_when_seccomp_is_empty
 (0.00s)
          container_create_linux_test.go:946:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
               Error:           Not equal:
                            expected: 0x268fd40
                            actual  : 0x261f040
               Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_use_default_profile_when_seccomp_is_empty
      --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified
 (0.00s)
          container_create_linux_test.go:946:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
               Error:           Not equal:
                            expected: 0x268f960
                            actual  : 0x261f040
               Test:            
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified
      --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified_even_without_prefix
 (0.00s)
          container_create_linux_test.go:946:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
               Error:           Not equal:
                            expected: 0x268f580
                            actual  : 0x261f040
               Test:            
TestGenerateSeccompSecurityProfileSpecOpts/sp_should_set_specified_profile_when_local_profile_is_specified_even_without_prefix
      --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_runtime/default
 (0.00s)
          container_create_linux_test.go:946:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
               Error:           Not equal:
                            expected: 0x26dc7e0
                            actual  : 0x26dbb20
               Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_runtime/default
      --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_fallback_to_docker/default_when_seccomp_is_empty_and_default_is_runtime/default
 (0.00s)
          container_create_linux_test.go:946:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
               Error:           Not equal:
                            expected: 0x26dc9e0
                            actual  : 0x26dbb20
               Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_fallback_to_docker/default_when_seccomp_is_empty_and_default_is_runtime/default
      --- FAIL: 
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_docker/default
 (0.00s)
          container_create_linux_test.go:946:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:946
               Error:           Not equal:
                            expected: 0x26dc8e0
                            actual  : 0x26dbb20
               Test:            
TestGenerateSeccompSecurityProfileSpecOpts/should_set_default_seccomp_when_seccomp_is_docker/default
  --- FAIL: TestGenerateApparmorSpecOpts (0.00s)
      --- FAIL: 
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_not_specified
 (0.00s)
          container_create_linux_test.go:1095:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
               Error:           Not equal:
                            expected: 0x2692140
                            actual  : 0x261faa0
               Test:            
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_not_specified
      --- FAIL: 
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_runtime/default
 (0.00s)
          container_create_linux_test.go:1095:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
               Error:           Not equal:
                            expected: 0x2692000
                            actual  : 0x261faa0
               Test:            
TestGenerateApparmorSpecOpts/should_set_default_apparmor_when_apparmor_is_runtime/default
      --- FAIL: 
TestGenerateApparmorSpecOpts/sp_should_set_default_apparmor_when_apparmor_is_runtime/default
 (0.00s)
          container_create_linux_test.go:1095:
               Error Trace:     
/<<PKGBUILDDIR>>/.gopath/src/github.com/containerd/containerd/pkg/cri/sbserver/container_create_linux_test.go:1095
               Error:           Not equal:
                            expected: 0x2691ec0
                            actual  : 0x261faa0
               Test:            
TestGenerateApparmorSpecOpts/sp_should_set_default_apparmor_when_apparmor_is_runtime/default
  
  It has been fixed in
  https://github.com/containerd/containerd/commit/0f043ae4

** Also affects: containerd-app (Ubuntu Focal)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2032754

Title:
  FTBFS with golang-1.21: TestGenerateApparmorSpecOpts fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/containerd-app/+bug/2032754/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to