Skip to content

Commit 80a8bb1

Browse files
committed
ci(ut): add ut for test coverage
Signed-off-by: imeoer <yansong.ys@antgroup.com>
1 parent 821a512 commit 80a8bb1

127 files changed

Lines changed: 10237 additions & 415 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/benchmark.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
contrib-build:
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-latest-16-cores
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v6
@@ -33,7 +33,7 @@ jobs:
3333
path: contrib/nydusify/cmd/nydusify
3434

3535
nydus-build:
36-
runs-on: ubuntu-latest
36+
runs-on: ubuntu-latest-16-cores
3737
steps:
3838
- name: Checkout
3939
uses: actions/checkout@v6
@@ -55,7 +55,7 @@ jobs:
5555
target/release/nydusd
5656
5757
benchmark-description:
58-
runs-on: ubuntu-latest
58+
runs-on: ubuntu-latest-16-cores
5959
steps:
6060
- name: Description
6161
run: |
@@ -65,7 +65,7 @@ jobs:
6565
echo "| ubuntu-22.04 | 2-core CPU (x86_64) | 7GB |" >> $GITHUB_STEP_SUMMARY
6666
6767
benchmark-oci:
68-
runs-on: ubuntu-latest
68+
runs-on: ubuntu-latest-16-cores
6969
needs: [contrib-build, nydus-build]
7070
strategy:
7171
matrix:
@@ -112,7 +112,7 @@ jobs:
112112
path: smoke/${{ matrix.image }}-oci.json
113113

114114
benchmark-fsversion-v5:
115-
runs-on: ubuntu-latest
115+
runs-on: ubuntu-latest-16-cores
116116
needs: [contrib-build, nydus-build]
117117
strategy:
118118
matrix:
@@ -158,7 +158,7 @@ jobs:
158158
path: smoke/${{ matrix.image }}-fsversion-v5.json
159159

160160
benchmark-fsversion-v6:
161-
runs-on: ubuntu-latest
161+
runs-on: ubuntu-latest-16-cores
162162
needs: [contrib-build, nydus-build]
163163
strategy:
164164
matrix:
@@ -204,7 +204,7 @@ jobs:
204204
path: smoke/${{ matrix.image }}-fsversion-v6.json
205205

206206
benchmark-zran:
207-
runs-on: ubuntu-latest
207+
runs-on: ubuntu-latest-16-cores
208208
needs: [contrib-build, nydus-build]
209209
strategy:
210210
matrix:
@@ -250,7 +250,7 @@ jobs:
250250
path: smoke/${{ matrix.image }}-zran.json
251251

252252
benchmark-result:
253-
runs-on: ubuntu-latest
253+
runs-on: ubuntu-latest-16-cores
254254
needs: [benchmark-oci, benchmark-fsversion-v5, benchmark-fsversion-v6, benchmark-zran]
255255
strategy:
256256
matrix:

.github/workflows/convert.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515

1616
jobs:
1717
nydusify-build:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-latest-16-cores
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v6
@@ -35,7 +35,7 @@ jobs:
3535
path: contrib/nydusify/cmd/nydusify
3636

3737
nydus-build:
38-
runs-on: ubuntu-latest
38+
runs-on: ubuntu-latest-16-cores
3939
steps:
4040
- name: Checkout
4141
uses: actions/checkout@v6
@@ -57,7 +57,7 @@ jobs:
5757
target/release/nydusd
5858
5959
fsck-erofs-build:
60-
runs-on: ubuntu-latest
60+
runs-on: ubuntu-latest-16-cores
6161
steps:
6262
- name: Checkout repository
6363
uses: actions/checkout@v6
@@ -75,7 +75,7 @@ jobs:
7575
/usr/local/bin/fsck.erofs
7676
7777
convert-zran:
78-
runs-on: ubuntu-latest
78+
runs-on: ubuntu-latest-16-cores
7979
needs: [nydusify-build, nydus-build, fsck-erofs-build]
8080
steps:
8181
- name: Checkout repository
@@ -154,7 +154,7 @@ jobs:
154154
path: convert-zran
155155

156156
convert-native-v5:
157-
runs-on: ubuntu-latest
157+
runs-on: ubuntu-latest-16-cores
158158
needs: [nydusify-build, nydus-build]
159159
steps:
160160
- name: Checkout repository
@@ -208,7 +208,7 @@ jobs:
208208
path: convert-native-v5
209209

210210
convert-native-v6:
211-
runs-on: ubuntu-latest
211+
runs-on: ubuntu-latest-16-cores
212212
needs: [nydusify-build, nydus-build, fsck-erofs-build]
213213
steps:
214214
- name: Checkout repository
@@ -271,7 +271,7 @@ jobs:
271271
path: convert-native-v6
272272

273273
convert-native-v6-batch:
274-
runs-on: ubuntu-latest
274+
runs-on: ubuntu-latest-16-cores
275275
needs: [nydusify-build, nydus-build, fsck-erofs-build]
276276
steps:
277277
- name: Checkout repository
@@ -336,7 +336,7 @@ jobs:
336336
path: convert-native-v6-batch
337337

338338
convert-metric:
339-
runs-on: ubuntu-latest
339+
runs-on: ubuntu-latest-16-cores
340340
needs: [convert-zran, convert-native-v5, convert-native-v6, convert-native-v6-batch]
341341
steps:
342342
- name: Checkout repository

.github/workflows/miri.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717

1818
jobs:
1919
nydus-unit-test-with-miri:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-latest-16-cores
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v6
@@ -42,4 +42,4 @@ jobs:
4242
CARGO_BIN=$(which cargo)
4343
RUSTUP_BIN=$(which rustup)
4444
sudo -E RUSTUP=${RUSTUP_BIN} make miri-ut-nextest 2>&1 | tee miri-ut.log
45-
grep -C 2 'Undefined Behavior' miri-ut.log
45+
grep -C 2 'Undefined Behavior' miri-ut.log

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
nydus-linux:
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-latest-16-cores
1818
strategy:
1919
matrix:
2020
arch: [amd64, arm64, ppc64le, riscv64]
@@ -117,7 +117,7 @@ jobs:
117117
configs
118118
119119
contrib-linux:
120-
runs-on: ubuntu-latest
120+
runs-on: ubuntu-latest-16-cores
121121
strategy:
122122
matrix:
123123
arch: [amd64, arm64, ppc64le, riscv64]
@@ -145,7 +145,7 @@ jobs:
145145
containerd-nydus-grpc
146146
147147
prepare-tarball-linux:
148-
runs-on: ubuntu-latest
148+
runs-on: ubuntu-latest-16-cores
149149
strategy:
150150
matrix:
151151
arch: [amd64, arm64, ppc64le, riscv64]
@@ -179,7 +179,7 @@ jobs:
179179
180180
# use a seperate job for darwin because github action if: condition cannot handle && properly.
181181
prepare-tarball-darwin:
182-
runs-on: ubuntu-latest
182+
runs-on: ubuntu-latest-16-cores
183183
strategy:
184184
matrix:
185185
arch: [amd64, arm64]
@@ -211,7 +211,7 @@ jobs:
211211
${{ env.tarball_shasum }}
212212
213213
create-release:
214-
runs-on: ubuntu-latest
214+
runs-on: ubuntu-latest-16-cores
215215
needs: [prepare-tarball-linux, prepare-tarball-darwin]
216216
steps:
217217
- name: download artifacts
@@ -249,7 +249,7 @@ jobs:
249249
needs: [nydus-linux, contrib-linux]
250250
permissions:
251251
contents: write
252-
runs-on: ubuntu-latest
252+
runs-on: ubuntu-latest-16-cores
253253
timeout-minutes: 60
254254
outputs:
255255
hashes: ${{ steps.hash.outputs.hashes }}
@@ -321,4 +321,4 @@ jobs:
321321
base64-subjects: "${{ needs.goreleaser.outputs.hashes }}"
322322
upload-assets: true # upload to a new release
323323
upload-tag-name: "${{ needs.release.outputs.tag_name }}"
324-
draft-release: true
324+
draft-release: true

0 commit comments

Comments
 (0)