Skip to content

Commit 5102523

Browse files
authored
[core] [easy] Mark cgroup tests exclusive (#51654)
cgroup tests access (read and write) system directory, so they shouldn't be executed in parallel. For example, `bazel test //src/ray/common/cgroup/tests:all` should run tests one by one. --------- Signed-off-by: dentiny <dentinyhao@gmail.com>
1 parent 3f44633 commit 5102523

File tree

1 file changed

+8
-2
lines changed
  • src/ray/common/cgroup/test

1 file changed

+8
-2
lines changed

src/ray/common/cgroup/test/BUILD

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ray_cc_test(
77
tags = [
88
# TODO(hjiang, ibrahim, lonnie): Setup CI for cgroup testing environment.
99
"manual",
10+
"exclusive",
1011
"team:core",
1112
],
1213
deps = [
@@ -20,7 +21,10 @@ ray_cc_test(
2021
name = "cgroup_v2_utils_unprivileged_test",
2122
size = "small",
2223
srcs = ["cgroup_v2_utils_unprivileged_test.cc"],
23-
tags = ["team:core"],
24+
tags = [
25+
"exclusive",
26+
"team:core",
27+
],
2428
deps = [
2529
"//src/ray/common/cgroup:cgroup_setup",
2630
"//src/ray/common/test:testing",
@@ -31,7 +35,9 @@ ray_cc_test(
3135
ray_cc_test(
3236
name = "fake_cgroup_setup_test",
3337
srcs = ["fake_cgroup_setup_test.cc"],
34-
tags = ["team:core"],
38+
tags = [
39+
"team:core",
40+
],
3541
deps = [
3642
"//src/ray/common/cgroup:fake_cgroup_setup",
3743
"@com_google_googletest//:gtest_main",

0 commit comments

Comments
 (0)