Skip to content

deflake linux-sandbox NoNewPrivs timeout#11245

Merged
joshka-oai merged 1 commit intomainfrom
joshka/deflake-linux-sandbox-nonewprivs-timeout
Feb 10, 2026
Merged

deflake linux-sandbox NoNewPrivs timeout#11245
joshka-oai merged 1 commit intomainfrom
joshka/deflake-linux-sandbox-nonewprivs-timeout

Conversation

@joshka-oai
Copy link
Collaborator

@joshka-oai joshka-oai commented Feb 9, 2026

Deflake codex-linux-sandbox::all suite::landlock::test_no_new_privs_is_enabled.

CI has intermittently failed with Sandbox(Timeout) (exit 124) because the sandboxed
grep '^NoNewPrivs:' /proc/self/status can run close to the short timeout budget.

This updates only this test to use LONG_TIMEOUT_MS, which removes the near-threshold timeout
behavior while keeping the rest of the suite unchanged.

Refs (previous failures):

Validation:

  • Local: cd codex-rs && cargo test -p codex-linux-sandbox (non-Linux runs 0 tests)

landlock::test_no_new_privs_is_enabled has been timing out in rust-ci
(Sandbox(Timeout)) because the 200ms budget for the sandboxed `grep`
is occasionally exceeded (observed ~203ms).

Use `LONG_TIMEOUT_MS` for this test to make the timeout deterministic and
follow the existing timeout policy constants in this file.

Refs:
- PR run 21836764823 job 63009902779
- main run 21830746538 job 62988079964
- Review feedback on PR #11245

Validation:
- Local: cargo test -p codex-linux-sandbox (non-Linux runs 0 tests)
@joshka-oai joshka-oai force-pushed the joshka/deflake-linux-sandbox-nonewprivs-timeout branch from d5dedae to 891084a Compare February 10, 2026 02:47
@joshka-oai
Copy link
Collaborator Author

joshka-oai commented Feb 10, 2026

Addressed bolinfest suggestion in 891084a: switched test_no_new_privs_is_enabled to LONG_TIMEOUT_MS instead of using an intermediate timeout value.

@joshka-oai joshka-oai enabled auto-merge (squash) February 10, 2026 03:00
@joshka-oai joshka-oai merged commit 34c88d1 into main Feb 10, 2026
32 checks passed
@joshka-oai joshka-oai deleted the joshka/deflake-linux-sandbox-nonewprivs-timeout branch February 10, 2026 03:03
@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 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.

2 participants