-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: fix ci #740
Merged
chore: fix ci #740
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
liuq19
commented
Feb 13, 2025
•
edited
Loading
edited
- Remove the self-host runner in ci
- Remove duplicated codes
d27ca64
to
f17ac90
Compare
.github/workflows/test-arm64.yml
Outdated
Comment on lines
8
to
46
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x] | ||
runner_arch: [ubuntu-24.04-arm, macos-latest] | ||
|
||
runs-on: ${{ matrix.runner_arch }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
cache: true | ||
|
||
- name: Cache Go modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
${{ github.workspace }}/go.sum | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Unit Test | ||
run: | | ||
GOMAXPROCS=4 go test -race -covermode=atomic -coverprofile=coverage.txt ./... $(go list ./... | grep -v -E 'loader|jit|avx|x86|sse') | ||
|
||
- name: Data Race | ||
run: | | ||
./scripts/test_race.sh | ||
|
||
- name: Generic Test | ||
if: ${{ !startsWith(matrix.go-version, '1.17.') }} | ||
run: GOMAXPROCS=4 go test -v -race ./generic_test | ||
|
||
- name: Codecov | ||
run: bash <(curl -s https://codecov.io/bash) |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium test
Actions Job or Workflow does not set permissions
Comment on lines
+8
to
+64
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x] | ||
runner_arch: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.runner_arch }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
cache: true | ||
|
||
- name: Cache Go modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
${{ github.workspace }}/go.sum | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Unit Test JIT | ||
run: | | ||
GOMAXPROCS=4 go test -race -covermode=atomic -coverprofile=coverage.txt ./... | ||
|
||
- name: Unit Test VM | ||
run: | | ||
SONIC_USE_OPTDEC=1 SONIC_USE_FASTMAP=1 SONIC_ENCODER_USE_VM=1 GOMAXPROCS=4 go test -race -covermode=atomic -coverprofile=coverage.txt ./... | ||
|
||
- name: Loader Test | ||
run: | | ||
cd ./loader | ||
go test -v -race ./... | ||
|
||
- name: Data Race | ||
run: | | ||
./scripts/test_race.sh | ||
|
||
- name: PCSP Test | ||
env: | ||
GOVERSION: ${{ matrix.go-version }} | ||
run: python3 ./scripts/test_pcsp.py | ||
|
||
- name: Generic Test JIT | ||
if: ${{ !startsWith(matrix.go-version, '1.17.') }} | ||
run: GOMAXPROCS=4 go test -v -race ./generic_test | ||
|
||
- name: Generic Test VM | ||
if: ${{ !startsWith(matrix.go-version, '1.17.') }} | ||
run: GOMAXPROCS=4 SONIC_USE_OPTDEC=1 SONIC_USE_FASTMAP=1 SONIC_ENCODER_USE_VM=1 go test -v -race ./generic_test | ||
|
||
- name: Codecov | ||
run: bash <(curl -s https://codecov.io/bash) |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium test
Actions Job or Workflow does not set permissions
26f5ddf
to
a99bd75
Compare
AsterDY
approved these changes
Feb 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.