Skip to content

Commit

Permalink
[CI] Add conditional build to macOS pipeline (ray-project#24671)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-mo authored May 10, 2022
1 parent 217939d commit 791ce22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .buildkite/pipeline.macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ epilogue_commands: &epilogue_commands |-
steps:
- label: ":mac: :apple: Wheels and Jars"
<<: *common
conditions: ["RAY_CI_MACOS_WHEELS_AFFECTED", "RAY_CI_PYTHON_DEPENDENCIES_AFFECTED"]
commands:
# Cleanup environments
- ./ci/build/upload_build_info.sh
Expand Down Expand Up @@ -62,6 +63,7 @@ steps:

- label: ":mac: :apple: Ray C++, Java and Libraries"
<<: *common
conditions: ["RAY_CI_SERVE_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED", "RAY_CI_CPP_AFFECTED", "RAY_CI_JAVA_AFFECTED", "RAY_CI_PYTHON_AFFECTED", "RAY_CI_DASHBOARD_AFFECTED"]
commands:
- export RAY_INSTALL_JAVA=1
- *prelude_commands
Expand All @@ -73,17 +75,13 @@ steps:
# clang-format is needed by java/test.sh
- pip install clang-format==12.0.1
- ./java/test.sh
- ./ci/ci.sh test_cpp
- *epilogue_commands

- label: ":mac: :apple: Worker"
<<: *common
commands:
- *prelude_commands
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
- ./ci/ci.sh test_cpp

- label: ":mac: :apple: Small & Client"
<<: *common
conditions: ["RAY_CI_CORE_CPP_AFFECTED", "RAY_CI_PYTHON_AFFECTED"]
commands:
- *prelude_commands
- bazel test $(./ci/run/bazel_export_options) --config=ci
Expand All @@ -96,13 +94,15 @@ steps:
- label: ":mac: :apple: Large"
<<: *common
parallelism: 3
conditions: ["RAY_CI_CORE_CPP_AFFECTED", "RAY_CI_PYTHON_AFFECTED"]
commands:
- *prelude_commands
- . ./ci/ci.sh test_large
- *epilogue_commands

- label: ":mac: :apple: Medium A-J"
<<: *common
conditions: ["RAY_CI_CORE_CPP_AFFECTED", "RAY_CI_PYTHON_AFFECTED"]
commands:
- *prelude_commands
- bazel test --config=ci $(./ci/run/bazel_export_options) --test_env=CI
Expand All @@ -112,6 +112,7 @@ steps:

- label: ":mac: :apple: Medium K-Z"
<<: *common
conditions: ["RAY_CI_CORE_CPP_AFFECTED", "RAY_CI_PYTHON_AFFECTED"]
commands:
- *prelude_commands
- bazel test --config=ci $(./ci/run/bazel_export_options) --test_env=CI
Expand Down
3 changes: 2 additions & 1 deletion ci/pipeline/determine_tests_to_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import json
import os
from pprint import pformat
import py_dep_analysis as pda
import re
import subprocess
import sys
Expand Down Expand Up @@ -102,6 +101,8 @@ def get_commit_range():

# Dry run py_dep_analysis.py to see which tests we would have run.
try:
import py_dep_analysis as pda

graph = pda.build_dep_graph()
rllib_tests = pda.list_rllib_tests()
print("Total # of RLlib tests: ", len(rllib_tests), file=sys.stderr)
Expand Down

0 comments on commit 791ce22

Please sign in to comment.