Skip to content

Parallel isolation lint: record the images load-swap batch poll deadline as benign (red since #18135) - #18145

Merged
danielhanchen merged 1 commit into
mainfrom
ci-benign-timing-images-load-swap
Nov 17, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-benign-timing-images-load-swap

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/studio/test_backend_ci_parallel_isolation.py::test_every_tight_elapsed_bound_is_isolated fails on main since #18135 (workflow-trigger lint and the CPU studio shard, seen on the staging run of #18139):

E   assert not {'test_openai_images_load_swap.py': ['test_openai_images_load_swap.py:199 one duration against another']}

Cause

#18135 added test_a_batch_waiting_through_a_reload_carries_the_pin, which waits for two image requests to join one batch:

deadline = asyncio.get_running_loop().time() + 5
while sum(len(b.members) for b in batching._OPEN.values()) < 2:
    assert asyncio.get_running_loop().time() < deadline, "the batch never formed"
    await asyncio.sleep(0.01)

That is a poll deadline: descheduling only delays the poll and cannot make the condition false. The lint flags every clock comparison in backend tests run under -n 4 until it is recorded, and this one was not.

Fix

Add ("test_openai_images_load_swap.py", "test_a_batch_waiting_through_a_reload_carries_the_pin") to BENIGN_TIMING with a one-line reason. The lint keys on the outermost enclosing function, so the test name covers the nested run().

Verification

  • main: test_every_tight_elapsed_bound_is_isolated fails with the message above.
  • this branch: tests/studio/test_backend_ci_parallel_isolation.py 43 passed.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T13:14:15.082652Z 0a9880f 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 0a9880f68c

ℹ️ 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".

@danielhanchen
danielhanchen merged commit 28d457c into main Nov 17, 2026
@danielhanchen
danielhanchen deleted the ci-benign-timing-images-load-swap branch November 17, 2026 13: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