fix: confirm provider install when using experiental extension
Metadata
Current evaluation
Merged fix resolving snapcraft hanging indefinitely when the experimental extension is enabled and LXD is missing. The change pauses output emission during the provider availability check. Successfully merged into main.
Suggested action: —
No scores available.
Issue body
Bug reported here: https://bugs.launchpad.net/snapcraft/+bug/1984172
When experimental extension is on and LXD not installed
we don't see the prompt and the snapcraft command hangs forever
Pausing the `emit` while we `ensure_provider_is_available` fix the issue.
- [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`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged fix resolving snapcraft hanging indefinitely when the experimental extension is enabled and LXD is missing. The change pauses output emission during the provider availability check. Successfully merged into main. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Resolves a snapcraft hang during experimental extension setup when LXD is missing by pausing output emission during provider availability checks. External contributor fix integrated. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for snapcraft hanging when the experimental extension is active without LXD. Pausing emit during provider checks restores the installation prompt. Merged into main with 100% diff coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3962 Setup snapd for snapcraft_legacy providers | snapcraft | merged | Merged a fix for failing spread tests caused by missing snapd sockets in LXD containers. The change adopts snapd initialization logic from craft-providers to properly start the service, resolving connection errors. Approved and passed CI. | |
| #2647 build providers: catch LXD socket error | snapcraft | merged | Merged to catch LXD socket errors in build providers, resolving SNAPCRAFT-WA. Approved by reviewer, passed CI checks, and integrated with a 14-line addition and 6-line deletion across three files. Minor test coverage decrease noted but did not block merge. | |
| #1545 fix: Pass missing experimental flag when running pack | charmcraft | merged | Merged a fix to pass the missing experimental extensions environment variable to the provider environment during pack. Resolved provider errors when using extensions. Approved by two reviewers, passed CI, and merged with a 3-line diff. |