Document and use the correct parallel build count envvars
Metadata
Current evaluation
Closed without implementation. Documentation and environment variable logic updates were deferred and are now tracked in craft-application issue 540. The requested code changes remain unaddressed.
Suggested action: —
No scores available.
Issue body
### What needs to get done
- fix the documentation
- create the following logic:
1. Snapcraft should use `SNAPCRAFT_PARALLEL_BUILD_COUNT`.
2. If it is not set, use `CRAFT_PARALLEL_BUILD_COUNT`
3. If it is not set, take the lesser of `SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT` and the total number of CPUs on the system.
- If `SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT` is not set, then use `CRAFT_MAX_PARALLEL_BUILD_COUNT`
4. If neither `MAX` envvars are set and the number of CPUs on the system cannot be determined, default to 1.
### Why it needs to get done
1. Documentation is incomplete and unclear
2. `CRAFT_PARALLEL_BUILD_COUNT` is not being read by any craft-parts
4. `SNAPCRAFT_PARALLEL_BUILD_COUNT` is not being read for core22 and onwards
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. Documentation and environment variable logic updates were deferred and are now tracked in craft-application issue 540. The requested code changes remain unaddressed. | |
| qwen/qwen3.6-35b-a3b | — | — | Superseded and closed without implementation or documentation. The maintainer noted the documentation requirement is now tracked separately in craft-application#540. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation or documentation updates. Superseded, with documentation tracking moved to a separate issue. Code changes for parallel build environment variables remain unaddressed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation. Documentation tracking moved to craft-application issue #540. Superseded. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation. Documentation tracking was transferred to craft-application#540. The requested environment variable fallback logic and documentation updates remain unaddressed. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #540 Document parallel build count environment variables | craft-application | open | Docs gap: CRAFT_PARALLEL_BUILD_COUNT and CRAFT_MAX_PARALLEL_BUILD_COUNT (and app-prefixed variants) are implemented in craft_application/util/system.py but not documented. Labeled enhancement/docs by a maintainer, open 679 days, no comments, still unaddressed. | |
| #631 Read `CRAFT_PARALLEL_BUILD_COUNT` | craft-parts | closed | Closed without code changes. The maintainer adjusted how the build count is configured externally, making the CRAFT_PARALLEL_BUILD_COUNT environment variable read unnecessary. The request was superseded by upstream updates. |