Repository navigation
fix(studio): add iOS home screen icon - #17776
Merged
danielhanchen merged 3 commits intoNov 15, 2026
Merged
Conversation
bezabyte
force-pushed
the
codex/issue-17773-apple-touch-icon
branch
from
November 14, 2026 20:50
7de2d12 to
83bcf5f
Compare
danielhanchen
added a commit
that referenced
this pull request
Nov 14, 2026
… of racing the drainer (#17782) ## Problem `studio/backend/tests/test_orchestrator_switch_waits.py::test_worker_crash_mid_frame_cannot_block_the_shutdown_deadline` failed three times today on PRs that do not touch the orchestrator (#17645, #17743 and #17776), all with the same signature: ``` tests/test_orchestrator_switch_waits.py:385: assert runner.exitcode == 0 E AssertionError: assert 1 == 0 File ".../test_orchestrator_switch_waits.py", line 366, in crash_after_drain assert proc.exitcode == 1 ``` The worker in that test does `replies.put(<1 MiB frame>)` and then `assert replies._reader.poll(30)` on its own end of the reply pipe before crashing. But the code under test, `_shutdown_subprocess` -> `_drain_unread_replies`, starts a drainer thread that reads that same pipe. When the drainer gets the whole frame first, the worker's poll finds nothing and waits its full 30 s, while the parent's `proc.join(30)` expires first and sees `exitcode is None`. `test_forced_shutdown_does_not_read_an_interrupted_queue_frame` polls the same pipe from the parent and has the same race. The orchestrator is fine. The tests depended on thread scheduling. ## Fix A helper, `_write_partial_frame`, writes a length header claiming the whole 1 MiB frame plus the first 32 KiB of it straight to the pipe, then the worker crashes (or sleeps, for the interrupted-writer test). This is less than one pipe buffer, so the write never blocks. Any reader is left inside a partial frame every time, which is the state both tests mean to set up. The interrupted-writer test now waits on a `wrote` event instead of polling the shared pipe. On Windows, where `PipeConnection` has no raw write, the helper falls back to the old `put`. ## Tests - Reproduced the CI failure on main by adding `time.sleep(1)` in the worker before its poll: `assert 1 == 0`, the same error as CI. With the same delays added around the new partial write, both tests still pass. - `test_orchestrator_switch_waits.py`: 14 passed, three times under `-n 8`. - Both tests ran 30 times on 10 concurrent loops, base and head. Both passed every time locally, so the flake is not reproducible here without the forced delay above.
Member
|
@codex review |
1 similar comment
Member
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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.
Fixes #17773
What changed
apple-touch-icon.pngderived from the existing Studio PWA artwork.Validation
pytest -q tests/studio/test_pwa_manifest.py(2 passed)git diff --check