ci: skip buildah unshare when the cache cleanup runs as root
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/push/e2e Pipeline was successful

This commit is contained in:
justme committed 2026-10-21 15:42:35 +08:00
1 parent 15318de919
commit 63f62956d0
2 files changed
+11 -5

No files matched your search

+2 -1
View File
@@ -174,7 +174,8 @@ esac
for line in calls:
self.assertIn('||', line, f'{script}: {line.strip()}')
cleanup = (ROOT / 'ci/cleanup-build-cache.sh').read_text()
self.assertIn('if ! buildah unshare python3', cleanup)
self.assertIn('if ! in_userns python3', cleanup)
self.assertIn('[[ "$(id -u)" == 0 ]]', cleanup) # root 不进 buildah unshare,这台主机上它会报 memfd_create
def test_linux_packages_preserve_installers_and_shared_library_payloads(self):
with tempfile.TemporaryDirectory() as directory: