Skip to content

Commit 07d4052

Browse files
committed
add flaky test report to indy and latest deps workflows
1 parent b302fa5 commit 07d4052

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/reusable-test-indy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,22 @@ jobs:
8686
- name: Build scan
8787
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
8888
run: cat build-scan.txt
89+
90+
- name: Get current job url
91+
uses: Tiryoh/gha-jobid-action@be260d8673c9211a84cdcf37794ebd654ba81eef # v1.4.0
92+
id: jobs
93+
if: ${{ !cancelled() }}
94+
with:
95+
job_name: "test-indy / testIndy${{ matrix.test-partition }}"
96+
per_page: 100 # input matrix size here if it is larger than 30
97+
98+
- name: Flaky test report
99+
if: ${{ !cancelled() }}
100+
env:
101+
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
102+
JOB_URL: ${{ steps.jobs.outputs.html_url }}
103+
run: |
104+
if [ -s build-scan.txt ]; then
105+
export BUILD_SCAN_URL=$(cat build-scan.txt)
106+
fi
107+
./gradlew :test-report:reportFlakyTests

.github/workflows/reusable-test-latest-deps.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,25 @@ jobs:
8585
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
8686
run: cat build-scan.txt
8787

88+
- name: Get current job url
89+
uses: Tiryoh/gha-jobid-action@be260d8673c9211a84cdcf37794ebd654ba81eef # v1.4.0
90+
id: jobs
91+
if: ${{ !cancelled() }}
92+
with:
93+
job_name: "test-latest-deps / testLatestDeps${{ matrix.test-partition }}"
94+
per_page: 100 # input matrix size here if it is larger than 30
95+
96+
- name: Flaky test report
97+
if: ${{ !cancelled() }}
98+
env:
99+
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
100+
JOB_URL: ${{ steps.jobs.outputs.html_url }}
101+
run: |
102+
if [ -s build-scan.txt ]; then
103+
export BUILD_SCAN_URL=$(cat build-scan.txt)
104+
fi
105+
./gradlew :test-report:reportFlakyTests
106+
88107
- name: Upload deadlock detector artifacts if any
89108
if: failure()
90109
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0

0 commit comments

Comments
 (0)