Skip to content

pool: preserve results after the last error in WithErrors() (fixes #156) - #1

Open
milian256 wants to merge 1 commit into
mainfrom
terrarium/r20260906-151440-agent
Open

pool: preserve results after the last error in WithErrors() (fixes #156)#1
milian256 wants to merge 1 commit into
mainfrom
terrarium/r20260906-151440-agent

Conversation

@milian256

Copy link
Copy Markdown
Owner

resultAggregator.collect() only appended the gaps between errored indices when filtering out errored results, never the tail after the last errored index -- so trailing non-errored results were silently dropped.

Example: three tasks returning 1, 2 (errored), 3 -- Wait() returned [1] instead of [1 3].

Fixes sourcegraph#156.

Adds a regression test reproducing the issue exactly.

Generated end-to-end by Terrarium (build -> aider fix -> go test verify -> independent reviewer approval) as a real integration test against an unseen open-source bug.

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.

Results clipped after first error with .WithErrors()

1 participant