Add hash15 label for tests.

PiperOrigin-RevId: 373875071
This commit is contained in:
Andrei Vagin 2021-05-14 15:13:23 -07:00 committed by gVisor bot
parent 894187b2c6
commit f8d79e94e6
1 changed files with 6 additions and 0 deletions

View File

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