← Back to issue list

parts: run debug shell on build environment

View original Github issue

Metadata

Project
snapcraft
Number
#3718
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged. Introduces --debug, --shell, and --shell-after flags to run a build environment shell during parts errors or lifecycle steps. Rebased on snapcraft/7.0, addressed mock feedback, and successfully integrated.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3895 parts: allow debug shell after the lifecycle snapcraft merged 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.
77%
#68 commands: add shell and shell after parameters rockcraft merged Merged pull request adding --shell and --shell-after parameters to lifecycle step commands, enabling interactive shell access during parts lifecycle execution. Approved with 170 lines added across five files.
73%
#2252 build providers: shell in provider if debug is used snapcraft merged Merged changes enabling shell access in build providers during debug sessions. Approved by a reviewer, passed CI, and updated five files with 112 additions and 21 deletions.
73%
#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.
73%
#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.
72%
#81 feat: implement --shell, shell-after, --debug craft-application merged Merged into main, implementing --shell, shell-after, and --debug flags. Approved by two reviewers, passed CI checks, and increased test coverage by 0.05%. Resolves issue #58.
72%
#1404 cleanbuild: ensure we enter a shell on failures on --debug snapcraft merged Merged to ensure cleanbuild enters a shell on failures when --debug is enabled, regardless of flag positioning. Approved by two reviewers, updating four files with 65 additions and 37 deletions.
72%
#740 Allow debugging cleanbuild runs. snapcraft merged Merged: Enables debugging for cleanbuild runs by spawning a shell when the --debug flag is used. Approved by reviewers and integrated into the codebase.
71%