Skip to content

fix: report why failfast cancelled a parallel task - #2954

Open
20ns wants to merge 1 commit into
go-task:mainfrom
20ns:fix/report-parallel-task-cancellation-reason
Open

fix: report why failfast cancelled a parallel task#2954
20ns wants to merge 1 commit into
go-task:mainfrom
20ns:fix/report-parallel-task-cancellation-reason

Conversation

@20ns

@20ns 20ns commented Aug 3, 2026

Copy link
Copy Markdown

Fixes #1226

When failfast cancels a sibling task running in parallel, the cancellation was silent. This now reports which task caused the cancellation for both parallel calls and dependencies.

Added regression coverage for both paths and updated the expected failfast output.

Verified with go test . -run 'TestParallelFailfastCancellationReason|TestFailfast' and a local --parallel --failfast run.

Assisted with Cursor; I reviewed and tested the change.

When failfast stops sibling tasks, log which peer failed so the
cancellation is visible instead of looking like a silent drop.
@vmaerten vmaerten self-assigned this Aug 4, 2026
@vmaerten
vmaerten self-requested a review August 4, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report reason for cancellation of parallel task

2 participants