Skip to content

Conversation

@AdamHillier
Copy link
Contributor

What do these changes do?

Our CI runs on machines with two cores. Bazel supports test sharding which when enabled parallelises the tests over multiple processes. All we need to do is add a shard_count attribute to the test definition.

Note that the 'small' kernel tests which run on CI don't test multithreaded convolutions, so there's no problem testing two in parallel.

@AdamHillier AdamHillier requested a review from a team October 21, 2020 19:35
native.sh_test(
name = sh_name,
size = "medium",
size = "large",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made this "large" because otherwise the 'big' kernel tests which don't run on CI timeout.

Copy link
Member

@lgeiger lgeiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@lgeiger lgeiger merged commit a014540 into master Oct 21, 2020
@lgeiger lgeiger deleted the test-sharding branch October 21, 2020 22:34
@lgeiger lgeiger added the internal-improvement Internal Improvements and Maintenance label Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal-improvement Internal Improvements and Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants