Skip to content

Sonny tests: hold the mux worker until the kept places are read - #684

Merged
lydakis merged 1 commit into
mainfrom
claude/wave1-mux-test
Nov 5, 2026
Merged

lydakis merged 1 commit into
mainfrom
claude/wave1-mux-test

Conversation

@lydakis

@lydakis lydakis commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

mux::tests::a_view_that_opens_reads_where_the_windows_sit_now races its own worker thread. The test sends a job that closes shop.a and opens shop.c, then reads the places kept from before that job (Worker::places). The worker can run the job and refresh the kept places before the test thread takes the lock. When it does, the test sees the new layout and fails with left: (None, Some(2)), right: (Some(1), None). That has failed CI three times today: twice on #680 and once on #675.

Now a job sent ahead of the close holds the worker on a channel until the kept read is done, as a_worker_runs_jobs_in_order_and_skips_a_naming_that_another_follows beside it already does. The code under test is unchanged.

Test plan

  • cargo test -p sonny a_view_that_opens_reads, run in a loop locally.

No FEATURES row: this is a test-only change.

🤖 Generated with Claude Code

https://claude.ai/code/session_013jkdGG873rfqV9CdHz7KrE

`a_view_that_opens_reads_where_the_windows_sit_now` sent a job that closes
and opens windows, then read the places kept from before it. The worker
thread could run that job and refresh the kept places first, so the test
failed now and then (seen on #675 and #680). A job ahead of it now holds
the worker until the read is done, as the naming test beside it does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jkdGG873rfqV9CdHz7KrE
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 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-11-05T02:11:44.958353Z f38b3c0 PR opened
🔒 Security Review ✅ Completed 2026-11-05T02:12:47.022121Z f38b3c0 PR opened
ℹ️ 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.

@lydakis
lydakis merged commit 59ae874 into main Nov 5, 2026
10 checks passed
@lydakis
lydakis deleted the claude/wave1-mux-test branch November 5, 2026 02:27
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.

2 participants