Skip to content

test(id): remove remaining polling sleeps from world tests (#1326) - #4700

Merged
dezren39 merged 1 commit into
mainfrom
queue/6564-1326-world-test-sleeps
Nov 3, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/6564-1326-world-test-sleeps

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Follow-up for #1326 (queue task 6564).

F11.5 is recorded Done, but its exit criterion ("no sleep in world.rs tests, and the schedule tests run in under one second") was not literally met: pkgs/id/src/world/tests.rs still contained 9 tokio::time::sleep calls.

Change

No production code touched (clock, actor, scheduler behavior unchanged).

Verification

  • grep tokio::time::sleep pkgs/id/src/world/tests.rs → 0 matches.
  • cargo test -p id --lib world:: → 184 passed, 0 failed.
  • cargo test -p id --lib world::tests::schedule_tests:: → 18 passed in 0.00–0.06 s (exit criterion: under one second).

Closes #1326.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Convert the 9 remaining tokio::time::sleep waits in pkgs/id/src/world/tests.rs
to deterministic await-point waits: yield_now inside the existing
deadline-bounded caps_report/records condition loops, and a
journaled-condition wait (host chat line committed) instead of the 100ms
settle in the actor journaling test. No sleep remains in the file, so the
F11.5 exit criterion is now literally met; the Phase 11 status record
says so.
@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 01:13
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c8fcdd7a-bae2-41c5-b17e-30cd6fe95226
Commits

Reviewing files that changed from the base of the PR and between 40c5d40 and aaff0a0.

Files selected for processing: 2
  • .opencode/plans/2026-10-20_phase-11-status.md
  • pkgs/id/src/world/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-03T01:15:18.692331Z aaff0a0 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.

@dezren39
dezren39 merged commit 4a29ec8 into main Nov 3, 2026
1 of 2 checks passed
@dezren39
dezren39 deleted the queue/6564-1326-world-test-sleeps branch November 3, 2026 02:37
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.

id: F11.5 injected-clock exit criterion not literally met — polling sleeps remain in world tests

1 participant