parts: run debug shell on build environment
Metadata
Current evaluation
Merged as e2ff471b9: added --debug, --shell and --shell-after to open a shell in the parts build environment on errors or around lifecycle steps.
Resolution: closed resolved
Reason: PR #3718 was approved and merged as commit e2ff471b9. It added debug-shell handling for failures and lifecycle execution in the parts build environment.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Handle arguments --debug, --shell and --shell-after to run a shell
on the build environment (tipically on instance) in case of a parts
error or to replace a lifecycle step.
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/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
CRAFT-993
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged as e2ff471b9: added --debug, --shell and --shell-after to open a shell in the parts build environment on errors or around lifecycle steps. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #3718 (commit e2ff471b9), adding --debug, --shell and --shell-after to open a shell in the parts build environment on errors or in place of a lifecycle step. | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Implemented --debug, --shell, and --shell-after flags to launch a debug shell on the build environment during parts errors or lifecycle steps. Merged after rebasing to snapcraft/7.0 and addressing review feedback. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#3895
(confidence 90%)
Later PR expanded debug-shell-after support to the full lifecycle.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3895 parts: allow debug shell after the lifecycle | snapcraft | merged | Merged #3895 (725d3935) into hotfix/7.1.4, allowing --debug to open a build-environment shell when packing fails after the parts lifecycle. | |
| #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. | |
| #740 Allow debugging cleanbuild runs. | snapcraft | merged | Merged PR #740 as commit a24083e75, spawning a debug shell inside cleanbuild runs when --debug is used for troubleshooting. | |
| #68 commands: add shell and shell after parameters | rockcraft | merged | Merged #68 in commit c0aa75c1, adding --shell and --shell-after to open interactive shells in the build instance during parts lifecycle execution. |