← Back to issue list

many: automatically redo step for specified part

View original Github issue

Metadata

Project
snapcraft
Number
#2152
Type
pull request
State
merged
Author
kyrofa
Labels
Created
Updated
Closed

Current evaluation

Merged to master, resolving LP: #1774260. Snapcraft now automatically cleans and re-runs a specified part's step instead of skipping it. Approved by one reviewer with 94.63% diff coverage.

Suggested action:

No scores available.

Issue body

- [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/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? ----- Currently, if a step for a given part has already run, the snapcraft CLI won't run it again without it first being cleaned. For example, if the `pull` step of part `A` had already run, running `snapcraft pull A` would say that it had already run, and skip it. This PR resolves [LP: #1774260](https://bugs.launchpad.net/snapcraft/+bug/1774260) by changing this behavior so that, if a part is specified, that step for that part is cleaned and re-run.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged to master, resolving LP: #1774260. Snapcraft now automatically cleans and re-runs a specified part's step instead of skipping it. Approved by one reviewer with 94.63% diff coverage.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Automatically cleans and re-runs a specified part's build step in Snapcraft, overriding the previous skip behavior. Resolves Launchpad bug LP: #1774260. Diff coverage reached 94.63%.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Updates the CLI to automatically clean and re-run a specified part's step rather than skipping it. Resolves Launchpad bug #1774260.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#443 Automatically re-stage if dirty. snapcraft merged Merged PR automatically re-stages and strips Snapcraft steps upon YAML changes, resolving Launchpad bug #1477904. The update modifies six files to detect out-of-date configurations and trigger a clean re-run.
72%
#727 fix(sequencer): rerun steps only if explicitly requested craft-parts merged Merged changes to the sequencer that restrict step reruns and cleaning to explicit user requests via the rerun argument, resolving snapcraft#4806. Approved by two reviewers, passed CI, and integrated.
70%