Limit `bazel test` parallelism more precisely (#1094)
Since it is only the tests in cartographer/cloud that cannot run concurrently with each other, use `tags = ["exclusive"]` to say that they should not be run at the same time as other tests. This works locally, not just in CI, and should speed up the CI job by 2-3 minutes.master
parent
ab7402ffbb
commit
7f67f074a1
|
@ -3,8 +3,5 @@ platforms:
|
||||||
ubuntu1604:
|
ubuntu1604:
|
||||||
build_targets:
|
build_targets:
|
||||||
- "..."
|
- "..."
|
||||||
# Tests cannot run concurrently as some of them open the same port.
|
|
||||||
test_flags:
|
|
||||||
- "--jobs=1"
|
|
||||||
test_targets:
|
test_targets:
|
||||||
- "..."
|
- "..."
|
||||||
|
|
|
@ -89,6 +89,8 @@ cc_binary(
|
||||||
name = src.replace("/", "_").replace(".cc", ""),
|
name = src.replace("/", "_").replace(".cc", ""),
|
||||||
srcs = [src],
|
srcs = [src],
|
||||||
data = ["//:configuration_files"],
|
data = ["//:configuration_files"],
|
||||||
|
# Tests cannot run concurrently as some of them open the same port.
|
||||||
|
tags = ["exclusive"],
|
||||||
deps = [
|
deps = [
|
||||||
":cartographer_grpc",
|
":cartographer_grpc",
|
||||||
"@com_google_googletest//:gtest_main",
|
"@com_google_googletest//:gtest_main",
|
||||||
|
|
Loading…
Reference in New Issue