From f8d79e94e6fbb44af264394fd96a7c7cca62f98b Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Fri, 14 May 2021 15:13:23 -0700 Subject: Add hash15 label for tests. PiperOrigin-RevId: 373875071 --- test/runner/defs.bzl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/runner/defs.bzl b/test/runner/defs.bzl index 2a0ef2cec..416f51935 100644 --- a/test/runner/defs.bzl +++ b/test/runner/defs.bzl @@ -88,6 +88,12 @@ def _syscall_test( tags = list(tags) tags += [full_platform, "file_" + file_access] + # Hash this target into one of 15 buckets. This can be used to + # randomly split targets between different workflows. + hash15 = hash(native.package_name() + name) % 15 + tags.append("hash15:" + str(hash15)) + tags.append("hash15") + # Disable off-host networking. tags.append("requires-net:loopback") tags.append("requires-net:ipv4") -- cgit v1.2.3