Skip to content

Make the ripgrep stdout byte cap deterministic - #454

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-5550-ripgrep-output-cap-does-not-trip-on-linux-ci
Aug 10, 2026
Merged

Make the ripgrep stdout byte cap deterministic#454
TheGreatAxios merged 1 commit into
mainfrom
cl-5550-ripgrep-output-cap-does-not-trip-on-linux-ci

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Defers process close one turn so queued stdout data handlers run first (Linux race)
  • Re-checks the byte cap on close and timeout settle paths so over-cap bodies never report as full success

Closes CL-5550

Test plan

  • Unit tests for collector + run path
  • CI green on Linux (primary failure surface)

Close could settle as complete output before the last stdout chunk was
handled, so Linux CI never tripped the cap. Defer close one turn so
queued data runs first, and re-check the cap at every settle path so an
over-cap body can never be reported as a full success.
@linear-code

linear-code Bot commented Aug 10, 2026

Copy link
Copy Markdown

CL-5550

@TheGreatAxios
TheGreatAxios merged commit a65b0d9 into main Aug 10, 2026
4 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-5550-ripgrep-output-cap-does-not-trip-on-linux-ci branch August 10, 2026 02:14
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.

1 participant