mirror of
https://github.com/fleetdm/fleet
synced 2026-05-01 10:27:35 +00:00
This PR adds a new workflow called "Stress Test Go Test" (aka the RandoKiller) that allows running one or more tests repeatedly up to a set number of times, or until a test fails. This is useful for: * Trying to diagnose and debug a flaky test * Verifying that a proposed fix for a flaky test actually works. To use: 1. Create a branch whose name ends with "-randokiller" 2. Modify the .github/workflows/config/randokiller.json file to your specifications (choosing the packages and tests to run, the mysql matrix, and the number of runs to do) 3. Push up the branch Since the stress test is intended to run a branch that you'll never merge, you should feel free to add whatever logs to your tests or code that will help diagnose failures. I used this to diagnose and fix https://github.com/fleetdm/fleet/pull/24697!
8 lines
No EOL
146 B
JSON
8 lines
No EOL
146 B
JSON
{
|
|
"mysql_matrix": [
|
|
"mysql:8.0.36"
|
|
],
|
|
"pkg_to_test": "server/service",
|
|
"tests_to_run": "^TestIntegrationsMDM\\$$",
|
|
"num_tries": 20
|
|
} |