← Back to issue list

build provider support to clean parts

View original Launchpad issue

Metadata

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

Current evaluation

Build-provider support for cleaning selected parts was restored by merged canonical/snapcraft PR #2442 (commit 5546c3aab), without deleting the provider.

Resolution: closed resolved

Reason: Canonical/snapcraft PR #2442 restored snapcraft clean <part-name> for build providers and was merged as commit 5546c3aab, allowing selected parts to be cleaned without recreating the provider.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When using the `base` entry in snapcraft.yaml, the actual commands need to be passed through to the build provider.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Build-provider support for cleaning selected parts was restored by merged canonical/snapcraft PR #2442 (commit 5546c3aab), without deleting the provider.
stealth/space-bunny-alpha — closed resolved Build-provider support for cleaning selected parts was restored by merged PR canonical/snapcraft#2442 (commit 5546c3aab), without deleting the provider.
stealth/space-bunny-alpha — closed resolved Merged PR #2442 (5546c3aab), restoring part cleaning with build providers while preserving the provider.
qwen/qwen3.6-35b-a3b — — Abandoned. Requested passing commands through to the build provider when using the base entry in snapcraft.yaml. Closed without comments or implementation.
qwen/qwen3.6-35b-a3b — — Build provider support for cleaning parts when using the base entry in snapcraft.yaml was closed and abandoned without implementation.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The feature request to pass commands through to the build provider when using the base entry in snapcraft.yaml was abandoned due to lack of discussion or superseded by newer build system changes.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The request to pass commands to the build provider when using the base entry in snapcraft.yaml was abandoned or superseded. No comments or resolution details were provided.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#2442 (confidence 99%)

    Merged PR restoring cleaning of selected parts with build providers.

Related issues

Issue Project State Summary Similarity
#2442 cli: enable cleaning of parts snapcraft merged Merged #2442 (5546c3aab), restoring snapcraft clean <part-name> with build providers so selected parts can be cleaned without recreating the provider.
86%
#3284 build providers: rename clean() -> clean_parts() to clarify scope snapcraft merged Merged into master as commit 81ade060c: build provider clean() renamed to clean_parts() (5 files, +9/-9) to distinguish parts cleanup from clean_project() and other build instance cleanup.
76%
#88 fix: clean build provider when no parts are given craft-application merged Merged PR #88 (commit 2d2dd70e, merged into main as ed378fc) by maintainer tigarmo. Adds ProviderService.clean_instances(), converts AppCommand.run_managed to a method taking parsed args, and makes the clean command clean build instances when no parts are given. Fixes #56.
73%
#2507 build providers: improve handling in snap logic snapcraft merged Merged snapcraft#2507 as commit 841b41fa3, improving build-provider snap logic, removing unnecessary sudo calls, and silencing refresh-hold noise.
72%
#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.
72%
#2474 build providers: remove dead code snapcraft merged Merged PR #2474 as commit 4308dd8d3, removing obsolete build-provider methods left over from legacy cleanbuild support.
72%
#1821586 Improved build provider sanity checks snapcraft (launchpad) closed Resolved by merged snapcraft#2515 (commit e4a578823), moving build-provider setup and sanity checks into provider implementations.
72%
#3105 build provider: clean incompatible build-environments snapcraft merged Merged #3105 as f1119fd03, rebuilding build instances when base metadata is missing or the instance came from an incompatible or legacy Snapcraft version; compatibility tests were updated.
71%
#56 "<appname> clean" doesn't remove the build instance craft-application closed Fixed clean behavior: with no parts, craft-provider build instances are removed; part-specific cleans still run inside instances. Resolved by merged PR #88 (commit 2d2dd70e).
71%
#2515 build providers: support for provider setup snapcraft merged Merged PR #2515 as e4a578823, moving build-provider checks and setup into provider implementations and resolving LP #1821586.
71%