Skip to content

Commit

Permalink
This is an automated cherry-pick of #8071
Browse files Browse the repository at this point in the history
close #8070

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
HuSharp authored and ti-chi-bot committed Sep 13, 2024
1 parent a8ea617 commit 92a9dec
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ jobs:
statics:
runs-on: ubuntu-latest
steps:
<<<<<<< HEAD
- uses: actions/setup-go@v2
with:
go-version: 1.16
Expand All @@ -20,6 +21,13 @@ jobs:
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang
=======
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
>>>>>>> acbb9afaa (ci: transitioning action version from node 16 to node 20 (#8071))
- name: Make Check
run: |
make build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
add_labels:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v4
- uses: actions/github-script@v7
name: Add labels
with:
script: |
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/pd-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PD Docker Image
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
chunks:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Make
run: make docker-image
21 changes: 17 additions & 4 deletions .github/workflows/pd-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
outputs:
job-total: ${{ strategy.job-total }}
steps:
<<<<<<< HEAD
- uses: actions/setup-go@v2
with:
go-version: 1.16
Expand Down Expand Up @@ -54,6 +55,13 @@ jobs:
packages="{$(cat packages_unit_${WORKER_ID} |tr "\n" ",")}"
echo "This worker will test the chunk - ${packages}"
echo "::set-output name=list::${packages}"
=======
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
>>>>>>> acbb9afaa (ci: transitioning action version from node 16 to node 20 (#8071))
- name: Make Test
env:
WORKER_ID: ${{ matrix.worker_id }}
Expand All @@ -62,20 +70,25 @@ 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
runs-on: ubuntu-latest
steps:
- name: Checkout code
<<<<<<< HEAD
uses: actions/checkout@v2
=======
uses: actions/checkout@v4
>>>>>>> acbb9afaa (ci: transitioning action version from node 16 to node 20 (#8071))
- 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}}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/tso-consistency-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ jobs:
tso-consistency-test:
runs-on: ubuntu-latest
steps:
<<<<<<< HEAD
- uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Checkout code
uses: actions/checkout@v2
=======
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
>>>>>>> acbb9afaa (ci: transitioning action version from node 16 to node 20 (#8071))
- name: Make TSO Consistency Test
run: make test-tso-consistency
8 changes: 8 additions & 0 deletions .github/workflows/tso-function-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ jobs:
tso-function-test:
runs-on: ubuntu-latest
steps:
<<<<<<< HEAD
- uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Checkout code
uses: actions/checkout@v2
=======
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
>>>>>>> acbb9afaa (ci: transitioning action version from node 16 to node 20 (#8071))
- name: Make TSO Function Test
run: make test-tso-function

0 comments on commit 92a9dec

Please sign in to comment.