diff options
Diffstat (limited to 'test/runner')
-rw-r--r-- | test/runner/BUILD | 2 | ||||
-rw-r--r-- | test/runner/defs.bzl | 6 | ||||
-rw-r--r-- | test/runner/main.go (renamed from test/runner/runner.go) | 0 |
3 files changed, 7 insertions, 1 deletions
diff --git a/test/runner/BUILD b/test/runner/BUILD index 582d2946d..f9f788726 100644 --- a/test/runner/BUILD +++ b/test/runner/BUILD @@ -5,7 +5,7 @@ package(licenses = ["notice"]) go_binary( name = "runner", testonly = 1, - srcs = ["runner.go"], + srcs = ["main.go"], data = [ "//runsc", ], 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") diff --git a/test/runner/runner.go b/test/runner/main.go index 7e8e88ba2..7e8e88ba2 100644 --- a/test/runner/runner.go +++ b/test/runner/main.go |