@@ -314,9 +314,18 @@ jobs:
314314 path : ~/.cache/go-build
315315 key : go-${{ runner.os }}${{ runner.arch }}-build-${{ env.COMMIT }}
316316
317+ - name : Get job ID
318+ id : get_job_id
319+ uses : ./.github/actions/get-job-id
320+ with :
321+ job_name : Unit test
322+ run_id : ${{ github.run_id }}
323+
317324 - name : Run unit tests
318325 timeout-minutes : 20
319326 run : TEST_TIMEOUT=15m ./develop/github/monitor_test.sh make unit-test-coverage
327+ env :
328+ GITHUB_JOB_ID : ${{ steps.get_job_id.outputs.job_id }}
320329
321330 - name : Print memory snapshot
322331 if : always()
@@ -328,16 +337,6 @@ jobs:
328337 [ "$(find .testoutput -maxdepth 1 -name 'junit.*.xml' | wc -l)" -lt "$MAX_TEST_ATTEMPTS" ] &&
329338 CRASH_REPORT_NAME="$GITHUB_JOB" make report-test-crash
330339
331- - name : Generate test summary
332- uses : mikepenz/action-junit-report@v6
333- if : ${{ !cancelled() }}
334- with :
335- report_paths : ./.testoutput/junit.*.xml
336- detailed_summary : true
337- check_annotations : false
338- annotate_only : true
339- skip_annotations : true
340-
341340 - name : Upload code coverage to Codecov
342341 uses : codecov/codecov-action@v5
343342 with :
@@ -354,13 +353,6 @@ jobs:
354353 flags : unit-test
355354 report_type : test_results
356355
357- - name : Get job ID
358- id : get_job_id
359- uses : ./.github/actions/get-job-id
360- with :
361- job_name : Unit test
362- run_id : ${{ github.run_id }}
363-
364356 - name : Upload test results to GitHub
365357 # Can't pin to major because the action linter doesn't recognize the include-hidden-files flag.
366358 uses : actions/upload-artifact@v6
@@ -414,9 +406,18 @@ jobs:
414406 # shellcheck disable=SC2046
415407 docker compose -f ${{ env.DOCKER_COMPOSE_FILE }} up --wait $(docker compose -f ${{ env.DOCKER_COMPOSE_FILE }} ps --services)
416408
409+ - name : Get job ID
410+ id : get_job_id
411+ uses : ./.github/actions/get-job-id
412+ with :
413+ job_name : Integration test
414+ run_id : ${{ github.run_id }}
415+
417416 - name : Run integration test
418417 timeout-minutes : 15
419418 run : ./develop/github/monitor_test.sh make integration-test-coverage
419+ env :
420+ GITHUB_JOB_ID : ${{ steps.get_job_id.outputs.job_id }}
420421
421422 - name : Print memory snapshot
422423 if : always()
@@ -428,16 +429,6 @@ jobs:
428429 [ "$(find .testoutput -maxdepth 1 -name 'junit.*.xml' | wc -l)" -lt "$MAX_TEST_ATTEMPTS" ] &&
429430 CRASH_REPORT_NAME="$GITHUB_JOB" make report-test-crash
430431
431- - name : Generate test summary
432- uses : mikepenz/action-junit-report@v6
433- if : ${{ !cancelled() }}
434- with :
435- report_paths : ./.testoutput/junit.*.xml
436- detailed_summary : true
437- check_annotations : false
438- annotate_only : true
439- skip_annotations : true
440-
441432 - name : Upload code coverage to Codecov
442433 uses : codecov/codecov-action@v5
443434 with :
@@ -454,13 +445,6 @@ jobs:
454445 flags : integration-test
455446 report_type : test_results
456447
457- - name : Get job ID
458- id : get_job_id
459- uses : ./.github/actions/get-job-id
460- with :
461- job_name : Integration test
462- run_id : ${{ github.run_id }}
463-
464448 - name : Upload test results to GitHub
465449 # Can't pin to major because the action linter doesn't recognize the include-hidden-files flag.
466450 uses : actions/upload-artifact@v6
@@ -547,6 +531,7 @@ jobs:
547531 timeout-minutes : ${{ matrix.github_timeout }}
548532 run : ./develop/github/monitor_test.sh ${{ matrix.cmd }}
549533 env :
534+ GITHUB_JOB_ID : ${{ steps.get_job_id.outputs.job_id }}
550535 TEST_TOTAL_SHARDS : ${{ matrix.total_shards }}
551536 TEST_SHARD_INDEX : ${{ matrix.total_shards && matrix.shard_index }} # guard with total_shards to avoid falsy eval of shard_index=0
552537 TEST_ARGS : " ${{ matrix.test_args }}"
@@ -567,16 +552,6 @@ jobs:
567552 [ "$(find .testoutput -maxdepth 1 -name 'junit.*.xml' | wc -l)" -lt "$MAX_TEST_ATTEMPTS" ] &&
568553 CRASH_REPORT_NAME="$GITHUB_JOB" make report-test-crash
569554
570- - name : Generate test summary
571- uses : mikepenz/action-junit-report@v6
572- if : ${{ !cancelled() }}
573- with :
574- report_paths : ./.testoutput/junit.*.xml
575- detailed_summary : true
576- check_annotations : false
577- annotate_only : true
578- skip_annotations : true
579-
580555 - name : Upload code coverage to Codecov
581556 uses : codecov/codecov-action@v5
582557 with :
0 commit comments