mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
Document flaky test triage
Track CI-history evidence, hypotheses, and the per-commit pass ledger for the flaky-test investigation. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# Flaky Test Triage
|
||||
|
||||
## Objective
|
||||
|
||||
Eliminate flaky tests without disabling, quarantining, or skipping them, then reach five consecutive commits on this PR where the full GitHub CI test suite passes.
|
||||
|
||||
## Method
|
||||
|
||||
1. Sample the latest 30 merged PRs on `main`.
|
||||
2. Inspect GitHub Actions history for failures in those PRs.
|
||||
3. Treat tests that fail in isolated PR runs, but not broadly across the full suite, as flaky candidates.
|
||||
4. Make the smallest deterministic fix possible.
|
||||
5. Use PR CI as the source of truth for verification.
|
||||
|
||||
## Initial CI Evidence
|
||||
|
||||
Recent `rust-ci` failures on unrelated merged PRs repeatedly clustered in `Tests` jobs rather than lint or build jobs. The strongest pattern so far is Windows test failures:
|
||||
|
||||
| Run ID | PR | Result | Failing job(s) observed |
|
||||
| --- | --- | --- | --- |
|
||||
| `23078147759` | `#14645` | failure | `Tests — windows-x64 - x86_64-pc-windows-msvc` |
|
||||
| `23078085247` | `#14639` | failure | `Tests — windows-x64 - x86_64-pc-windows-msvc` |
|
||||
| `23075863238` | `#14633` | failure | `Tests — windows-x64 - x86_64-pc-windows-msvc`, `Tests — windows-arm64 - aarch64-pc-windows-msvc` |
|
||||
| `23074360184` | `#14631` | failure | `Tests — windows-x64 - x86_64-pc-windows-msvc` |
|
||||
| `23074136776` | `#14622` | failure | `Tests — windows-x64 - x86_64-pc-windows-msvc` |
|
||||
| `23073664636` | `#14618` | failure | `Tests — windows-x64 - x86_64-pc-windows-msvc` |
|
||||
|
||||
Older failures also appeared on Linux, but the repeated cross-PR signal is strongest on Windows test jobs.
|
||||
|
||||
## Known Related History
|
||||
|
||||
- Merged PR `#14518` (`Add diagnostics for read_only_unless_trusted timeout flake`) targeted `codex-core::all suite::approvals::approval_matrix_covers_all_modes`.
|
||||
- That change increased the timeout used by some approval-related shell events to `5_000ms`, which is the maximum allowed for this effort.
|
||||
- The test still remains a likely candidate because the earlier change addressed a symptom instead of making the behavior deterministic.
|
||||
|
||||
## Current Hypotheses
|
||||
|
||||
1. Approval-related tests in `codex-rs/core/tests/suite/approvals.rs` still have timing-sensitive behavior, especially in cross-platform CI.
|
||||
2. Windows-specific approval UI tests in `codex-rs/tui/src/chatwidget/tests.rs` may depend on partially implicit sandbox state and can fail intermittently on Windows runners.
|
||||
|
||||
## Constraints
|
||||
|
||||
- Do not run tests locally.
|
||||
- Do not increase timeouts beyond `5_000ms`.
|
||||
- Do not disable, quarantine, or skip tests.
|
||||
- Keep fixes minimal and deterministic.
|
||||
|
||||
## Commit CI Ledger
|
||||
|
||||
| Commit | Purpose | PR CI result | Notes |
|
||||
| --- | --- | --- | --- |
|
||||
| _pending_ | PR bootstrap | _pending_ | Tracking starts once the PR is open. |
|
||||
Reference in New Issue
Block a user