← Back to issue list

Automatically clean and redo step if part is specified

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1774260
Type
issue
State
closed
Author
~kyrofa
Labels
18.10-build-caching
Created
Updated
Closed

Current evaluation

Explicitly named parts now clean and rerun the requested lifecycle step instead of being skipped; fixed by merged PR canonical/snapcraft#2152 (9d1407a85).

Resolution: closed resolved

Reason: PR canonical/snapcraft#2152 was merged as commit 9d1407a85, implementing automatic cleanup and rerun of a specified part's step.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Currently, if part A has already been pulled, running `snapcraft pull A` skips the pull step of A, saying it has already been run. Instead, snapcraft should clean the pull step of A and re-run it, since it was explicitly requested.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Explicitly named parts now clean and rerun the requested lifecycle step instead of being skipped; fixed by merged PR canonical/snapcraft#2152 (9d1407a85).
stealth/space-bunny-alpha — closed resolved Explicitly specified parts now clean and rerun the requested step instead of being skipped. Fixed by merged PR #2152 in commit 9d1407a85.
stealth/space-bunny-alpha — closed stale Requested automatic cleaning and rerunning of an explicitly selected part; no linked fix or follow-up discussion was identified.
qwen/qwen3.6-35b-a3b — — Closed and abandoned without implementation. The requested behavior to automatically clean and re-run explicitly specified cached parts was not addressed.
qwen/qwen3.6-35b-a3b — — Automatically cleaning and re-running specified parts was closed without implementation. Zero comments indicate the feature was abandoned or superseded by updated build caching behavior.
qwen/qwen3.6-35b-a3b — — Request to automatically clean and re-run explicitly specified parts was closed without implementation. Zero comments and extended inactivity indicate the feature was abandoned.
qwen/qwen3.6-35b-a3b — — Snapcraft's automatic cleanup feature request was closed without resolution. It was likely abandoned, as no fix, alternative, or discussion was provided over several years.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The automatic clean-and-redo behavior for explicitly specified parts was not added, likely superseded by later build caching improvements.

Update history

Date Change
created

Related work

Related issues

Issue Project State Summary Similarity
#2152 many: automatically redo step for specified part snapcraft merged Merged as commit 9d1407a85 in snapcore/snapcraft. Specifying a part on the command line now cleans and re-runs that part's lifecycle step instead of skipping already-completed steps, fixing LP bug #1774260.
83%
#1647907 When a step is dirty, snapcraft doesn't autoclean and reexecute it snapcraft (launchpad) closed Automatic cleanup and rebuilding of outdated lifecycle steps was implemented in canonical/snapcraft#2145 and merged as d033c7d0f.
79%
#2145 lifecycle: automatically clean dirty steps snapcraft merged Merged in canonical/snapcraft#2145 (commit d033c7d0f), adding opt-in outdated_step_action=clean to rebuild changed lifecycle steps and resolve LP #1774021.
78%
#1537786 lifecycle: allow do clean rebuild of all/parts without having to pull all again snapcraft (launchpad) closed Added per-part, per-step clean commands via merged canonical/snapcraft PR #401 (88d21b180), allowing lifecycle rebuilds without recloning all sources.
78%
#1774021 Support automatically cleaning dirty steps snapcraft (launchpad) closed Fixed by automatically cleaning dirty lifecycle steps in snapcraft PR #2145, merged as commit d033c7d0f.
75%
#4806 Build "part" action forces clean build snapcraft closed Fixed by merged craft-parts PR #727, which limits step reruns and cleaning to explicit requests, restoring incremental `snapcraft build <part>` behavior.
74%
#727 fix(sequencer): rerun steps only if explicitly requested craft-parts merged Merged PR #727 as commit 9182585f, making steps clean and rerun only when explicitly requested by the application; fixes canonical/snapcraft#4806.
73%
#794 Improve lifecycle execution of steps snapcraft merged Merged as commit f1ac5209f (snapcraft#794): lifecycle now runs steps in order using a list instead of a set, moving skip checks to runtime to speed up execution (LP #1590599).
72%