Skip to content

Commit 4883912

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

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

.github/workflows/runtime_build_and_test.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219

220220
# ----- TESTS -----
221221
test:
222-
name: yarn test ${{ matrix.params }} (Shard ${{ matrix.shard }})
222+
name: yarn test ${{ matrix.params }}
223223
needs: [runtime_compiler_node_modules_cache]
224224
runs-on: ubuntu-latest
225225
strategy:
@@ -245,12 +245,6 @@ jobs:
245245
# TODO: Test more persistent configurations?
246246
- "-r=stable --env=development --persistent"
247247
- "-r=experimental --env=development --persistent"
248-
shard:
249-
- 1/5
250-
- 2/5
251-
- 3/5
252-
- 4/5
253-
- 5/5
254248
steps:
255249
- uses: actions/checkout@v4
256250
with:
@@ -278,7 +272,7 @@ jobs:
278272
if: steps.node_modules.outputs.cache-hit != 'true'
279273
- run: yarn --cwd compiler install --frozen-lockfile
280274
if: steps.node_modules.outputs.cache-hit != 'true'
281-
- run: yarn test ${{ matrix.params }} --ci --shard=${{ matrix.shard }}
275+
- run: yarn test ${{ matrix.params }} --ci
282276

283277
# ----- BUILD -----
284278
build_and_lint:
@@ -289,7 +283,7 @@ jobs:
289283
fail-fast: false
290284
matrix:
291285
# 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]
286+
worker_id: [0,1,2,3,4]
293287
release_channel: [stable, experimental]
294288
steps:
295289
- uses: actions/checkout@v4
@@ -322,7 +316,7 @@ jobs:
322316
if: steps.node_modules.outputs.cache-hit != 'true'
323317
- run: yarn --cwd compiler install --frozen-lockfile
324318
if: steps.node_modules.outputs.cache-hit != 'true'
325-
- run: yarn build --index=${{ matrix.worker_id }} --total=25 --r=${{ matrix.release_channel }} --ci
319+
- run: yarn build --index=${{ matrix.worker_id }} --total=5 --r=${{ matrix.release_channel }} --ci
326320
env:
327321
CI: github
328322
RELEASE_CHANNEL: ${{ matrix.release_channel }}
@@ -374,17 +368,6 @@ jobs:
374368

375369
# TODO: Test more persistent configurations?
376370
]
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
388371
runs-on: ubuntu-latest
389372
steps:
390373
- uses: actions/checkout@v4
@@ -421,7 +404,7 @@ jobs:
421404
merge-multiple: true
422405
- name: Display structure of build
423406
run: ls -R build
424-
- run: yarn test --build ${{ matrix.test_params }} --shard=${{ matrix.shard }} --ci
407+
- run: yarn test --build ${{ matrix.test_params }} --ci
425408

426409
process_artifacts_combined:
427410
name: Process artifacts combined

0 commit comments

Comments
 (0)