`--debug` does not enter a shell for failures during post-prime or packing
Metadata
Current evaluation
Resolved in pull request #436. The --debug flag now correctly opens a shell when post-prime or packing steps fail, fixing a regression that blocked artifact troubleshooting.
Suggested action: —
No scores available.
Issue body
### What needs to get done
Wrap the post-prime and pack steps with the debug shell function
### Why it needs to get done
* Providing `--debug` and not getting a debug shell when an artefact fails to pack is unintuitive
* Users need a way to troubleshooting packing an artefact
* It's a regression for snapcraft in core24 (https://github.com/canonical/snapcraft/issues/4959)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Resolved in pull request #436. The --debug flag now correctly opens a shell when post-prime or packing steps fail, fixing a regression that blocked artifact troubleshooting. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in #436 by wrapping post-prime and pack steps with the debug shell function, restoring expected behavior when artifacts fail to pack. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed a regression where --debug failed to open a shell during post-prime or packing failures. The fix was merged in pull request #436. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4959 `--debug` does not enter a shell for failures during post-prime or packing | snapcraft | closed | The --debug flag failed to enter a container during post-prime or packing failures for core24 snaps due to a craft-application regression. Fixed via craft-application PR #436 and released in snapcraft 8.4.1. | |
| #1074 --shell and --debug fail cryptically with late pack failures | craft-application | closed | Closed and transferred to craft-application repository. Root cause identified: post-prime failures bypass --shell/--debug guards. Fix requires wrapping _run_post_prime_steps() in error handling. Pending upstream resolution. | |
| #436 feat: support shell/shell-after and debug in 'pack' | craft-application | merged | Merged following two approvals and passing CI. Introduces --shell and --shell-after flags to the pack command for build environment inspection, and improves --debug to activate on packing failures. Resolves #430. |