parts: allow debug shell after the lifecycle
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into hotfix/7.1.4. Enables a debug shell after the parts lifecycle when packing fails. The reporter verified clean builds succeed, noting a separate cmake fix may have also resolved the original issue. |
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. Adds debug, shell, and shell-after flags to launch a build environment shell during parts errors or to replace lifecycle steps. Approved by reviewer, rebased, and passed CI before integration. | |
| #224 cli, parts: support --debug | rockcraft | merged | Merged after two approvals and passing CI. Adds a --debug flag to the CLI and parts module that spawns an interactive shell on lifecycle step failures before propagating errors, mirroring Snapcraft's implementation. |