Skip to content

Commit

Permalink
[rllib] only run rllib gpu tests on rllib changes (ray-project#46509)
Browse files Browse the repository at this point in the history
since the tests are currently flaky and slow

Signed-off-by: Lonnie Liu <[email protected]>
  • Loading branch information
aslonnie authored Jul 9, 2024
1 parent 6b98284 commit a09e5ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .buildkite/rllib.rayci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ steps:

- label: ":brain: rllib: gpu tests"
tags:
- rllib
- rllib_gpu
- gpu
- skip-on-premerge
parallelism: 3
instance_type: gpu
commands:
Expand Down Expand Up @@ -198,12 +197,13 @@ steps:

- label: ":brain: rllib: multi-gpu tests"
tags:
- rllib
- rllib_gpu
- gpu
parallelism: 2
instance_type: gpu-large
commands:
- bazel run //ci/ray_ci:test_in_docker -- //rllib/... rllib
- bazel run //ci/ray_ci:test_in_docker -- //rllib/... rllib
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}"
--parallelism-per-worker 2
--gpus 4
--build-name rllibgpubuild
Expand All @@ -213,9 +213,9 @@ steps:
- label: ":brain: rllib: flaky multi-gpu tests"
key: rllib_flaky_gpu_tests
tags:
- rllib
- skip-on-premerge
- rllib_gpu
- gpu
- skip-on-premerge
instance_type: gpu-large
commands:
- bazel run //ci/ray_ci:test_in_docker -- //rllib/... rllib --run-flaky-tests
Expand Down
3 changes: 3 additions & 0 deletions ci/pipeline/determine_tests_to_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def get_commit_range():
# Set to 1 for any changes to Ray Tune or python source files that are
# NOT related to Serve, Dashboard or Train.
RAY_CI_RLLIB_AFFECTED = 0
RAY_CI_RLLIB_GPU_AFFECTED = 0
# Whether all RLlib tests should be run.
# Set to 1 only when a source file in `ray/rllib` has been changed.
RAY_CI_RLLIB_DIRECTLY_AFFECTED = 0
Expand Down Expand Up @@ -162,6 +163,7 @@ def get_commit_range():
or changed_file == ".buildkite/rllib.rayci.yml"
):
RAY_CI_RLLIB_AFFECTED = 1
RAY_CI_RLLIB_GPU_AFFECTED = 1
RAY_CI_RLLIB_DIRECTLY_AFFECTED = 1
RAY_CI_LINUX_WHEELS_AFFECTED = 1
RAY_CI_MACOS_WHEELS_AFFECTED = 1
Expand Down Expand Up @@ -404,6 +406,7 @@ def get_commit_range():
"RAY_CI_TUNE_AFFECTED={}".format(RAY_CI_TUNE_AFFECTED),
"RAY_CI_TRAIN_AFFECTED={}".format(RAY_CI_TRAIN_AFFECTED),
"RAY_CI_RLLIB_AFFECTED={}".format(RAY_CI_RLLIB_AFFECTED),
"RAY_CI_RLLIB_GPU_AFFECTED={}".format(RAY_CI_RLLIB_GPU_AFFECTED),
"RAY_CI_RLLIB_DIRECTLY_AFFECTED={}".format(RAY_CI_RLLIB_DIRECTLY_AFFECTED),
"RAY_CI_RLLIB_CONTRIB_AFFECTED={}".format(RAY_CI_RLLIB_CONTRIB_AFFECTED),
"RAY_CI_SERVE_AFFECTED={}".format(RAY_CI_SERVE_AFFECTED),
Expand Down

0 comments on commit a09e5ea

Please sign in to comment.