Skip to content

Reduce unit and integration test flakes - #9196

Merged
aarongable merged 2 commits into
mainfrom
unit-test-db-flake
Nov 23, 2026
Merged

aarongable merged 2 commits into
mainfrom
unit-test-db-flake

Conversation

@aarongable

Copy link
Copy Markdown
Contributor

Unit tests: It's not just the RA that shares a database with everything else, the bad-key-revoker, cert-checker, and sa tests also share the same database. Run them all serially after the rest of the tests are done.

Integration tests: Make generate.sh smarter, so it automatically wipes and then regenerates any keys and certs whose input files (configs and scripts) are newer than the existing output files on disk. It also prints a nice warning message if you need to restart your docker containers as a result.

These two fixes in combination reduce my local test flake rate significantly.

PR written entirely by claude, PR description by me.

@aarongable
aarongable marked this pull request as ready for review November 23, 2026 18:37
@aarongable
aarongable requested a review from a team as a code owner November 23, 2026 18:37
@aarongable
aarongable requested a review from ezekiel November 23, 2026 18:37
@aarongable
aarongable merged commit 8279973 into main Nov 23, 2026
19 checks passed
@aarongable
aarongable deleted the unit-test-db-flake branch November 23, 2026 20:13
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