From b7c628042da01ebcd4fdc9d093f1602f4e14fcce Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 16 Jul 2024 12:11:41 -0400 Subject: [PATCH] [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 --- .github/workflows/runtime_build_and_test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index 1f107dc33d..23c66cccf1 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -219,6 +219,10 @@ jobs: # TODO: Test more persistent configurations? ] + shard: + - 1/3 + - 2/3 + - 3/3 continue-on-error: true runs-on: ubuntu-latest steps: @@ -242,7 +246,7 @@ jobs: merge-multiple: true - name: Display structure of build run: ls -R build - - run: yarn test --build ${{ matrix.test_params }} --ci=github + - run: yarn test --build ${{ matrix.test_params }} --shard=${{ matrix.shard }} --ci=github process_artifacts_combined: name: Process artifacts combined