Skip to content

Serialize tests that share Windows sandbox accounts - #49389

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/26d4606cb1fdcac65926d29835bed4eac04c19c0
Sep 29, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Serialize tests that share Windows sandbox accounts

Why

Elevated sandbox tests share machine-local Windows accounts. Concurrent setup can rotate account passwords between another test's setup and logon.

What changed

  • Add a shared file-lock guard for elevated sandbox tests in codex-core, codex-exec-server, and codex-windows-sandbox, held through sandbox commands and cleanup.
  • Queue these tests in a single-threaded Nextest group before their timeouts start, while retaining the file lock to coordinate other test processes.
  • Limit account locking to tests that use elevated accounts and remove the sandbox crate's blanket Bazel exclusive-if-local tag.

## Why

Elevated sandbox tests share machine-local Windows accounts. Concurrent setup can rotate account passwords between another test's setup and logon.

## What changed

- Add a shared file-lock guard for elevated sandbox tests in `codex-core`, `codex-exec-server`, and `codex-windows-sandbox`, held through sandbox commands and cleanup.
- Queue these tests in a single-threaded Nextest group before their timeouts start, while retaining the file lock to coordinate other test processes.
- Limit account locking to tests that use elevated accounts and remove the sandbox crate's blanket Bazel `exclusive-if-local` tag.

GitOrigin-RevId: 26d4606cb1fdcac65926d29835bed4eac04c19c0
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/26d4606cb1fdcac65926d29835bed4eac04c19c0 branch from ee5c296 to 9212b3e Compare September 29, 2026 22:50
@copyberry
copyberry Bot merged commit 9212b3e into main Sep 29, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/26d4606cb1fdcac65926d29835bed4eac04c19c0 branch September 29, 2026 22:50
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 29, 2026

This branch was successfully deployed

1 active deployment
issue-triage — 9212b3ec Deployed Sep 29, 2026 by 6h4fgyr9f6-wq via Translate non-English issue #16173
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.

3 participants