Skip to content

Commit b092969

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

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/runtime_build_and_test.yml

Lines changed: 7 additions & 17 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:
@@ -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,5,6,7,8,9]
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=10 --r=${{ matrix.release_channel }} --ci
326323
env:
327324
CI: github
328325
RELEASE_CHANNEL: ${{ matrix.release_channel }}
@@ -375,16 +372,9 @@ jobs:
375372
# TODO: Test more persistent configurations?
376373
]
377374
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
375+
- 1/3
376+
- 2/3
377+
- 3/3
388378
runs-on: ubuntu-latest
389379
steps:
390380
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)