providers: allow parallel installations when not running as a snap
Metadata
Current evaluation
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.
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`?
-----
Minor follow up to https://github.com/snapcore/snapcraft/pull/4084 to allow check if snapcraft is running as a snap before reading the envvar `SNAP_INSTANCE_NAME`.
(CRAFT-1660)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Adds a runtime check to verify if Snapcraft runs as a snap before reading SNAP_INSTANCE_NAME, enabling parallel installations for non-snap environments. Follows up on PR #4084 with full test coverage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Adds a runtime check to verify if snapcraft runs as a snap before reading SNAP_INSTANCE_NAME, enabling parallel installations in non-snap environments. Follows up on PR #4084 with 100% change coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5085 fix: allow parallel installations of signed snapcraft snaps | snapcraft | merged | Merged a fix enabling parallel installations of signed snapcraft snaps, resolving issues #4683 and #4927. Approved by two reviewers, passed CI checks, and integrated. | |
| #5087 fix: allow parallel installations of signed snapcraft snaps (7.5) | snapcraft | merged | Merged into hotfix/7.5 to fix parallel installation failures for signed snapcraft snaps. Backports the solution from #5058, resolving issues #4683 and #4927. Approved by two reviewers with all CI checks passing. | |
| #3997 providers: pass SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT to instance | snapcraft | merged | Merged into main. Resolves a bug where the SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT environment variable was not passed to the build instance, ensuring correct parallel build limits during snap creation. | |
| #4084 providers: inject current snapcraft snap into instances | snapcraft | merged | 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. | |
| #411 Support snap parallel installs | craft-application | closed | Closed. The initial fix was merged into craft-application, but full parallel snap support requires a follow-up update in craft-providers to correctly parse snap names with underscores. |