← Back to issue list

Read `CRAFT_PARALLEL_BUILD_COUNT`

View original Github issue

Metadata

Project
craft-parts
Number
#631
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Closed without code changes after parallel build-count configuration was moved upstream; craft-parts no longer needed to read CRAFT_PARALLEL_BUILD_COUNT.

Resolution: closed not a bug

Reason: Maintainer mr-cal closed the ticket on 2024-01-26 after adjusting how the build count is supplied, explicitly stating that no craft-parts changes were required.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done If an application does not [provide a parallel build count](https://github.com/canonical/craft-parts/blob/5ad7be9c186f577d813e416330913497f868ee3b/craft_parts/lifecycle_manager.py#L96) to the `LifecycleManager`, then craft-parts should read the environment variable `CRAFT_PARALLEL_BUILD_COUNT`. If this is not set, default to 1. ### Why it needs to get done See https://github.com/snapcore/snapcraft/issues/4537

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Closed without code changes after parallel build-count configuration was moved upstream; craft-parts no longer needed to read CRAFT_PARALLEL_BUILD_COUNT.
stealth/space-bunny-alpha — closed superseded Closed without craft-parts code changes after the parallel build-count configuration was adjusted upstream, making a CRAFT_PARALLEL_BUILD_COUNT read unnecessary.
qwen/qwen3.6-35b-a3b — — 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.
qwen/qwen3.6-35b-a3b — — Requesting craft-parts to read the CRAFT_PARALLEL_BUILD_COUNT environment variable was closed. The maintainer adjusted how the build count is set elsewhere, making changes to craft-parts unnecessary.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The maintainer adjusted how the build count is set, making the requested environment variable reading unnecessary. No craft-parts changes were required.
qwen3.6-35b-a3b-mtp-q6 — — Closed. The maintainer adjusted upstream build count configuration, eliminating the need for craft-parts to read the CRAFT_PARALLEL_BUILD_COUNT environment variable. No craft-parts changes are required.

Update history

No update history recorded yet.

Related work

  • Related To: snapcore/snapcraft#4537 (confidence 100%)

    Referenced as the motivating work for adjusting parallel build-count configuration.

Related issues

Issue Project State Summary Similarity
#180 Support setting a parallel build count craft-application closed Parallel build-count controls landed in canonical/craft-application#191 via commit 35b49c8f, adding app/CRAFT fixed settings and CPU-capped maximum settings.
80%
#502 Incorrect value for $CRAFT_PARALLEL_BUILD_COUNT in project metadata craft-application closed Fixed project YAML expansion to use the resolved parallel-build count instead of always exposing 1; implemented by PR #517 in commit b508b6c0.
78%
#3756 parts: fix parallel build count snapcraft merged Merged #3756 as e3d81491f (implementation 354ad897c), making craft-parts use the host’s available concurrent-job count, with a configurable maximum.
74%
#540 Document parallel build count environment variables craft-application open Documentation request to define and explain CRAFT_PARALLEL_BUILD_COUNT and CRAFT_MAX_PARALLEL_BUILD_COUNT; docs/reference/environment-variables.rst still omits them while util/system.py defines precedence.
73%
#1988748 SNAPCRAFT_PARALLEL_BUILD_COUNT not respected if set in `override-build:` snapcraft (launchpad) closed Closed as working as intended: maintainer sergiusens explained craftctl reads the configured parallel-build count, so exporting SNAPCRAFT_PARALLEL_BUILD_COUNT inside override-build cannot change it (it is set by snapcraft itself, per PR #1154).
72%
#4537 Document and use the correct parallel build count envvars snapcraft closed Parallel-build documentation moved to canonical/craft-application#540; #4537 was closed without completing the requested Snapcraft documentation, as the maintainer later noted.
72%