You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The release workflow fails because the provided GitHub runner image is 24.04, but the charms are packed for 22.04. This wouldn't be an issue if charmcraft was using LXD to provide the packing instance, but the release workflow uses --destructive packing instead.
If using destructive packing, the host OS version must match the platform/bases version of the charm being packed. Since 22.04 != 24.04, charmcraft pack --destructive will fail in the runner VM.
To Reproduce
Merge a new PR or push to main 🙈
Environment
ubuntu-24.04 GitHub runner image.
Relevant log output
Run canonical/charming-actions/[email protected]
/usr/bin/sudo snap install charmcraft --classic --channel latest/stable
2024-11-18T18:40:58Z INFO Waiting for automatic snapd restart...
charmcraft 3.2.1 from Canonical** installed
/usr/bin/sudo charmcraft pack --quiet --destructive-mode
Ubuntu 22.04 builds cannot be performed on this Ubuntu 24.04 system.
Recommended resolution: Run a managed build, or run on a compatible host.
Full execution log: '/root/.local/state/charmcraft/log/charmcraft-20241118-184126.461852.log'
Error: The process '/usr/bin/sudo' failed with exit code 78
Error: Error: The process '/usr/bin/sudo' failed with exit code 78
at ExecState._setResult (/home/runner/work/_actions/canonical/charming-actions/2.5.0-rc/dist/upload-charm/index.js:3950:25)
at ExecState.CheckComplete (/home/runner/work/_actions/canonical/charming-actions/2.5.0-rc/dist/upload-charm/index.js:3933:18)
at ChildProcess.<anonymous> (/home/runner/work/_actions/canonical/charming-actions/2.5.0-rc/dist/upload-charm/index.js:3827:27)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)
/usr/bin/sudo test -d /root/snap/charmcraft/common/cache/charmcraft/log
No charmcraft logs generated, skipping artifact upload.
Additional context
This should be fixed alongside our onboarding of charmcraftcache for faster CI builds. This way we don't need to wait 45 minutes for integration tests to complete.
The text was updated successfully, but these errors were encountered:
Bug Description
The release workflow fails because the provided GitHub runner image is 24.04, but the charms are packed for 22.04. This wouldn't be an issue if charmcraft was using LXD to provide the packing instance, but the
release
workflow uses--destructive
packing instead.If using destructive packing, the host OS version must match the
platform
/bases
version of the charm being packed. Since 22.04 != 24.04,charmcraft pack --destructive
will fail in the runner VM.To Reproduce
Merge a new PR or push to
main
🙈Environment
ubuntu-24.04 GitHub runner image.
Relevant log output
Additional context
This should be fixed alongside our onboarding of
charmcraftcache
for faster CI builds. This way we don't need to wait 45 minutes for integration tests to complete.The text was updated successfully, but these errors were encountered: