← Back to issue list

build provider: clean incompatible build-environments

View original Github issue

Metadata

Project
snapcraft
Number
#3105
Type
pull request
State
merged
Author
cjp256
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed resolved

Reason: PR #3105 was merged in commit f1119fd03. It added compatibility checks and cleanup for incompatible build environments, including legacy or newer Snapcraft versions.

Evaluated by: mr-cal-bot

No scores available.

Issue body

1. If base doesn't match, clean the instance. (Existing behavior) 2. If base was not recorded, clean the instance. This should fix issues where environment was created by legacy snapcraft. (New) 3. If instance was created by newer snapcraft, clean the instance. This should fix issues where build environment was created by newer snapcraft versions which makes environment modifications incompatible with older versions. (New) - Update test scenarios to cover each compatbility scenario. - Update SNAP_VERSION fixture to "4.0" for more realistic version. - Use apt_pkg's version_compare to compare versions using debian rules. Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved 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.
stealth/space-bunny-alpha — closed resolved Merged in #3105 (commit f1119fd03) to clean build environments with base mismatches, missing provenance, or incompatible versions; added Debian version comparison and expanded tests.
qwen/qwen3.6-35b-a3b — — Merged updates to clean incompatible build environments caused by base mismatches, missing base records, or version differences. Implemented Debian-compliant version comparison and updated test scenarios. Approved and merged.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Cleans build environments when base mismatches, base is unrecorded from legacy snapcraft, or environment was created by a newer version. Adds tests and uses apt_pkg version comparison to ensure compatibility.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3934 providers: deprecate SnapcraftBuilddBaseConfiguration snapcraft merged Merged PR #3934 (commit f6abc2efd), replacing the custom buildd configuration with craft-providers BuilddBase and moving compatibility-tag setup to its constructor.
72%
#1779136 build provider support to clean parts snapcraft (launchpad) closed Build-provider support for cleaning selected parts was restored by merged canonical/snapcraft PR #2442 (commit 5546c3aab), without deleting the provider.
71%
#1803193 improve cleanbuild backwards compatibilty snapcraft (launchpad) closed Fixed by adding hidden cleanbuild YAML validation in snapcore/snapcraft#2404 (commit 248fe265d).
71%
#3583 build providers: snapcraft's new base is core20 (CRAFT-544) snapcraft merged Merged PR #3583 via 2b2d7dbcf, replacing build providers' injected core18 base with core20 to match Snapcraft's new base.
70%