Skip to content

Commit 9614ece

Browse files
authored
fix(ci): prevent Test Reporter from aggregating stale test results (kroxylicious#3805)
The Test Reporter action was configured to download artifacts by name, which caused it to aggregate test results from multiple workflow runs instead of just the current run. When artifact names are reused across runs, the action downloads all matching artifacts from the repository history, leading to false positives from stale test failures. Changed to read test results directly from the local filesystem (kroxylicious-systemtests/target/surefire-reports/**/TEST-*.xml) instead of downloading the artifact that was just uploaded in the same job. This ensures only current test results are reported, eliminating false failures from previous runs. Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Keith Wall <kwall@apache.org>
1 parent e41c693 commit 9614ece

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/run-system-tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ jobs:
200200
uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2
201201
if: ${{ !cancelled() }}
202202
with:
203-
artifact: junit-results-${{ matrix.tests }}-${{ inputs.kafkaClient }}
204203
name: SystemTests-${{ matrix.tests }}-${{ inputs.kafkaClient }}
205-
path: '*.xml'
204+
path: 'kroxylicious-systemtests/target/surefire-reports/**/TEST-*.xml'
206205
reporter: java-junit
207206
fail-on-empty: 'false'
208207

0 commit comments

Comments
 (0)