Skip to content

test(runs): make approval synchronization deterministic - #669

Open
solomonneas wants to merge 14 commits into
mainfrom
work/664-watch-sync
Open

test(runs): make approval synchronization deterministic#669
solomonneas wants to merge 14 commits into
mainfrom
work/664-watch-sync

Conversation

@solomonneas

Copy link
Copy Markdown
Collaborator

Summary

  • Replace wall-clock sleeps in the watch approval test with explicit thread gates.
  • Keep the time override local to runs_cmd instead of mutating the shared standard-library module.
  • Capture worker exceptions and re-raise them when the test joins the thread.
  • Remove source-regex assertions in favor of deterministic behavioral coverage.

Verification

  • Focused synchronization suite after merging current main: pass
  • tests/repeat_watch_approval_test.py after merging current main: 20 runs passed
  • Independent cross-file review: no blocking findings

Closes #664

@solomonneas

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 525b39f9-decc-4422-8961-0dc6cbfccca4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@solomonneas solomonneas self-assigned this Aug 2, 2026
solomonneas and others added 11 commits August 1, 2026 22:18
Co-Authored-By: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-Authored-By: Cursor <cursoragent@cursor.com>
Co-Authored-By: Codex <codex@openai.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Codex <codex@openai.com>
Co-Authored-By: Codex <codex@openai.com>
Co-Authored-By: Codex <codex@openai.com>
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.

flaky: test_watch_waits_for_consumed_approval_while_provider_lock_is_live fails under CI load on unrelated PRs

1 participant