Inject the application's base snap into the managed instance
Metadata
Current evaluation
Base-snap injection for managed instances was merged in PR #997 (commit 41cee32d), preventing instances from downloading the application's base snap.
Resolution: closed resolved
Reason: PR #997 implemented base-snap injection, was merged as commit 41cee32d, and explicitly fixed #952. The earlier unmerged attempt #953 was closed as superseded.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
If we're running from a snap, we currently inject the app snap from the host. See: https://github.com/canonical/craft-application/blob/141b727c1d80e1a41f41f99feb8c16d29eab68a3/craft_application/services/provider.py#L122-L141
We should inject the base snap that the app is using from the host as well.
### Why it needs to get done
If the managed instance doesn't have this base snap (e.g. the app uses core24 and we're building on a 22.04 managed instance), the instance is currently downloading the base snap.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Base-snap injection for managed instances was merged in PR #997 (commit 41cee32d), preventing instances from downloading the application's base snap. | |
| stealth/space-bunny-alpha | — | closed resolved | Base-snap injection for managed instances was implemented in merged PR #997 (commit 41cee32d), replacing the unmerged attempt #953 and resolving #952. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The enhancement to inject the base snap into managed instances was closed without implementation, with only an internal Jira ticket created. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution, effectively abandoned. Tracking moved to Jira ticket CRAFT-4889. No code changes or merges were implemented. The base snap injection enhancement remains unaddressed. | |
| qwen/qwen3.6-35b-a3b | — | — | The enhancement to inject the base snap into the managed instance was closed without implementation. No pull request or fix was submitted, leaving the request unresolved after triage and internal ticket creation. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-application#997
(confidence 100%)
Merged implementation of base-snap injection; commit 41cee32d resolves #952.
-
Related To:
canonical/craft-application#953
(confidence 98%)
Earlier implementation attempt closed as superseded by merged PR #997.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #953 feat: inject application's base snap into managed instances | craft-application | closed | Closed unmerged as superseded by PR #997, which merged base-snap injection as commit 41cee32d and fixed #952. | |
| #997 feat(Provider): inject the base snap | craft-application | merged | Merged as commit 41cee32d, injecting the application's base snap into the provider so managed instances need not download it; fixes #952 (CRAFT-4889). | |
| #444 feat(snaps): inject base snap from host | craft-providers | merged | Merged PR #444 in commit 03704c1, injecting each host snap's base snap and reusing an existing base; released in craft-providers 1.20.0. |