diff --git a/.github/workflows/pd-tests.yaml b/.github/workflows/pd-tests.yaml index 73e31fd4ad1..99b75175b5c 100644 --- a/.github/workflows/pd-tests.yaml +++ b/.github/workflows/pd-tests.yaml @@ -7,6 +7,7 @@ on: - release-5.* - release-6.* - release-7.* + - feature/** pull_request: branches: - master @@ -14,6 +15,7 @@ on: - release-5.* - release-6.* - release-7.* + - feature/** concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true @@ -51,9 +53,9 @@ jobs: mv covprofile covprofile_$WORKER_ID sed -i "/failpoint_binding/d" covprofile_$WORKER_ID - name: Upload coverage result ${{ matrix.worker_id }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: cover-reports + name: cover-reports-${{ matrix.worker_id }} path: covprofile_${{ matrix.worker_id }} report-coverage: needs: chunks @@ -62,17 +64,23 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - name: Download chunk report - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: - name: cover-reports + pattern: cover-reports-* + merge-multiple: true - name: Merge env: TOTAL_JOBS: ${{needs.chunks.outputs.job-total}} - run: for i in $(seq 1 $TOTAL_JOBS); do cat covprofile_$i >> covprofile; done + run: | + for i in $(seq 1 $TOTAL_JOBS); do cat covprofile_$i >> covprofile; done + sed -i "/failpoint_binding/d" covprofile + # only keep the first line(`mode: aomic`) of the coverage profile + sed -i '2,${/mode: atomic/d;}' covprofile - name: Send coverage - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV }} file: ./covprofile flags: unittests name: codecov-umbrella + diff --git a/.github/workflows/tso-function-test.yaml b/.github/workflows/tso-function-test.yaml index ee7679602f5..b39d995a2ed 100644 --- a/.github/workflows/tso-function-test.yaml +++ b/.github/workflows/tso-function-test.yaml @@ -6,12 +6,14 @@ on: - release-5.* - release-6.* - release-7.* + - feature/** pull_request: branches: - master - release-5.* - release-6.* - release-7.* + - feature/** concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true