← Back to issue list

Add --debug for lifecycle steps

View original Launchpad issue

Metadata

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

Current evaluation

Implemented provider debug-shell support in canonical/snapcraft#2252 (commit 3410ec32d), linked by the maintainer as the resolution for lifecycle-step debugging.

Resolution: closed resolved

Reason: The maintainer linked canonical/snapcraft#2252, and repository history identifies merged commit 3410ec32d as adding a provider shell when --debug is used. Later canonical/snapcraft#3718 (e2ff471b9) refined lifecycle-specific debug-shell behavior.

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 Implemented provider debug-shell support in canonical/snapcraft#2252 (commit 3410ec32d), linked by the maintainer as the resolution for lifecycle-step debugging.
stealth/space-bunny-alpha — closed resolved Resolved by snapcraft#2252 (3410ec32d); lifecycle --debug shell support was completed by snapcraft#3718 (e2ff471b9).
stealth/space-bunny-alpha — closed stale Abandoned as stale with no comments. The requested --debug behavior was later implemented by merged PR #2252 (commit 3410ec32d), which added provider shells for debug sessions.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to add a --debug flag for lifecycle steps, enabling shell access on failure, was abandoned with no comments or resolution.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to add a --debug flag for lifecycle steps to shell into the environment on failure was not pursued.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The feature request to add a --debug flag for lifecycle steps, enabling shell access on errors, was abandoned due to prolonged inactivity.
qwen3.6-35b-a3b-mtp-q6 — — The --debug flag request was closed without implementation. Zero comments indicate the feature was abandoned or superseded by other debugging mechanisms.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#2252 (confidence 98%)

    Merged as commit 3410ec32d and directly linked in the issue's only maintainer comment.

  • Related To: canonical/snapcraft#3718 (confidence 85%)

    Commit e2ff471b9 later added lifecycle build-environment debug-shell support.

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).
88%
#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.
86%
#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.
77%
#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.
74%