Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload-charm action fails to upload logs when packing in destructive mode #107

Open
lengau opened this issue Oct 18, 2023 · 0 comments
Open
Labels
Status: Triage Type: Bug Something isn't working

Comments

@lengau
Copy link

lengau commented Oct 18, 2023

Bug Description

When packing in destructive mode, charmcraft writes its logs to ~/.local/state/charmcraft/log, but the action checks for the log in /root/snap/charmcraft/[...]

See more details

To Reproduce

See: https://github.com/canonical/mongodb-k8s-operator/actions/runs/6534209543/job/17753492452

Environment

stable channel, on github hosted runners

Relevant log output

/usr/bin/sudo charmcraft pack --quiet --destructive-mode
Parts processing error: Failed to run the build script for part 'charm'.
Full execution log: '/root/.local/state/charmcraft/log/charmcraft-20231016-201530.992500.log'
Error: The process '/usr/bin/sudo' failed with exit code 1
Error: Error: The process '/usr/bin/sudo' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/canonical/charming-actions/2.3.0/dist/upload-charm/index.js:3763:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/canonical/charming-actions/2.3.0/dist/upload-charm/index.js:3746:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/canonical/charming-actions/2.3.0/dist/upload-charm/index.js:3640:27)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
/usr/bin/sudo test -d /root/snap/charmcraft/common/cache/charmcraft/log
No charmcraft logs generated, skipping artifact upload.

Additional context

No response

@lengau lengau added Status: Triage Type: Bug Something isn't working labels Oct 18, 2023
@lengau lengau changed the title Upload-charm action fails when packing in destructive mode Upload-charm action fails to upload logs when packing in destructive mode Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant