Skip to content

Commit

Permalink
[ci] Try sharding test_build
Browse files Browse the repository at this point in the history
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: #30349
  • Loading branch information
poteto committed Jul 16, 2024
1 parent acd5355 commit b7c6280
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/runtime_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit b7c6280

Please sign in to comment.