Skip to content

test(core): synchronize terminal-idle finalizer retry - #693

Merged
GraciousGazelles merged 1 commit into
mainfrom
fix/terminal-idle-finalizer-sync
Aug 31, 2026
Merged

GraciousGazelles merged 1 commit into
mainfrom
fix/terminal-idle-finalizer-sync

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

Make the terminal-idle finalizer retry test observe actual timer registration before advancing Tokio’s paused clock.

The watcher now emits a test-only notification after polling each deadline timer once, and the test waits for that event before advancing each interval. Production unload behavior and lifecycle generation checks remain unchanged; finalizer deferral and retry assertions remain intact.

Validation

  • git diff --check 0148aa162027e0a5e30f731ac83efce9e7e8ee39..HEAD
  • cargo fmt --all -- --check (run from codex-rs; existing stable-channel warnings only)
  • Local Rust compile/tests were not run per task instructions; hosted PR workflows should provide behavioral proof.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a mechanism to track when the terminal idle unload deadline timer is first polled during tests. By pinning the sleep future and polling it explicitly before notifying the test, it ensures that the virtual timer is registered before the test advances virtual time, preventing potential race conditions. Corresponding test assertions have been updated to wait for this poll event. There are no review comments, so I have no feedback to provide.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit 357d1fc Aug 31, 2026
139 of 143 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/terminal-idle-finalizer-sync branch August 31, 2026 17:52
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