Repository navigation
Conversation
- Fix BuildSuccess swapping wallTime/execTime when calling super(), causing reversed timing in build summaries for the concurrent builder - Fix PhasingExecutor.phase() premature exit when tasks spawn recursive work (completedCount vs activeCount condition was insufficient) - Remove redundant write lock acquisition around plan() call - Replace Clock class with step-based timing computation in TEARDOWN, eliminating shared mutable state and concurrent access issues - Remove dead global clock (start() called but stop() never called) - Remove dead computeForkPlan loop in plan() whose result was discarded - Decompose 110-line processStep into focused methods: isCleanupAfterStep, shouldExecute, submitStepForExecution, logSkipReason - Unify two duplicated executor.execute() submission patterns into one - Document merge invariant on BuildStep predecessors/successors collections - Add tests for plan merge deduplication, PhasingExecutor recursive-spawn, and merge invariant protection Co-Authored-By: Claude Opus 4.6 (1M context) <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
BuildSuccesswallTime/execTime swap: the 3-arg constructor passed arguments toBuildSummaryin the wrong order, reversing wall and exec times in build summaries for the concurrent builderPhasingExecutor.phase()premature exit: the completion condition (completedCount - start < activeCount) could exit while tasks were still spawning recursive work; simplified towhile (activeCount > 0)Clockclass with step-based timing: the shared mutableClockhad data races with concurrent V4 mojo steps (overlappingstart()/stop()pairs corruptresumed/exec). TEARDOWN now computes timing by scanning each step'sstartTime/endTime— no shared stateplan(),computeForkPlanloop inplan()whose result was discardedprocessStep(110 lines → 15): extractedisCleanupAfterStep,shouldExecute,submitStepForExecution,logSkipReason; unified two duplicatedexecutor.execute()patterns into oneBuildStep.predecessors(HashSet) andsuccessors(CopyOnWriteArraySet) must deduplicate by equals —BuildPlan.merge()relies on this to prevent orphaned step references that would cause deadlocksTest plan
testMergePlanSegmentsDeduplicatesPredecessors— verifies merge deduplication prevents orphaned predecessorsphaseWaitsForRecursivelySpawnedTasks— verifiesPhasingExecutor.phase()waits for all recursive work🤖 Generated with Claude Code