[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: c23df7b6d7
Pull Request resolved: https://github.com/facebook/react/pull/30349
This commit is contained in:
Lauren Tan
2024-07-16 12:11:41 -04:00
parent acd5355b40
commit b7c628042d

View File

@@ -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