Automatically re-strip if dirty.
Metadata
Current evaluation
Merged. Automatically re-runs the strip step when the snapcraft.yaml snap keyword changes. Detects dirty state via YAML property comparison, cleans, and re-executes. Resolves Launchpad bug #1477904. Documentation added during review.
Suggested action: —
No scores available.
Issue body
Currently Snapcraft doesn't notice YAML changes if a given step has already run-- it simply says that it already ran and halts execution. This PR makes progress on LP: [#1477904](https://bugs.launchpad.net/snapcraft/+bug/1477904) by changing that for the strip step, where now if one changes the `snap` keyword in the YAML, strip will notice that it's out of date and automatically clean itself and re-run.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Automatically re-runs the strip step when the snapcraft.yaml snap keyword changes. Detects dirty state via YAML property comparison, cleans, and re-executes. Resolves Launchpad bug #1477904. Documentation added during review. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Automatically re-runs the strip step when the snap keyword in snapcraft.yaml changes. Detects dirty state by comparing saved YAML properties, resolving LP #1477904. Documentation updated per review. |
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. | |
| #447 Detect dirty build step. | snapcraft | merged | Merged. Adds dirty build step detection to Snapcraft, prompting manual cleanup when YAML changes affect the build step. Addresses LP #1477904. Auto-rebuilds were omitted to prevent wasting time on long builds. Approved by sergiusens. | |
| #448 Detect dirty pull step. | snapcraft | merged | Merged changes add dirty detection for the pull step in Snapcraft, resolving Launchpad bug #1477904. The update errors on YAML changes, requiring manual cleanup instead of automatic removal. Approved by sergiusens. |