|
18 | 18 | secrets: |
19 | 19 | DEVELOCITY_ACCESS_KEY: |
20 | 20 | required: false |
21 | | - FLAKY_TEST_REPORTER_ACCESS_KEY: |
22 | | - required: false |
23 | 21 |
|
24 | 22 | permissions: |
25 | 23 | contents: read |
@@ -338,48 +336,6 @@ jobs: |
338 | 336 | if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }} |
339 | 337 | run: cat build-scan.txt |
340 | 338 |
|
341 | | - - name: Get current job url |
342 | | - id: jobs |
343 | | - if: ${{ !cancelled() }} |
344 | | - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 |
345 | | - env: |
346 | | - matrix: ${{ toJson(matrix) }} |
347 | | - with: |
348 | | - result-encoding: string |
349 | | - script: | |
350 | | - try { |
351 | | - const matrix = JSON.parse(process.env.matrix); |
352 | | - const job_name = `common / test${ matrix['test-partition'] } (${ matrix['test-java-version'] }, ${ matrix.vm }, indy ${ matrix['test-indy'] })`; |
353 | | - const workflow_jobs_nested = await github.paginate( |
354 | | - github.rest.actions.listJobsForWorkflowRun, |
355 | | - { |
356 | | - owner: context.repo.owner, |
357 | | - repo: context.repo.repo, |
358 | | - run_id: context.runId, |
359 | | - per_page: 100 |
360 | | - }, |
361 | | - (response) => { |
362 | | - return response.data; |
363 | | - }, |
364 | | - ); |
365 | | - const job = workflow_jobs_nested.flat().find((job) => job.name === job_name); |
366 | | - return job ? job.html_url : ''; |
367 | | - } catch (e) { |
368 | | - core.warning(`Failed to get current job url: ${e}`); |
369 | | - return ''; |
370 | | - } |
371 | | -
|
372 | | - - name: Flaky test report |
373 | | - if: ${{ !cancelled() }} |
374 | | - env: |
375 | | - FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }} |
376 | | - JOB_URL: ${{ steps.jobs.outputs.result }} |
377 | | - run: | |
378 | | - if [ -s build-scan.txt ]; then |
379 | | - export BUILD_SCAN_URL=$(cat build-scan.txt) |
380 | | - fi |
381 | | - ./gradlew :test-report:reportFlakyTests |
382 | | -
|
383 | 339 | - name: Upload deadlock detector artifacts if any |
384 | 340 | if: failure() |
385 | 341 | uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
|
0 commit comments