Skip to content

Commit

Permalink
only run test for election and etcdutil
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Sep 2, 2023
1 parent b68b701 commit 4278773
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 135 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/check.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/pd-docker-image.yaml

This file was deleted.

62 changes: 31 additions & 31 deletions .github/workflows/pd-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
strategy:
fail-fast: true
matrix:
worker_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
worker_id: [1]
outputs:
job-total: 13
job-total: 1
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.21'
go-version: "1.21"
- name: Checkout code
uses: actions/checkout@v3
- name: Restore cache
Expand All @@ -48,31 +48,31 @@ jobs:
JOB_COUNT: 10 # 11, 12 13 are for other integrations jobs
run: |
make ci-test-job JOB_COUNT=$(($JOB_COUNT)) JOB_INDEX=$WORKER_ID
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
with:
name: cover-reports
path: covprofile_${{ matrix.worker_id }}
report-coverage:
needs: chunks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download chunk report
uses: actions/download-artifact@v2
with:
name: cover-reports
- name: Merge
env:
TOTAL_JOBS: ${{needs.chunks.outputs.job-total}}
run: for i in $(seq 1 $TOTAL_JOBS); do cat covprofile_$i >> covprofile; done
- name: Send coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV }}
file: ./covprofile
flags: unittests
name: codecov-umbrella
# 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
# with:
# name: cover-reports
# path: covprofile_${{ matrix.worker_id }}
# report-coverage:
# needs: chunks
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Download chunk report
# uses: actions/download-artifact@v2
# with:
# name: cover-reports
# - name: Merge
# env:
# TOTAL_JOBS: ${{needs.chunks.outputs.job-total}}
# run: for i in $(seq 1 $TOTAL_JOBS); do cat covprofile_$i >> covprofile; done
# # - name: Send coverage
# # uses: codecov/codecov-action@v1
# # with:
# # token: ${{ secrets.CODECOV }}
# # file: ./covprofile
# # flags: unittests
# # name: codecov-umbrella
17 changes: 0 additions & 17 deletions .github/workflows/tso-consistency-test.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/tso-function-test.yaml

This file was deleted.

7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,8 @@ basic-test: install-tools

ci-test-job: install-tools dashboard-ui
@$(FAILPOINT_ENABLE)
if [[ $(JOB_INDEX) -le 10 ]]; then \
CGO_ENABLED=1 go test -timeout=15m -tags deadlock -race -covermode=atomic -coverprofile=covprofile -coverpkg=./... $(shell ./scripts/ci-subtask.sh $(JOB_COUNT) $(JOB_INDEX)); \
else \
for mod in $(shell ./scripts/ci-subtask.sh $(JOB_COUNT) $(JOB_INDEX)); do cd $$mod && $(MAKE) ci-test-job && cd $(ROOT_PATH) > /dev/null && cat $$mod/covprofile >> covprofile; done; \
fi
CGO_ENABLED=1 go test -timeout=15m -tags deadlock -race github.com/tikv/pd/pkg/election github.com/tikv/pd/pkg/utils/etcdutil
@$(FAILPOINT_DISABLE)

TSO_INTEGRATION_TEST_PKGS := $(PD_PKG)/tests/server/tso

Expand Down

0 comments on commit 4278773

Please sign in to comment.