Skip to content

Stabilize the TUI exit interruption test - #46517

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d8f92b941b3fe8a077f447c6bf705a2ef922db03
Sep 18, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Stabilize the TUI exit interruption test

Why

The test launches a real shell, but its fixture uses a working directory that does not exist on clean runners. Waiting only for a turn-start notification also does not establish that the shell is running before interruption.

What changed

  • Give exit_interrupts_before_requesting_shutdown a temporary working directory.
  • Replace the fixed 30-second sleep with a loop that stays alive while a temporary directory exists, with cleanup allowing the command to finish if the test fails early.
  • Wait for both the turn ID and exit-test-ready output within a single 10-second timeout, and fail immediately if the turn completes before interruption.

## Why

The test launches a real shell, but its fixture uses a working directory that does not exist on clean runners. Waiting only for a turn-start notification also does not establish that the shell is running before interruption.

## What changed

- Give `exit_interrupts_before_requesting_shutdown` a temporary working directory.
- Replace the fixed 30-second sleep with a loop that stays alive while a temporary directory exists, with cleanup allowing the command to finish if the test fails early.
- Wait for both the turn ID and `exit-test-ready` output within a single 10-second timeout, and fail immediately if the turn completes before interruption.

GitOrigin-RevId: d8f92b941b3fe8a077f447c6bf705a2ef922db03
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d8f92b941b3fe8a077f447c6bf705a2ef922db03 branch from 33dd893 to e811c28 Compare September 18, 2026 23:48
@copyberry
copyberry Bot merged commit e811c28 into main Sep 18, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d8f92b941b3fe8a077f447c6bf705a2ef922db03 branch September 18, 2026 23:49
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 18, 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