I cannot run this tests even as a root since it seems that nftables is not installed by default in my autopkgtest runner.
Also, I see that the upstream CI runs for Debian (not Ubuntu), but mostly with root privileges. https://cirrus-ci.com/github/containers/buildah For context, they used to run with Ubuntu but their CI was failing for a while and they decided to replace it with Debian https://github.com/containers/buildah/pull/4610 https://github.com/containers/automation_images/pull/250 https://github.com/containers/automation_images/issues/203 When including a test dependency on nftables, I still get the following error: not ok 10 add --ignorefile # (from function `assert' in file ./helpers.bash, line 541, # from function `expect_output' in file ./helpers.bash, line 568, # in test file ./add.bats, line 233) # `expect_output --from="$filelist" "$expect" "container file list"' failed # /tmp/autopkgtest.qbwCWr/build.GxL/real-tree/tests /tmp/autopkgtest.qbwCWr/build.GxL/real-tree/tests # # /usr/bin/buildah from --signature-policy /tmp/autopkgtest.qbwCWr/build.GxL/real-tree/tests/policy.json scratch # working-container # # /usr/bin/buildah copy --ignorefile /tmp/buildah_tests.d89xpp/mytest/.ignore working-container /tmp/buildah_tests.d89xpp/mytest /stuff # Error: --ignorefile option requires that you specify a context dir using --contextdir # [ rc=125 (expected) ] # expr: syntax error: unexpected argument '[^=]*=\(.*\)' # # /usr/bin/buildah add --contextdir=/tmp/buildah_tests.d89xpp/mytest --ignorefile /tmp/buildah_tests.d89xpp/mytest/.ignore working-container /tmp/buildah_tests.d89xpp/mytest /stuff # 37567270ef1763a2f52fecd67577153a2d8b3fe5ddabe527dc383119425b0643 # # /usr/bin/buildah mount working-container # /tmp/buildah_tests.d89xpp/root/vfs/dir/6832ea039bd0978af0599c13493e55122102483550040999b92203ef8cd4ec12 # # /usr/bin/buildah umount working-container # dafe54d735cc2b7a6a5c7ce22a1ac0bb0ffd28e5c3ecb5805bca01b18653bbf3 # #/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv # #| FAIL: container file list # #| expected: ' # stuff # stuff/mystuff' # #| actual: '' # #\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # /tmp/autopkgtest.qbwCWr/build.GxL/real-tree/tests The relevant bit seems to be # expr: syntax error: unexpected argument '[^=]*=\(.*\)' Could this be an issue with the rust coreutils? This is the line being executed: local value=$(expr "$opt" : '[^=]*=\(.*\)') There are a few other failing tests here as well. Buildah has been blocking a few other packages from migrating, so I believe that at this point, we should assume we cannot run these tests ATM and skip them. FWIW, Debian also skips them since they need isolation-machine: 216s autopkgtest [10:30:23]: @@@@@@@@@@@@@@@@@@@@ summary 216s bats SKIP Test restriction "isolation-machine" requires testbed capability "isolation-machine" 216s bats SKIP Test restriction "isolation-machine" requires testbed capability "isolation-machine" 216s dh-golang-autopkgtest PASS https://ci.debian.net/packages/g/golang-github-containers- buildah/unstable/amd64/ We will still run the upstream test suite through autodep8 though ** Bug watch added: github.com/containers/automation_images/issues #203 https://github.com/containers/automation_images/issues/203 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2136831 Title: 1.42.1+ds1-2 autopkgtest failures in resolute due to various apparmor issues To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/golang-github-containers-buildah/+bug/2136831/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
