← Back to issue list

Support parallel builds (enabled by default).

View original Github issue

Metadata

Project
snapcraft
Number
#357
Type
pull request
State
merged
Author
kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #357 (commit 35cd5ca2c, merge 1a62686da) adding parallel build support, enabled by default in autotools/cmake/make plugins, plus a --no-parallel-build option. Resolves LP: #1551417.

Resolution: closed resolved

Reason: The PR was merged into master as commit 35cd5ca2c via merge commit 1a62686da ("Merge pull request #357 from kyrofa/feature/1551417/parallel_builds"), landing after requested doc/help-text tweaks were agreed in review. It resolved Launchpad bug #1551417 by threading a parallel build job count into the autotools, cmake and make plugins and adding --no-parallel-build for RAM-limited environments.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Several plugins within Snapcraft support parallel builds, but Snapcraft currently doesn't take advantage of this and builds them with a single job. This PR resolves LP: [#1551417](https://bugs.launchpad.net/snapcraft/+bug/1551417) by adding support for parallel builds, and enabling them by default in the autotools, cmake, and make plugins. It also adds an option to disable parallel builds via the `--no-parallel-build` option for the case of running in a RAM-limited environment.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #357 (commit 35cd5ca2c, merge 1a62686da) adding parallel build support, enabled by default in autotools/cmake/make plugins, plus a --no-parallel-build option. Resolves LP: #1551417.
stealth/space-bunny-alpha — closed resolved Merged in canonical/snapcraft#357 as 1a62686da, enabling parallel autotools, CMake, and make builds by default. Added --no-parallel-build for RAM-limited environments; fixes LP #1551417.
stealth/space-bunny-alpha — closed resolved Merged PR #357 enabled parallel builds by default for autotools, CMake, and make plugins, adding --no-parallel-build for RAM-limited environments. Resolves LP #1551417.
qwen/qwen3.6-35b-a3b — — Merged: Enables parallel builds by default for autotools, cmake, and make plugins. Adds a --no-parallel-build flag for RAM-limited environments. CLI help text updated after review. Resolves Launchpad bug 1551417.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Enables parallel builds by default for autotools, cmake, and make plugins. Adds a --no-parallel-build flag for RAM-limited environments. Resolves Launchpad bug 1551417. Updated CLI help text per reviewer feedback.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#698 (confidence 55%)

    Later PR generalised a per-plugin 'disable-parallel' option, superseding this PR's global --no-parallel-build flag (removed in snapcraft#2377).

  • Related To: snapcraft#2377 (confidence 40%)

    Later work removing the disable-parallel-build toggle that this PR introduced.

Related issues

Issue Project State Summary Similarity
#1551417 Support parallel builds snapcraft (launchpad) closed Parallel autotools, CMake, and make builds were enabled by default with a --no-parallel-build opt-out via merged PR #357 (commit 35cd5ca2c).
91%
#1167 feat: add parallel parameter to autotools plugin craft-parts merged Merged #1167 as commit 7dfd1bf7, adding disable_parallel to the Autotools plugin so builds can omit make -j and addressing #1069.
78%
#1608994 Need a way to disable parallel building per part snapcraft (launchpad) closed Per-part parallel-build control was added by merged PR #698 (commit b7fc3eb66), which introduced the disable-parallel plugin property; the autotools plugin later gained it (commit 634d72466), documented in the 8.13 release notes.
75%
#1242 make plugin: Support `disable-parallel` parameter craft-parts open Enhancement: make plugin should honor the disable-parallel part property (currently always emits make -j"N"). Filed by a maintainer, labeled Triaged/Enhancement, and explicitly deferred as "extremely low priority" until a real-world non-parallel-build use case is supplied; autotools already has it via PR #1167.
72%
#2733 cmake plugin: support disable-parallel option snapcraft merged Merged in canonical/snapcraft#2733 (commit 634d72466), enabling CMake disable-parallel via BasePlugin's parallel build count and adding unit coverage.
71%
#1631 docs: document autotools disable-parallel key craft-parts open Docs-only PR adding the autotools `disable-parallel` key and a parallel-build note plus a changelog entry to the Autotools plugin reference. Approved by one reviewer but 2 unresolved comments remain; author agreed to revert the "How it works" line and awaits maintainer guidance; 3 CI checks failing.
70%