parts: allow debug shell after the lifecycle
Metadata
Current evaluation
Merged #3895 (725d3935) into hotfix/7.1.4, allowing --debug to open a build-environment shell when packing fails after the parts lifecycle.
Resolution: closed resolved
Reason: The approved change was merged as commit 725d3935 into hotfix/7.1.4, resolving post-lifecycle packing failures by preserving the debug shell workflow.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Shell into the instance if `--debug` is used and a packing error happens
after the execution of the parts lifecycle.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint`?
- [ ] Have you successfully run `pytest tests/unit`?
-----
CRAFT-1286
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #3895 (725d3935) into hotfix/7.1.4, allowing --debug to open a build-environment shell when packing fails after the parts lifecycle. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3895 (725d3935) into hotfix/7.1.4, allowing --debug to open a shell after parts-lifecycle packing errors. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #3895 (725d3935) into hotfix/7.1.4, allowing --debug to open a shell after parts-lifecycle packing errors. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged into hotfix/7.1.4. Enables a debug shell after the parts lifecycle when packing errors occur. Approved and verified by the reporter, though a separate cmake fix may have also resolved the original issue. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into hotfix/7.1.4. Enables a debug shell after the parts lifecycle upon packing failure. Contributor confirmed the change resolves the issue, though a separate cmake fix may have also contributed. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3718 parts: run debug shell on build environment | snapcraft | merged | Merged as e2ff471b9: added --debug, --shell and --shell-after to open a shell in the parts build environment on errors or around lifecycle steps. | |
| #436 feat: support shell/shell-after and debug in 'pack' | craft-application | merged | Merged craft-application#436 (commit ab55ec81), adding --shell/--shell-after to pack and making --debug shell into the build environment when packing fails; fixes #430. | |
| #1782773 Add --debug for lifecycle steps | snapcraft (launchpad) | closed | Merged snapcraft#3718 (e2ff471b9) added --debug to open a shell in the part build environment after lifecycle errors. | |
| #495 pack: add support for --debug, --shell, and --shell-after (CRAFT-408) | charmcraft | merged | Merged in commit 1a957995, adding --debug, --shell, and --shell-after to pack for interactive and failure-triggered build debugging. |