@samitouri / QOS-React / commits / b7c628042d

[ci] Try sharding test_build

The tests for the build currently take about 3.5 minutes and is at the moment the long pole for the whole workflow. By sharding we can make this workflow faster and save about a minute or so in overall wall time. ghstack-source-id: c23df7b6d7fd2df857abb976546456ca874d9151 Pull Request resolved: https://github.com/facebook/react/pull/30349

Lauren Tan committed Jul 16, 2024 at 12:11 UTC b7c628042da01ebcd4fdc9d093f1602f4e14fcce
1 file changed +5 -1
.github/workflows/runtime_build_and_test.yml
+5 -1
@@ -219,6 +219,10 @@ jobs:
219
220 # TODO: Test more persistent configurations?
221 ]
222 + shard:
223 + - 1/3
224 + - 2/3
225 + - 3/3
226 continue-on-error: true
227 runs-on: ubuntu-latest
228 steps:
@@ -242,7 +246,7 @@ jobs:
246 merge-multiple: true
247 - name: Display structure of build
248 run: ls -R build
245 - - run: yarn test --build ${{ matrix.test_params }} --ci=github
249 + - run: yarn test --build ${{ matrix.test_params }} --shard=${{ matrix.shard }} --ci=github
250
251 process_artifacts_combined:
252 name: Process artifacts combined