SNAPCRAFT_PARALLEL_BUILD_COUNT not respected if set in `override-build:`
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Closed without resolution or merge. The report details a bug where SNAPCRAFT_PARALLEL_BUILD_COUNT set in override-build is ignored, but no developer response or fix was provided, indicating the issue was abandoned or marked stale.
Suggested action: —
No scores available.
Issue body
Given snapcraft.yaml:
```yaml
name: plel
base: core20
version: '0.1'
summary: plel
description: |
plel less
grade: devel
confinement: devmode
parts:
my-part:
plugin: make
build-environment:
- SNAPCRAFT_PARALLEL_BUILD_COUNT: '4'
override-build:
export SNAPCRAFT_PARALLEL_BUILD_COUNT=1
snapcraftctl build
```
```plain
$ nproc
16
$ snapcraft --destructive-mode
Skipping pull my-part (already ran)
Building my-part
+ export SNAPCRAFT_PARALLEL_BUILD_COUNT=1
+ SNAPCRAFT_PARALLEL_BUILD_COUNT=1
+ snapcraftctl build
+ make -j4
# ...
```
The one from `build-environment` is picked up, but not that exported in `override-build`.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or merge. The report details a bug where SNAPCRAFT_PARALLEL_BUILD_COUNT set in override-build is ignored, but no developer response or fix was provided, indicating the issue was abandoned or marked stale. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The report details that SNAPCRAFT_PARALLEL_BUILD_COUNT values in override-build are ignored, deferring to build-environment settings. No comments or linked PRs indicate a fix or status change. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The report highlights SNAPCRAFT_PARALLEL_BUILD_COUNT being ignored when exported in override-build instead of build-environment. No fix or follow-up comments were recorded. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1997874 SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT doesn't seem to be passed through to lxd container | snapcraft (launchpad) | closed | SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT not being passed to LXD containers was closed and abandoned. No comments, resolution, or fix were provided. | |
| #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. | |
| #212 Incorrectly handling SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT | craft-providers | open | Issue with SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT handling and incorrect CPU counts in Multipass. Maintainer is addressing via craft-application integration. | |
| #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. | |
| #4785 bug: snapcraft uses '1' for CRAFT_PARALLEL_BUILD_COUNT on multi-core machine | snapcraft | closed | Snapcraft incorrectly set CRAFT_PARALLEL_BUILD_COUNT to 1 on multi-core machines due to an environment expansion bug in craft-application. Resolved and fixed in Snapcraft 8.4.4. | |
| #502 Incorrect value for $CRAFT_PARALLEL_BUILD_COUNT in project metadata | craft-application | closed | Closed without resolution. The bug causing $CRAFT_PARALLEL_BUILD_COUNT to always evaluate to 1 in project metadata remains unaddressed, with only an automated Jira sync comment present. |