Skip to content

Fix concurrency test expectations under lock contention - #9

Merged
Crokily merged 1 commit into
mainfrom
Colin/test-lock-contention
Sep 14, 2026
Merged

Crokily merged 1 commit into
mainfrom
Colin/test-lock-contention

Conversation

@Crokily

@Crokily Crokily commented Sep 14, 2026

Copy link
Copy Markdown
Owner

The v0.4.0 main CI failed on macOS because a concurrency test shortened the launcher lock deadline to 0.3 seconds while requiring both actions to succeed. A correctly reported busy lock was treated as a failure; an early assertion also left another test child and its pipes unreaped.

Deliberately delay focus by 0.5 seconds, accept only the specific bounded busy-lock response, and retry after both jobs finish. Require two successful focus operations overall, no pane creation/closure, a shared lock file and no inherited lock descriptors. Register child cleanup and collect all concurrent results before asserting.

Validation: the old test reproduces the CI failure with the injected delay; all 18 updated launcher tests pass with ResourceWarnings promoted to errors. Runtime behavior, deadlines and the published v0.4.0 tag are unchanged. Changelog and validation notes updated.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 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-09-14T01:49:08.982940Z affc5e6 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.

@Crokily
Crokily merged commit ac955e5 into main Sep 14, 2026
10 checks passed
@Crokily
Crokily deleted the Colin/test-lock-contention branch September 14, 2026 01:47
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