feat(infra) - Create a workflow for deflake (#11535)

Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
This commit is contained in:
shishu314
2025-10-22 14:41:26 -04:00
committed by GitHub
parent 0bf2a0353d
commit 5bb9cd1a13
3 changed files with 149 additions and 7 deletions

View File

@@ -59,12 +59,20 @@ npm run test:e2e -- --test-name-pattern "reads a file"
### Deflaking a test
Before adding a **new** integration test, you should test it at least 5 times
with the deflake script to make sure that it is not flaky.
with the deflake script or workflow to make sure that it is not flaky.
### Deflake script
```bash
npm run deflake -- --runs=5 --command="npm run test:e2e -- -- --test-name-pattern '<your-new-test-name>'"
```
#### Deflake Workflow
```bash
gh workflow run deflake.yml --ref <your-branch> -f test_name_pattern="<your-test-name-pattern>"
```
### Running all tests
To run the entire suite of integration tests, use the following command: