pipeline.ml.yml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. - label: ":airplane: ML tests (ray/air)"
  2. conditions: ["RAY_CI_ML_AFFECTED"]
  3. commands:
  4. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  5. - DATA_PROCESSING_TESTING=1 INSTALL_HOROVOD=1 ./ci/env/install-dependencies.sh
  6. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-gpu,-needs_credentials python/ray/air/...
  7. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=ray_air,-gpu_only,-gpu,-needs_credentials python/ray/train/...
  8. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=ray_air python/ray/data/...
  9. - label: ":brain: RLlib: Learning discr. actions TF2-static-graph"
  10. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  11. commands:
  12. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  13. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  14. - bazel test --config=ci $(./ci/run/bazel_export_options)
  15. --build_tests_only
  16. --test_tag_filters=learning_tests_discrete,-fake_gpus,-torch_only,-tf2_only,-no_tf_static_graph
  17. --test_arg=--framework=tf
  18. rllib/...
  19. - label: ":brain: RLlib: Learning cont. actions TF2-static-graph"
  20. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  21. commands:
  22. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  23. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  24. - bazel test --config=ci $(./ci/run/bazel_export_options)
  25. --build_tests_only
  26. --test_tag_filters=learning_tests_continuous,-fake_gpus,-torch_only,-tf2_only,-no_tf_static_graph
  27. --test_arg=--framework=tf
  28. rllib/...
  29. - label: ":brain: RLlib: Learning discr. actions TF2-eager-tracing"
  30. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  31. commands:
  32. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  33. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  34. - bazel test --config=ci $(./ci/run/bazel_export_options)
  35. --build_tests_only
  36. --test_tag_filters=learning_tests_discrete,-fake_gpus,-torch_only,-multi_gpu,-no_tf_eager_tracing
  37. --test_arg=--framework=tf2
  38. rllib/...
  39. - label: ":brain: RLlib: Learning cont. actions TF2-eager-tracing"
  40. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  41. commands:
  42. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  43. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  44. - bazel test --config=ci $(./ci/run/bazel_export_options)
  45. --build_tests_only
  46. --test_tag_filters=learning_tests_continuous,-fake_gpus,-torch_only,-multi_gpu,-gpu
  47. --test_arg=--framework=tf2
  48. rllib/...
  49. - label: ":brain: RLlib: Learning discr. actions PyTorch"
  50. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  51. commands:
  52. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  53. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  54. - bazel test --config=ci $(./ci/run/bazel_export_options)
  55. --build_tests_only
  56. --test_tag_filters=learning_tests_discrete,-fake_gpus,-tf_only,-tf2_only,-multi_gpu
  57. --test_arg=--framework=torch
  58. rllib/...
  59. - label: ":brain: RLlib: Learning cont. actions PyTorch"
  60. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  61. commands:
  62. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  63. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  64. - bazel test --config=ci $(./ci/run/bazel_export_options)
  65. --build_tests_only
  66. --test_tag_filters=learning_tests_continuous,-fake_gpus,-tf_only,-tf2_only,-multi_gpu
  67. --test_arg=--framework=torch
  68. rllib/...
  69. - label: ":brain: RLlib: Learning tests w/ 2 fake GPUs TF2-static-graph"
  70. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  71. commands:
  72. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  73. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  74. - bazel test --config=ci $(./ci/run/bazel_export_options)
  75. --build_tests_only
  76. --test_tag_filters=fake_gpus,-torch_only,-tf2_only,-no_tf_static_graph,-multi_gpu
  77. --test_arg=--framework=tf
  78. rllib/...
  79. # TODO: (sven) tf2 (eager) multi-GPU
  80. - label: ":brain: RLlib: Learning tests w/ 2 fake GPUs PyTorch"
  81. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  82. commands:
  83. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  84. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  85. - bazel test --config=ci $(./ci/run/bazel_export_options)
  86. --build_tests_only
  87. --test_tag_filters=fake_gpus,-tf_only,-tf2_only,-multi_gpu
  88. --test_arg=--framework=torch
  89. rllib/...
  90. - label: ":brain: RLlib: Memory leak tests TF2-eager-tracing"
  91. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  92. commands:
  93. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  94. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  95. - bazel test --config=ci $(./ci/run/bazel_export_options)
  96. --build_tests_only
  97. --test_tag_filters=memory_leak_tests,-flaky
  98. --test_arg=--framework=tf2
  99. rllib/...
  100. - label: ":brain: RLlib: Memory leak tests PyTorch"
  101. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  102. commands:
  103. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  104. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  105. - bazel test --config=ci $(./ci/run/bazel_export_options)
  106. --build_tests_only
  107. --test_tag_filters=memory_leak_tests,-flaky
  108. --test_arg=--framework=torch
  109. rllib/...
  110. - label: ":brain: RLlib: Quick Agent train.py runs (TODO: obsolete)"
  111. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  112. commands:
  113. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  114. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  115. - bazel test --config=ci $(./ci/run/bazel_export_options)
  116. --build_tests_only
  117. --test_tag_filters=quick_train,-multi_gpu
  118. --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  119. rllib/...
  120. - label: ":brain: RLlib: Algorithm Tests (generic)"
  121. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  122. commands:
  123. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  124. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  125. # Test all tests in the `algorithms` dir:
  126. - bazel test --config=ci $(./ci/run/bazel_export_options)
  127. --build_tests_only
  128. --test_tag_filters=algorithms_dir_generic,-multi_gpu
  129. --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  130. rllib/...
  131. - label: ":brain: RLlib: Algorithm Tests (specific algos)"
  132. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  133. commands:
  134. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  135. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  136. # Test all tests in the `algorithms` dir:
  137. - bazel test --config=ci $(./ci/run/bazel_export_options)
  138. --build_tests_only
  139. --test_tag_filters=algorithms_dir,-algorithms_dir_generic,-multi_gpu
  140. --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  141. rllib/...
  142. - label: ":brain: RLlib: Everything else (env-, evaluation-, ... dirs)"
  143. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  144. commands:
  145. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  146. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  147. # Test everything that does not have any of the "main" labels:
  148. # "learning_tests|quick_train|examples|tests_dir".
  149. - bazel test --config=ci $(./ci/run/bazel_export_options)
  150. --build_tests_only
  151. --test_tag_filters=-learning_tests,-quick_train,-memory_leak_tests,-examples,-tests_dir,-algorithms_dir,-documentation,-multi_gpu
  152. --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  153. rllib/...
  154. - label: ":brain: RLlib: Examples {A..B}"
  155. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  156. commands:
  157. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  158. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  159. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  160. --test_tag_filters=examples_A,examples_B,-multi_gpu --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1 rllib/...
  161. - label: ":brain: RLlib: Examples {Ca..Ct}"
  162. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  163. commands:
  164. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  165. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  166. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  167. --test_tag_filters=examples_C_AtoT,-multi_gpu --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1 rllib/...
  168. - label: ":brain: RLlib: Examples {Cu..Cz}"
  169. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  170. commands:
  171. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  172. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  173. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  174. --test_tag_filters=examples_C_UtoZ,-multi_gpu --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1 rllib/...
  175. - label: ":brain: RLlib: Examples {D..P}"
  176. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  177. commands:
  178. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  179. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  180. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  181. --test_tag_filters=examples_D,examples_E,examples_F,examples_G,examples_H,examples_I,examples_J,examples_K,examples_L,examples_M,examples_N,examples_O,examples_P,-multi_gpu --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  182. rllib/...
  183. - label: ":brain: RLlib: Examples {Q..Z}"
  184. conditions: ["RAY_CI_RLLIB_AFFECTED"]
  185. commands:
  186. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  187. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  188. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  189. --test_tag_filters=examples_Q,examples_R,examples_S,examples_T,examples_U,examples_V,examples_W,examples_X,examples_Y,examples_Z,-multi_gpu --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  190. rllib/...
  191. - label: ":brain: RLlib: tests/ dir (A..L)"
  192. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  193. commands:
  194. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  195. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  196. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  197. --test_tag_filters=tests_dir_A,tests_dir_B,tests_dir_C,tests_dir_D,tests_dir_E,tests_dir_F,tests_dir_G,tests_dir_H,tests_dir_I,tests_dir_J,tests_dir_K,tests_dir_L --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  198. rllib/...
  199. - label: ":brain: RLlib: tests/ dir (M..Z (no R))"
  200. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  201. commands:
  202. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  203. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  204. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  205. --test_tag_filters=tests_dir_M,tests_dir_N,tests_dir_O,tests_dir_P,tests_dir_Q,tests_dir_S,tests_dir_T,tests_dir_U,tests_dir_V,tests_dir_W,tests_dir_X,tests_dir_Y,tests_dir_Z,-multi_gpu --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  206. rllib/...
  207. - label: ":brain: RLlib: tests/ dir (R)"
  208. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  209. commands:
  210. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  211. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  212. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  213. --test_tag_filters=tests_dir_R,-multi_gpu --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  214. rllib/...
  215. - label: ":brain: RLlib: Documentation code/examples"
  216. conditions: ["RAY_CI_RLLIB_DIRECTLY_AFFECTED"]
  217. commands:
  218. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  219. - RLLIB_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  220. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  221. --test_tag_filters=documentation --test_env=RAY_USE_MULTIPROCESSING_CPU_COUNT=1
  222. rllib/...
  223. - label: ":octopus: Tune tests {A-R; no RLlib}"
  224. conditions: ["RAY_CI_TUNE_AFFECTED"]
  225. commands:
  226. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  227. - TUNE_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  228. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  229. --test_tag_filters=tests_dir_A,tests_dir_B,tests_dir_C,tests_dir_D,tests_dir_E,tests_dir_F,tests_dir_G,tests_dir_H,tests_dir_I,tests_dir_J,tests_dir_K,tests_dir_L,tests_dir_M,tests_dir_N,tests_dir_O,tests_dir_P,tests_dir_Q,tests_dir_R,-example,-py37,-soft_imports,-gpu_only,-rllib
  230. python/ray/tune/...
  231. - label: ":octopus: Tune tests {S-Z; no RLlib}"
  232. conditions: ["RAY_CI_TUNE_AFFECTED"]
  233. commands:
  234. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  235. - TUNE_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  236. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  237. --test_tag_filters=tests_dir_S,tests_dir_T,tests_dir_U,tests_dir_V,tests_dir_W,tests_dir_X,tests_dir_Y,tests_dir_Z,-example,-py37,-soft_imports,-gpu_only,-rllib
  238. python/ray/tune/...
  239. - label: ":octopus: Tune multinode tests"
  240. conditions: [ "RAY_CI_TUNE_AFFECTED" ]
  241. commands:
  242. - LINUX_WHEELS=1 ./ci/ci.sh build
  243. - mkdir -p ~/.docker/cli-plugins/ && curl -SL https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose && chmod +x ~/.docker/cli-plugins/docker-compose
  244. - pip install -U docker aws_requests_auth boto3
  245. - python ./ci/build/build-docker-images.py --py-versions py37 --device-types cpu --build-type LOCAL --build-base
  246. - python ./ci/build/build-multinode-image.py rayproject/ray:nightly-py37-cpu rayproject/ray:multinode-py37
  247. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only
  248. --test_tag_filters=multinode,-example,-flaky,-py37,-soft_imports,-gpu_only,-rllib
  249. python/ray/tune/...
  250. --test_env=RAY_HAS_SSH="1"
  251. --test_env=RAY_DOCKER_IMAGE="rayproject/ray:multinode-py37"
  252. --test_env=RAY_TEMPDIR="/ray-mount"
  253. --test_env=RAY_HOSTDIR="/ray"
  254. --test_env=RAY_TESTHOST="dind-daemon"
  255. --test_env=DOCKER_HOST=tcp://docker:2376
  256. --test_env=DOCKER_TLS_VERIFY=1
  257. --test_env=DOCKER_CERT_PATH=/certs/client
  258. --test_env=DOCKER_TLS_CERTDIR=/certs
  259. - label: ":octopus: Tune examples {w/o tf/pytorch; no RLlib}"
  260. conditions: ["RAY_CI_TUNE_AFFECTED"]
  261. commands:
  262. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  263. - TUNE_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  264. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=example,-tf,-pytorch,-py37,-soft_imports,-gpu_only,-rllib python/ray/tune/...
  265. - label: ":octopus: Tune examples {w/ tf/pytorch; no RLlib}"
  266. conditions: ["RAY_CI_TUNE_AFFECTED"]
  267. commands:
  268. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  269. - TUNE_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  270. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=tf,-pytorch,-py37,-soft_imports,-gpu_only,-rllib python/ray/tune/...
  271. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-tf,pytorch,-py37,-soft_imports,-gpu_only,-rllib python/ray/tune/...
  272. - label: ":octopus: :brain: Tune tests and examples {using RLlib}"
  273. conditions: ["RAY_CI_TUNE_AFFECTED", "RAY_CI_RLLIB_AFFECTED"]
  274. commands:
  275. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  276. - TUNE_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  277. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-gpu_only,rllib python/ray/tune/...
  278. - label: ":steam_locomotive: Train tests and examples"
  279. conditions: ["RAY_CI_TRAIN_AFFECTED"]
  280. commands:
  281. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  282. - TRAIN_TESTING=1 INSTALL_HOROVOD=1 ./ci/env/install-dependencies.sh
  283. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-gpu_only,-minimal,-tune,-ray_air python/ray/train/...
  284. - label: ":steam_locomotive: :octopus: Train + Tune tests and examples"
  285. conditions: ["RAY_CI_TRAIN_AFFECTED"]
  286. commands:
  287. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  288. - TRAIN_TESTING=1 TUNE_TESTING=1 ./ci/env/install-dependencies.sh
  289. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=tune,-gpu_only,-ray_air python/ray/train/...
  290. - label: ":octopus: Tune/Modin/Dask tests and examples. Python 3.7"
  291. conditions: ["RAY_CI_TUNE_AFFECTED"]
  292. commands:
  293. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  294. - TUNE_TESTING=1 PYTHON=3.7 INSTALL_HOROVOD=1 ./ci/env/install-dependencies.sh
  295. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=py37,-client python/ray/tune/...
  296. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-client python/ray/util/xgboost/...
  297. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only python/ray/util/horovod/...
  298. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only python/ray/util/ray_lightning/...
  299. # TODO(amogkam): Re-enable Ludwig tests after Ludwig supports Ray 2.0
  300. #- label: ":octopus: Ludwig tests and examples. Python 3.7"
  301. # conditions: ["RAY_CI_TUNE_AFFECTED"]
  302. # commands:
  303. # - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  304. # - PYTHON=3.7 INSTALL_LUDWIG=1 INSTALL_HOROVOD=1 ./ci/env/install-dependencies.sh
  305. # - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only python/ray/tests/ludwig/...
  306. - label: ":tropical_fish: ML Libraries w/ Ray Client Examples (Python 3.7)."
  307. conditions: ["RAY_CI_TUNE_AFFECTED"]
  308. commands:
  309. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  310. - TUNE_TESTING=1 PYTHON=3.7 INSTALL_HOROVOD=1 ./ci/env/install-dependencies.sh
  311. - rm -rf ./python/ray/thirdparty_files; rm -rf ./python/ray/pickle5_files; ./ci/ci.sh build
  312. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=client --test_env=RAY_CLIENT_MODE=1 python/ray/util/dask/...
  313. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=client python/ray/tune/...
  314. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=client python/ray/util/xgboost/...
  315. - label: ":potable_water: Modin/Dask tests and examples. Python 3.7"
  316. conditions: ["RAY_CI_PYTHON_AFFECTED"]
  317. commands:
  318. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  319. - DATA_PROCESSING_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  320. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only python/ray/tests/modin/...
  321. # Dask tests and examples.
  322. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-client python/ray/util/dask/...
  323. - label: ":potable_water: Dataset tests (Python 3.7)"
  324. conditions: ["RAY_CI_PYTHON_AFFECTED"]
  325. commands:
  326. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  327. - DATA_PROCESSING_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  328. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-ray_air python/ray/data/...
  329. - label: ":potable_water: Workflow tests (Python 3.7)"
  330. conditions: ["RAY_CI_PYTHON_AFFECTED"]
  331. commands:
  332. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  333. - DATA_PROCESSING_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  334. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only python/ray/workflow/...
  335. - label: ":slot_machine: ML Utils tests"
  336. conditions: ["RAY_CI_ML_UTILS_AFFECTED"]
  337. commands:
  338. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  339. - TUNE_TESTING=1 ./ci/env/install-dependencies.sh
  340. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only python/ray/util/ml_utils/...
  341. - label: ":book: Doc tests and examples (excluding Ray AIR examples)"
  342. conditions:
  343. ["RAY_CI_PYTHON_AFFECTED", "RAY_CI_TUNE_AFFECTED", "RAY_CI_DOC_AFFECTED", "RAY_CI_SERVE_AFFECTED"]
  344. commands:
  345. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  346. - DOC_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  347. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-ray_air,-gpu,-py37,-post_wheel_build doc/...
  348. - label: ":book: :airplane: Ray AIR examples"
  349. conditions:
  350. ["RAY_CI_PYTHON_AFFECTED", "RAY_CI_TUNE_AFFECTED", "RAY_CI_DOC_AFFECTED", "RAY_CI_SERVE_AFFECTED"]
  351. commands:
  352. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  353. - DOC_TESTING=1 PYTHON=3.7 ./ci/env/install-dependencies.sh
  354. - python ./ci/env/setup_credentials.py wandb comet_ml
  355. - bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=ray_air,-gpu,-py37,-post_wheel_build doc/...
  356. - python ./ci/env/cleanup_test_state.py wandb comet_ml