Skip to content

fix: concurrent builder: group build steps by project in single-thread mode - #14220

Open
gnodet wants to merge 1 commit into
masterfrom
fix/single-thread-project-ordering
Open

gnodet wants to merge 1 commit into
masterfrom
fix/single-thread-project-ordering

Conversation

@gnodet

@gnodet gnodet commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • In single-thread builds, the concurrent builder now executes all phases of a project before moving to the next, producing Maven-3-like sequential per-project ordering instead of interleaving phases across independent projects based on critical-path weights.
  • In parallel builds, project reactor order is used as a tiebreaker when steps have equal critical-path weight, keeping a project's phases consecutive when no heavier step from another project competes for a thread.
  • Skips step-timings file I/O in single-thread mode since weights are not computed.

Test plan

  • Existing BuildPlanWeightsTest tests updated and passing
  • New test singleThreadGroupsStepsByProjectOrder verifies all steps for project A precede project B in non-parallel mode
  • New test parallelModeWithEqualWeightsStillGroupsByProject verifies equal-weight tiebreaker in parallel mode

🤖 Generated with Claude Code

When running single-threaded, the concurrent builder now executes all
phases of one project before moving to the next, matching Maven 3's
sequential per-project behavior. In parallel builds, project reactor
order is used as a tiebreaker when steps have equal critical-path
weight, keeping a project's phases consecutive when no heavier step
from another project competes for a thread.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gnodet
gnodet force-pushed the fix/single-thread-project-ordering branch from 51d9394 to 541f4fe Compare December 2, 2026 10:13
@gnodet gnodet changed the title Group build steps by project in single-thread mode fix: group build steps by project in single-thread mode Dec 2, 2026
@gnodet gnodet changed the title fix: group build steps by project in single-thread mode fix: coucurrent builder: group build steps by project in single-thread mode Dec 2, 2026
@gnodet gnodet changed the title fix: coucurrent builder: group build steps by project in single-thread mode fix: concurrent builder: group build steps by project in single-thread mode Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant