Skip to content

Commit 876d990

Browse files
committed
CI: reduce excessive sharding
1 parent b4477d3 commit 876d990

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/runtime_build_and_test.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,8 @@ jobs:
246246
- "-r=stable --env=development --persistent"
247247
- "-r=experimental --env=development --persistent"
248248
shard:
249-
- 1/5
250-
- 2/5
251-
- 3/5
252-
- 4/5
253-
- 5/5
249+
- 1/2
250+
- 2/2
254251
steps:
255252
- uses: actions/checkout@v4
256253
with:
@@ -278,7 +275,7 @@ jobs:
278275
if: steps.node_modules.outputs.cache-hit != 'true'
279276
- run: yarn --cwd compiler install --frozen-lockfile
280277
if: steps.node_modules.outputs.cache-hit != 'true'
281-
- run: yarn test ${{ matrix.params }} --ci --shard=${{ matrix.shard }}
278+
- run: yarn test ${{ matrix.params }} --ci
282279

283280
# ----- BUILD -----
284281
build_and_lint:
@@ -289,7 +286,7 @@ jobs:
289286
fail-fast: false
290287
matrix:
291288
# yml is dumb. update the --total arg to yarn build if you change the number of workers
292-
worker_id: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]
289+
worker_id: [0,1,2,3,4]
293290
release_channel: [stable, experimental]
294291
steps:
295292
- uses: actions/checkout@v4
@@ -322,7 +319,7 @@ jobs:
322319
if: steps.node_modules.outputs.cache-hit != 'true'
323320
- run: yarn --cwd compiler install --frozen-lockfile
324321
if: steps.node_modules.outputs.cache-hit != 'true'
325-
- run: yarn build --index=${{ matrix.worker_id }} --total=25 --r=${{ matrix.release_channel }} --ci
322+
- run: yarn build --index=${{ matrix.worker_id }} --total=5 --r=${{ matrix.release_channel }} --ci
326323
env:
327324
CI: github
328325
RELEASE_CHANNEL: ${{ matrix.release_channel }}
@@ -374,17 +371,6 @@ jobs:
374371

375372
# TODO: Test more persistent configurations?
376373
]
377-
shard:
378-
- 1/10
379-
- 2/10
380-
- 3/10
381-
- 4/10
382-
- 5/10
383-
- 6/10
384-
- 7/10
385-
- 8/10
386-
- 9/10
387-
- 10/10
388374
runs-on: ubuntu-latest
389375
steps:
390376
- uses: actions/checkout@v4
@@ -421,7 +407,7 @@ jobs:
421407
merge-multiple: true
422408
- name: Display structure of build
423409
run: ls -R build
424-
- run: yarn test --build ${{ matrix.test_params }} --shard=${{ matrix.shard }} --ci
410+
- run: yarn test --build ${{ matrix.test_params }} --ci
425411

426412
process_artifacts_combined:
427413
name: Process artifacts combined

0 commit comments

Comments
 (0)