mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add hash15 label for tests.
PiperOrigin-RevId: 373875071
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user