mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
Retry evals on API error. (#23322)
This commit is contained in:
committed by
GitHub
parent
244a608186
commit
28935d1e6b
@@ -61,6 +61,7 @@ jobs:
|
|||||||
GEMINI_MODEL: '${{ matrix.model }}'
|
GEMINI_MODEL: '${{ matrix.model }}'
|
||||||
RUN_EVALS: "${{ github.event.inputs.run_all != 'false' }}"
|
RUN_EVALS: "${{ github.event.inputs.run_all != 'false' }}"
|
||||||
TEST_NAME_PATTERN: '${{ github.event.inputs.test_name_pattern }}'
|
TEST_NAME_PATTERN: '${{ github.event.inputs.test_name_pattern }}'
|
||||||
|
VITEST_RETRY: 0
|
||||||
run: |
|
run: |
|
||||||
CMD="npm run test:all_evals"
|
CMD="npm run test:all_evals"
|
||||||
PATTERN="${TEST_NAME_PATTERN}"
|
PATTERN="${TEST_NAME_PATTERN}"
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
testTimeout: 300000, // 5 minutes
|
testTimeout: 300000, // 5 minutes
|
||||||
|
// Retry in CI but not nightly to avoid blocking on API error.
|
||||||
|
retry: process.env['VITEST_RETRY']
|
||||||
|
? parseInt(process.env['VITEST_RETRY'], 10)
|
||||||
|
: 3,
|
||||||
reporters: ['default', 'json'],
|
reporters: ['default', 'json'],
|
||||||
outputFile: {
|
outputFile: {
|
||||||
json: 'evals/logs/report.json',
|
json: 'evals/logs/report.json',
|
||||||
|
|||||||
Reference in New Issue
Block a user