← Back to issue list

Add --debug for lifecycle steps

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1782773
Type
issue
State
closed
Author
~sergiusens
Labels
18.10-build-vm
Created
Updated
Closed

Current evaluation

Merged snapcraft#3718 (e2ff471b9) added --debug to open a shell in the part build environment after lifecycle errors.

Resolution: closed resolved

Reason: PR #3718 was merged as commit e2ff471b9, adding --debug shell behavior in the failed part's build environment and working directory.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This should shell into the environment if an error occurs. The working directory should be that of the step for the part that failed to run.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged snapcraft#3718 (e2ff471b9) added --debug to open a shell in the part build environment after lifecycle errors.
stealth/space-bunny-alpha — closed stale Abandoned after about eight years: no implementation, comments, or resolving commit was recorded for the proposed lifecycle-step --debug flag.
stealth/space-bunny-alpha — closed stale Closed after prolonged inactivity without a recorded resolution. Later PR #3718 (e2ff471b9) added --debug failure shells and shell options for parts build environments.
qwen/qwen3.6-35b-a3b — — The request to add a --debug flag for lifecycle steps was closed without implementation. Zero comments and no follow-up activity indicate the feature was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to add a --debug flag for lifecycle steps, enabling shell access on error, was abandoned due to inactivity.
qwen/qwen3.6-35b-a3b — — Abandoned. The request to add a --debug flag for shelling into failed lifecycle steps was closed without implementation or discussion after over eight years.
qwen/qwen3.6-35b-a3b — — Closed without comments or implementation. Likely abandoned or superseded, as no resolution or fix was recorded.
qwen/qwen3.6-35b-a3b — — Abandoned. The request to add a --debug flag for shelling into failed lifecycle steps was closed without resolution or comments after over eight years.
qwen3.6-35b-a3b-mtp-q6 — — Adding a --debug flag for lifecycle steps was closed without implementation. No comments or resolution were provided, indicating the feature was abandoned or superseded by later debugging improvements.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#3718 (confidence 99%)

    Merged implementation added --debug, --shell, and --shell-after lifecycle build-environment debugging.

  • Related To: canonical/snapcraft#3895 (confidence 84%)

    Merged as 725d3935; extended debug-shell handling to failures after the parts lifecycle.

Related issues

Issue Project State Summary Similarity
#1782770 Add --debug for lifecycle steps snapcraft (launchpad) closed Closed as stale after no activity. Debug-shell support was later implemented in canonical/snapcraft#2252 (commit 3410ec32d).
87%
#1782769 Add --debug for lifecycle steps snapcraft (launchpad) closed Implemented provider debug-shell support in canonical/snapcraft#2252 (commit 3410ec32d), linked by the maintainer as the resolution for lifecycle-step debugging.
86%
#224 cli, parts: support --debug rockcraft merged Merged #224 in commit ffb57d58, adding --debug support so lifecycle failures open a Snapcraft-style shell before the error propagates.
80%
#1609803 snapcraft cleanbuild --no-clean-up snapcraft (launchpad) closed Cleanbuild debugging landed in snapcore/snapcraft PR #740 (commit a24083e75); follow-up PR #1404 made --debug enter a shell when builds fail.
76%
#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.
75%
#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.
74%
#2976 cli: formalize developer debug as hidden build option snapcraft merged Merged in snapcore/snapcraft#2976 (669e936ac), formalizing developer debug as a hidden build option and forwarding it to LXD/Multipass build environments.
73%
#1782768 Add --shell for lifecycle steps snapcraft (launchpad) closed Feature request closed by the author's own pointer to snapcraft PR #2254, which added --shell support to build providers (commit a24d398e4); companion --shell-after landed in PR #2253.
72%
#2185 cli: reserve the --debug option for snapcraft projects snapcraft merged Merged #2185 in commit 49cf505fc, reserving --debug for snapcraft projects and moving Snapcraft's internal debug logging to the SNAPCRAFT_DEBUG environment variable.
72%
#4959 `--debug` does not enter a shell for failures during post-prime or packing snapcraft closed Fixed in Snapcraft 8.4.1: core24 --debug now opens a shell after post-prime or packing failures via craft-application PR #436 (ab55ec81).
71%