Repository navigation
Conversation
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
force-pushed
the
fix/single-thread-project-ordering
branch
from
December 2, 2026 10:13
51d9394 to
541f4fe
Compare
gnodet
commented
Dec 3, 2026
gnodet
commented
Dec 3, 2026
gnodet
commented
Dec 3, 2026
gnodet
commented
Dec 3, 2026
gnodet
commented
Dec 3, 2026
Changes based on code review: 1. Reset step weights to zero in single-thread mode to ensure sorting is purely by project order, preventing stale weights from prior computeWeights() calls from affecting the sort order. 2. Add javadoc to sortedNodes() documenting that the returned list is mutable and may be reordered by computeWeights(), clarifying the side effect for callers. 3. Add javadoc to projectIndex() explaining the critical assumption that the plan LinkedHashMap maintains reactor insertion order, which is required for correct single-thread build sequencing. 4. Replace getOrDefault() with explicit null check and IllegalStateException to fail fast if a BuildStep references a project not in the plan, making bugs easier to detect during development. 5. Add test singleThreadWithCrossProjectDependenciesRespectsTopology() to verify that cross-project dependencies are correctly handled in single-thread mode, ensuring topological order is maintained. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
BuildPlanWeightsTesttests updated and passingsingleThreadGroupsStepsByProjectOrderverifies all steps for project A precede project B in non-parallel modeparallelModeWithEqualWeightsStillGroupsByProjectverifies equal-weight tiebreaker in parallel mode🤖 Generated with Claude Code