Use Bazel CI sharding on tasks that benefit from it.
Use Bazel CI sharding on tasks that benefit from it.

This cuts down our presubmit times to ~29min. Further improvements will follow from migrating all Linux tasks to use RBE and tweaking the shard counts and sharding algorithm.

Test run (with a bogus change to a Java file in order to not get cache hits for integration tests): https://buildkite.com/bazel/google-bazel-presubmit/builds/24778

This was a collaborative effort by fwe@, who implemented the sharding feature for our Bazel CI and did initial tests: https://github.com/bazelbuild/continuous-integration/pull/618 and myself, fixing the remaining blockers (https://github.com/bazelbuild/continuous-integration/commit/2a160432657bb1335f8fb8272832a208c2224d39).

PiperOrigin-RevId: 270622850

perezd/bazel,davidzchen/bazel,safarmer/bazel,aehlig/bazel,twitter-forks/bazel,katre/bazel,bazelbuild/bazel,twitter-forks/bazel,twitter-forks/bazel,twitter-forks/bazel,meteorcloudy/bazel,katre/bazel,akira-baruah/bazel,katre/bazel,werkt/bazel,perezd/bazel,akira-baruah/bazel,ulfjack/bazel,werkt/bazel,dslomov/bazel,ButterflyNetwork/bazel,akira-baruah/bazel,ulfjack/bazel,ButterflyNetwork/bazel,dslomov/bazel,akira-baruah/bazel,safarmer/bazel,meteorcloudy/bazel,aehlig/bazel,cushon/bazel,ulfjack/bazel,dslomov/bazel-windows,dslomov/bazel,davidzchen/bazel,cushon/bazel,akira-baruah/bazel,safarmer/bazel,bazelbuild/bazel,perezd/bazel,aehlig/bazel,werkt/bazel,perezd/bazel,ButterflyNetwork/bazel,katre/bazel,meteorcloudy/bazel,cushon/bazel,safarmer/bazel,safarmer/bazel,twitter-forks/bazel,dslomov/bazel-windows,dslomov/bazel,dslomov/bazel-windows,ButterflyNetwork/bazel,cushon/bazel,dslomov/bazel,meteorcloudy/bazel,davidzchen/bazel,aehlig/bazel,cushon/bazel,cushon/bazel,dslomov/bazel-windows,werkt/bazel,aehlig/bazel,ButterflyNetwork/bazel,aehlig/bazel,perezd/bazel,ulfjack/bazel,bazelbuild/bazel,dslomov/bazel-windows,dslomov/bazel,katre/bazel,twitter-forks/bazel,katre/bazel,bazelbuild/bazel,akira-baruah/bazel,twitter-forks/bazel,werkt/bazel,ulfjack/bazel,perezd/bazel,meteorcloudy/bazel,werkt/bazel,davidzchen/bazel,bazelbuild/bazel,ulfjack/bazel,dslomov/bazel,davidzchen/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,ulfjack/bazel,meteorcloudy/bazel,davidzchen/bazel,perezd/bazel,safarmer/bazel,dslomov/bazel-windows,davidzchen/bazel,aehlig/bazel