providers: inject current snapcraft snap into instances
Metadata
Current evaluation
Merged. Injects the current snapcraft snap into build instances, enabling core22 builds with a parallel-installed snapcraft instance. Approved, passed CI, and achieved 100% diff coverage. Core18 and core20 support will follow in a subsequent PR.
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] Have you successfully run `make lint`?
- [X] Have you successfully run `pytest tests/unit`?
-----
Allows for core22 snaps to be built using a parallel-installed instance of snapcraft.
A subsequent PR will support core18|20 snaps.
(CRAFT-1660)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Injects the current snapcraft snap into build instances, enabling core22 builds with a parallel-installed snapcraft instance. Approved, passed CI, and achieved 100% diff coverage. Core18 and core20 support will follow in a subsequent PR. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Injects the current snapcraft snap into build instances, enabling core22 builds with a parallel-installed snapcraft instance. Achieved 100% diff coverage. Core18 and core20 support is deferred to a follow-up pull request. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Injects the current snapcraft snap into build instances to enable core22 builds using a parallel-installed snapcraft instance. Maintains 100% test coverage. Core18 and core20 support will follow in a subsequent pull request. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4090 snapcraft_legacy: inject current snapcraft snap into instances | snapcraft | merged | Merged into main. Injects the current snapcraft snap into build instances for core18 and core20 snaps. Approved by two reviewers, passed CI, and modified six files with 100% diff coverage. | |
| #3583 build providers: snapcraft's new base is core20 (CRAFT-544) | snapcraft | merged | Merged into master. Replaced core18 injection with core20 as the new snapcraft base. Approved by one reviewer, passed CI, and achieved 100% diff coverage. | |
| #3981 commands, lifecycle: provide snapcraft try for core22 | snapcraft | merged | Merged. Adds snapcraft try support for core22 by mounting a host prime directory into the instance for lifecycle priming without packing. Approved by one reviewer, passed CI, and modified 8 files. | |
| #2174 build_providers: inject snaps when running from a snap | snapcraft | merged | Merged. Updates build providers to inject snapcraft and its base from the host when running inside the snapcraft snap, ensuring parity with non-snap environments. Approved by reviewer and passed CI checks. | |
| #4088 providers: allow parallel installations when not running as a snap | snapcraft | merged | Merged into main. Checks if snapcraft runs as a snap before reading SNAP_INSTANCE_NAME, enabling parallel installations outside the snap. Follows PR #4084, approved, passed CI, 100% diff coverage. | |
| #4118 init: use core22 base for `snapcraft init` | snapcraft | merged | Merged. Updates snapcraft init to use core22 as the default base instead of core20. The command was relocated from snapcraft_legacy to snapcraft, and a spread test was added. Approved by reviewer and passed CI. | |
| #2773 build providers: inject snapd snap for latest feature availability | snapcraft | merged | Merged changes that inject the snapd snap into build providers instead of core, improving feature availability and reducing size. Approved by reviewer, passed CI, and modified 4 files (+59/-12 lines). | |
| #4186 snap: migrate to core22 | snapcraft | merged | Migrated the snap build environment to Ubuntu core22. Approved by two reviewers and passing CI, the change was merged into the main branch, increasing overall code coverage by 4.91%. |