Skip to content

acc: add a fault sweep that fails one request per test to check CLI retries - #8133

Draft
denik wants to merge 3 commits into
mainfrom
denik/acc-fault-sweep
Draft

denik wants to merge 3 commits into
mainfrom
denik/acc-fault-sweep

Conversation

@denik

@denik denik commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Changes

A new way to check that tests and the CLI survive a backend error. go test ./acceptance -faultplan plan.json fails one chosen request per test (by its number in the test's request sequence). The fault is one of 429, 500, 502, 503, 504, a 504 after the handler applied the request, a TCP reset before or after the handler, or a truncated response body. The test must still pass unchanged: the retry warning is filtered by SuppressLines.warn_retry, and the failed attempt is dropped from out.requests.txt the same way the cloud proxy drops it. -faultlog records each test's request count and the fault that fired.

tools/fault_sweep.py drives it. It runs the selection a few times to learn the max request count per test, leaving out tests that fail without faults. Then each round picks a random request and fault kind for every test, and reruns the tests that passed with the same fault.

Why

Backend errors on real workspaces are the main source of flaky cloud tests and of user-visible failures that a retry would have hidden. This finds the requests the CLI does not retry, without waiting for them to show up on cloud.

Tests

Unit tests for the testserver faults and the recorder. Ran the sweep on bundle/resources/jobs (71 tests, 2 rounds) and on the full suite; the findings will be in a comment.

🤖 AI agent (opus5.5, isaac_claude)

This pull request and its description were written by Isaac.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: a69473d

Run: 46029712662

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 173 17 4:38
💚​ aws-windows-latest-4core-16gb 1 173 17 3:08
💚​ azure linux-2core-8gb 1 172 17 3:58
💚​ azure-windows-latest-4core-16gb 1 172 17 3:23
💚​ gcp linux-2core-8gb 1 173 17 4:06
💚​ gcp-windows-latest-4core-16gb 1 173 17 3:14
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
3:58 azure linux-2core-8gb TestAccept
3:55 gcp linux-2core-8gb TestAccept
3:50 aws linux-2core-8gb TestAccept
3:21 azure-windows-latest-4core-16gb TestAccept
3:12 gcp-windows-latest-4core-16gb TestAccept
3:06 aws-windows-latest-4core-16gb TestAccept

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants