Skip to content

Commit b8b5aad

Browse files
committed
CI: add fail-fast=false and retry wrapper to UT workflows
- strategy.fail-fast: false in both vstar-UT.yml and plugin-UT.yml so a flake on one Java matrix cell no longer cancels the other versions (e.g. PR #582 lost Java 23 visibility because Java 21 flaked). - Wrap the test step with nick-fields/retry@v3 (max_attempts: 2, timeout_minutes: 20 for vstar, 25 for plugin) so transient flakes are auto-retried before surfacing as job failures. steps.tests.outcome still reflects the final attempt, so the existing metrics, PR comment, and dashboard publish steps are unaffected. Made-with: Cursor
1 parent 8c15278 commit b8b5aad

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/plugin-UT.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
strategy:
23+
fail-fast: false
2324
matrix:
2425
java: [ '17', '21', '23' ]
2526

@@ -40,10 +41,14 @@ jobs:
4041
mkdir -p ~/vstar_plugin_libs
4142
- name: Build and test with coverage
4243
id: tests
43-
run: |
44-
ant -noinput -buildfile build.xml dist
45-
cd plugin
46-
ant -noinput -buildfile build.xml coverage-report
44+
uses: nick-fields/retry@v3
45+
with:
46+
timeout_minutes: 25
47+
max_attempts: 2
48+
command: |
49+
ant -noinput -buildfile build.xml dist
50+
cd plugin
51+
ant -noinput -buildfile build.xml coverage-report
4752
4853
- name: Extract test and coverage metrics
4954
if: always()

.github/workflows/vstar-UT.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
strategy:
22+
fail-fast: false
2223
matrix:
2324
java: [ '17', '21', '23' ]
2425

@@ -39,8 +40,11 @@ jobs:
3940
mkdir -p ~/vstar_plugin_libs
4041
- name: Run tests with coverage
4142
id: tests
42-
run:
43-
ant -noinput -buildfile build.xml coverage-report
43+
uses: nick-fields/retry@v3
44+
with:
45+
timeout_minutes: 20
46+
max_attempts: 2
47+
command: ant -noinput -buildfile build.xml coverage-report
4448

4549
- name: Extract test and coverage metrics
4650
if: always()

0 commit comments

Comments
 (0)