Skip to content

Commit 5fce108

Browse files
authored
[core] Enable cgroup unit tests in CI (#51864)
Signed-off-by: dentiny <[email protected]>
1 parent 683b801 commit 5fce108

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.buildkite/core.rayci.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,34 +292,41 @@ steps:
292292
- "3.13"
293293

294294
# cpp tests
295+
- label: ":ray: core: cgroup tests"
296+
tags: core_cpp
297+
instance_type: medium
298+
commands:
299+
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --only-tags=cgroup --build-type cgroup
300+
--privileged --cache-test-results
301+
295302
- label: ":ray: core: cpp tests"
296303
tags: core_cpp
297304
instance_type: medium
298305
commands:
299-
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --build-type clang
306+
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --except-tags=cgroup --build-type clang
300307
--cache-test-results --parallelism-per-worker 2
301308

302309
- label: ":ray: core: cpp asan tests"
303310
tags: core_cpp
304311
instance_type: medium
305312
commands:
306-
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --build-type asan-clang
307-
--cache-test-results --parallelism-per-worker 2
313+
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --except-tags=cgroup
314+
--build-type asan-clang --cache-test-results --parallelism-per-worker 2
308315

309316
- label: ":ray: core: cpp ubsan tests"
310317
tags: core_cpp
311318
instance_type: large
312319
commands:
313-
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --build-type ubsan
314-
--except-tags no_ubsan
320+
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core
321+
--build-type ubsan --except-tags no_ubsan,cgroup
315322
--cache-test-results --parallelism-per-worker 2
316323

317324
- label: ":ray: core: cpp tsan tests"
318325
tags: core_cpp
319326
instance_type: medium
320327
commands:
321-
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --build-type tsan-clang
322-
--except-tags no_tsan
328+
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core
329+
--build-type tsan-clang --except-tags no_tsan,cgroup
323330
--cache-test-results --parallelism-per-worker 2
324331

325332
- label: ":ray: core: flaky cpp tests"

src/ray/common/cgroup/test/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ ray_cc_test(
55
size = "small",
66
srcs = ["cgroup_v2_utils_privileged_test.cc"],
77
tags = [
8-
# TODO(hjiang, ibrahim, lonnie): Setup CI for cgroup testing environment.
9-
"manual",
8+
"cgroup",
109
"exclusive",
1110
"team:core",
1211
],

0 commit comments

Comments
 (0)