Skip to content

Studio tests: queue each FIFO admission waiter before starting the next - #15457

Merged
danielhanchen merged 2 commits into
mainfrom
fix/admission-fifo-test-arrival
Oct 27, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
fix/admission-fifo-test-arrival

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

test_anthropic_admission.py::test_fifo_fairness_across_many_waiters starts 8 requests against a 1-slot backend, sleeps 0.2 s and asserts all 8 are queued. Since #15294, admission first awaits prompt preparation, so on a loaded runner not every waiter has reached the queue after 0.2 s. It failed on the (Python 3.13, a-f) backend job with assert 7 == 8 (queued=7). The same delay also means the arrival order no longer has to match the task order, which the FIFO assertion relies on.

The test now starts each waiter and waits (up to 5 s) until it is queued before starting the next. The arrival order is then the task order, and the FIFO check is deterministic. Test-only change.

Same test, pinned to one CPU core shared with 6 busy loops:

arm result
main 3 / 3 failed
this PR 3 / 3 passed

Without contention, the whole file passes 39 / 39 three times.

Admission now awaits prompt preparation first (#15294), so the fixed 0.2 s sleep
let a loaded runner see 7 of 8 waiters queued (CI: assert 7 == 8).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T00:04:28.677475Z ed0affb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: ed0affbd6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

[skip ci]
@danielhanchen
danielhanchen merged commit 92287a4 into main Oct 27, 2026
@danielhanchen
danielhanchen deleted the fix/admission-fifo-test-arrival branch October 27, 2026 01:02
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