fix: track parallel tasks by index to handle duplicate task names#112
Merged
rileyhilliard merged 1 commit intomainfrom Jan 14, 2026
Merged
fix: track parallel tasks by index to handle duplicate task names#112rileyhilliard merged 1 commit intomainfrom
rileyhilliard merged 1 commit intomainfrom
Conversation
When running the same task multiple times in parallel (e.g., for flaky test detection), tasks were keyed by name alone causing state confusion. Only the first task's running state got updated, and log files overwrote each other. Changes: - Add Index field to TaskInfo and TaskResult structs - Add ID() method creating unique IDs like "task#0", "task#1" - Update OutputManager to track by task ID instead of name - Update ParallelProgress to find tasks by index - Log files now named <taskname>_<index>.log - Add regression tests for duplicate task names Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. WalkthroughIntroduces per-task indexing throughout the parallel execution system to support duplicate task names. Each task gets an Index field; all components (output manager, progress UI, log writer, workers) now accept and use taskIndex alongside taskName for identification, enabling separate tracking and logging for task instances with identical names. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (9)
✏️ Tip: You can disable this entire section by setting Comment |
5 tasks
This was referenced Jan 26, 2026
5 tasks
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-opendata3x for flaky test detection) now tracked separately by indexChanges
Indexfield toTaskInfoandTaskResultstructstask#0,task#1for state trackingOutputManagerandParallelProgressto track by task ID<taskname>_<index>.logto prevent overwritesTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
task_0.log,task_1.log) to prevent conflicts and data loss.✏️ Tip: You can customize this high-level summary in your review settings.