snapcraft cleanbuild --no-clean-up
Metadata
Current evaluation
Cleanbuild debugging landed in snapcore/snapcraft PR #740 (commit a24083e75); follow-up PR #1404 made --debug enter a shell when builds fail.
Resolution: closed resolved
Reason: PR #740 was merged as commit a24083e75, adding debugging support for cleanbuild runs. Later PR #1404 fixed --debug to enter the container shell after build failures.
Evaluated by: mr-cal-bot
No scores available.
Issue body
`snapcraft cleanbuild` is awesome! One way in which it could make my life easier is by allowing me to leave the container it's using for the build around, so I can poke around to debug build failures. :)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Cleanbuild debugging landed in snapcore/snapcraft PR #740 (commit a24083e75); follow-up PR #1404 made --debug enter a shell when builds fail. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented cleanbuild debugging in canonical/snapcraft#740 (commit a24083e75): the --debug option opens a shell in the build container for troubleshooting. | |
| stealth/space-bunny-alpha | — | closed resolved | Closed as implemented via PR #740 (commit a24083e75), adding --debug to open a shell in cleanbuild’s container for debugging instead of a --no-clean-up flag. | |
| qwen/qwen3.6-35b-a3b | — | — | Feature request to add a --no-clean-up flag to snapcraft cleanbuild was closed without implementation. The issue appears abandoned or declined, with no comments or resolution details provided. | |
| qwen/qwen3.6-35b-a3b | — | — | The feature request to add a --no-clean-up flag to snapcraft cleanbuild was closed without implementation. The proposed container retention functionality for debugging was not adopted. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The feature request to add a --no-clean-up flag to snapcraft cleanbuild was closed without implementation due to zero comments and over nine years of inactivity. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#740
(confidence 100%)
Merged in commit a24083e75 to support cleanbuild debugging and directly linked from the closing discussion.
-
Related To:
snapcore/snapcraft#1404
(confidence 95%)
Follow-up commit ensuring --debug opens a shell in the container when the build fails.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1746359 snapcraft cleanbuild --debug should provide guidance on build failure | snapcraft (launchpad) | closed | Superseded by Snapcraft 3.x base-based build environments, which replaced the legacy cleanbuild --debug container workflow. | |
| #1808800 snapcraft clean does not work inside snapcraft --debug | snapcraft (launchpad) | closed | The managed-host failure in snapcraft clean inside snapcraft --debug was already fixed in an earlier release; maintainer confirmation was added on 2020-08-24. | |
| #1697979 snapcraft fails on initial cleanbuild probe | snapcraft (launchpad) | closed | Closed as obsolete: cleanbuild was decommissioned, and standard Snapcraft builds now transparently use a clean build environment. | |
| #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. | |
| #2044389 snapcraft clean failed but exit 0 | snapcraft (launchpad) | open | Snapcraft 7.5.3 reports a missing build environment during clean but exits 0; a maintainer confirmed the bug and agreed it should fail, with no fix recorded. | |
| #1548492 Snapcraft swallows exceptions | snapcraft (launchpad) | closed | Added a global --debug flag for tracebacks and debug logs via merged PR ubuntu-core/snapcraft#332 (commit 580c43ebc). | |
| #1570706 Snapcraft cleanbuild command doesn't work | snapcraft (launchpad) | closed | Fixed by merged canonical/snapcraft PR #458 (f78b1e3a3), which corrected Cleanbuilder constructor arguments so snapcraft cleanbuild could initialize its container. | |
| #1086 print snapcraft's version on startup when running with --debug | snapcraft | merged | PR #1086 (commit c21dc1abc) merged into master, printing Snapcraft's version banner at startup in --debug mode; fixes LP bug #1659817. Integration test expectations updated. | |
| #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. | |
| #1675516 can't cleanbuild snapcraft itself | snapcraft (launchpad) | closed | Fresh testing confirmed Snapcraft could build itself successfully; the report was closed after the suspected interim fix was verified. |