Skip to content

[codex] make shutdown pending-touch test deterministic#21550

Merged
jif-oai merged 1 commit into
mainfrom
codex/shutdown-flush-test-flake
May 8, 2026
Merged

[codex] make shutdown pending-touch test deterministic#21550
jif-oai merged 1 commit into
mainfrom
codex/shutdown-flush-test-flake

Conversation

@jif-oai

@jif-oai jif-oai commented May 7, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • rewrote shutdown_flushes_pending_metadata_irrelevant_updated_at to seed an existing pending updated_at touch directly in RolloutWriterState
  • kept the shutdown test focused on draining a pending touch, leaving the separate coalescing test to cover timing-based deferral

Why

The old test had to complete several async operations inside the 50 ms test-only coalescing window. When that sequence took longer, the second flush updated threads.updated_at immediately and the pre-shutdown equality assertion failed, even though shutdown behavior was correct.

Validation

  • cargo test -p codex-rollout shutdown_flushes_pending_metadata_irrelevant_updated_at
  • cargo test -p codex-rollout

Co-authored-by: Codex <noreply@openai.com>
@jif-oai jif-oai marked this pull request as ready for review May 7, 2026 16:23
@jif-oai

jif-oai commented May 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Hooray!

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jif-oai jif-oai merged commit d9feaff into main May 8, 2026
26 checks passed
@jif-oai jif-oai deleted the codex/shutdown-flush-test-flake branch May 8, 2026 08:48
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant