Repository navigation
Fix two macOS CI timing bugs in tests - #1491
Merged
Merged
Conversation
On macOS an accepted socket inherits O_NONBLOCK from a nonblocking listener, so the fake embedding server's first read could fail with WouldBlock before AFT's request arrived. That failed main's macOS integration shard after the 0.67.0 version bump. Search-quality descriptor: no ranking change. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
The test used one 100 ms deadline for all three calls. On the busy macOS CI machine, opening the route alone took longer, so the first call failed with 'call deadline elapsed before request was sent'. Only the timeout case needs the short deadline. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.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.
Two test-only fixes for failures on the shared macOS CI machine. No product code changes.
standalone_control_replies_while_meaning_fill_holds_membersfailed main's push run for the 0.67.0 version bump (run 45018075541) withread embedding request: WouldBlock. On macOS an accepted socket inherits O_NONBLOCK from a nonblocking listener (Linux does not), so the fake embedding server's first read could fail before AFT's request arrived. The helper now makes the accepted stream blocking. Passed 5/5 on a macOS build machine.consent_completed_and_failed_calls_close_scoped_routesfailed this PR's first run withcall deadline elapsed before request was sent. It used one 100 ms deadline for all three calls, and opening the route alone took longer on the busy machine. Only the timeout case keeps 100 ms; the other two get 30 s.Search-quality descriptor: no ranking change.