Skip to content

Fix two macOS CI timing bugs in tests - #1491

Merged
ualtinok merged 2 commits into
mainfrom
ci-speed/macos-embedder-blocking
Nov 22, 2026
Merged

ualtinok merged 2 commits into
mainfrom
ci-speed/macos-embedder-blocking

Conversation

@aft-alfonso

@aft-alfonso aft-alfonso Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Two test-only fixes for failures on the shared macOS CI machine. No product code changes.

  1. standalone_control_replies_while_meaning_fill_holds_members failed main's push run for the 0.67.0 version bump (run 45018075541) with read 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.
  2. consent_completed_and_failed_calls_close_scoped_routes failed this PR's first run with call 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.

ualtinok and others added 2 commits November 22, 2026 15:02
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>
@aft-alfonso aft-alfonso Bot changed the title Make the deferred-search test's embedder stream blocking on macOS Fix two macOS CI timing bugs in tests Nov 22, 2026
@ualtinok
ualtinok merged commit f5ecf51 into main Nov 22, 2026
149 of 164 checks passed
@ualtinok
ualtinok deleted the ci-speed/macos-embedder-blocking branch November 22, 2026 16:23
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