← Back to issue list

build providers: only set the snapd flag when installing snapd

View original Github issue

Metadata

Project
snapcraft
Number
#2827
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged as commit 3de398e61: enabled experimental.snapd-snap only when installing the snapd snap, preventing core-injection build deadlocks.

Resolution: closed resolved

Reason: PR #2827 was merged after approval. Commit 3de398e61 applies the fix to build providers.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When setting the experimental.snapd-snap to true, the system goes into a deadlock expecting the snapd snap to be there. Given that the snapd snap is not install when core is injected it causes a deadlock on the build environment. Avoid the situation by only setting this flag when the snapd snap is to be installed. Signed-off-by: Sergio Schvezov <sergio.schvezov@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 as commit 3de398e61: enabled experimental.snapd-snap only when installing the snapd snap, preventing core-injection build deadlocks.
stealth/space-bunny-alpha — closed resolved Merged commit 3de398e61 limits experimental.snapd-snap to builds that install the snapd snap, preventing build-environment deadlocks when core is injected.
qwen/qwen3.6-35b-a3b — — Merged fix for a build environment deadlock caused by setting the experimental.snapd-snap flag prematurely. The change restricts the flag to only apply when snapd is actively installed, resolving the issue after maintainer approval and passing CI checks.
qwen3.6-35b-a3b-mtp-q6 — — Merged a fix for a build environment deadlock. The experimental.snapd-snap flag is now only set when the snapd snap is actually installed, preventing system hangs during core injection.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2773 build providers: inject snapd snap for latest feature availability snapcraft merged Merged PR #2773 in commit 3740c61bc, replacing injected core snaps with the smaller snapd snap for current build features without requiring core18.
75%
#1779137 build provider support to inject snaps on the host snapcraft (launchpad) closed Build providers gained host-snap injection when Snapcraft runs from a snap; fixed by merged snapcore/snapcraft#2174 (commit 283ab0bb8).
72%