Skip to content

Wait for helper completion in HTTP header cancellation tests - #51689

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2612679aff756306ea3e05ef7bb9b4db02633fd5
Oct 7, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2612679aff756306ea3e05ef7bb9b4db02633fd5

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Wait for helper completion in HTTP header cancellation tests

Replace fixed 500 ms sleeps in helper_attempt_is_shared_after_cancellation with polling of the helper completion marker every 10 ms, bounded by a five-second timeout.

This lets the test observe completion independently of the cancelled headers or refresh request without assuming the helper finishes within 500 ms. Preserve the assertions that subsequent calls reuse the same helper attempt.

Replace fixed 500 ms sleeps in `helper_attempt_is_shared_after_cancellation` with polling of the helper completion marker every 10 ms, bounded by a five-second timeout.

This lets the test observe completion independently of the cancelled headers or refresh request without assuming the helper finishes within 500 ms. Preserve the assertions that subsequent calls reuse the same helper attempt.

GitOrigin-RevId: 2612679aff756306ea3e05ef7bb9b4db02633fd5
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2612679aff756306ea3e05ef7bb9b4db02633fd5 branch from 6d6ef4e to 1199b39 Compare October 7, 2026 13:17
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
πŸ“ Code Review πŸ”„ Running since 2026-10-07T13:17:20.391007Z 6d6ef4e 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.

@copyberry
copyberry Bot merged commit 1199b39 into main Oct 7, 2026
6 of 9 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2612679aff756306ea3e05ef7bb9b4db02633fd5 branch October 7, 2026 13:17
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 7, 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