serve.rayci.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. group: serve tests
  2. depends_on:
  3. - forge
  4. - oss-ci-base_build
  5. steps:
  6. # builds
  7. - name: servebuild
  8. wanda: ci/docker/serve.build.py39.wanda.yaml
  9. - name: servebuild-multipy
  10. label: "wanda: servebuild-py{{matrix}}"
  11. wanda: ci/docker/serve.build.wanda.yaml
  12. matrix: ["3.12"]
  13. env:
  14. PYTHON: "{{matrix}}"
  15. depends_on: oss-ci-base_build-multipy
  16. - name: servepydantic1build
  17. wanda: ci/docker/servepydantic1.build.wanda.yaml
  18. - name: minbuild-serve
  19. label: "wanda: minbuild-{{matrix}}-py39"
  20. wanda: ci/docker/min.build.wanda.yaml
  21. matrix:
  22. - serve
  23. - default
  24. env:
  25. PYTHON_VERSION: "3.9"
  26. EXTRA_DEPENDENCY: "{{matrix}}"
  27. # tests
  28. - label: ":ray-serve: serve: tests"
  29. parallelism: 2
  30. tags:
  31. - serve
  32. - python
  33. instance_type: large
  34. commands:
  35. - bazel run //ci/ray_ci:test_in_docker -- //python/ray/serve/... //python/ray/tests/... serve
  36. --except-tags post_wheel_build,gpu,ha_integration
  37. --workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3
  38. --build-name servebuild --test-env=EXPECTED_PYTHON_VERSION=3.9
  39. depends_on: "servebuild"
  40. - label: ":ray-serve: serve: pydantic < 2.0 tests"
  41. parallelism: 2
  42. tags:
  43. - serve
  44. - python
  45. instance_type: large
  46. soft_fail: true
  47. commands:
  48. - bazel run //ci/ray_ci:test_in_docker -- //python/ray/serve/... //python/ray/tests/... serve
  49. --except-tags post_wheel_build,gpu,ha_integration
  50. --workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3
  51. --build-name servepydantic1build --test-env=EXPECTED_PYTHON_VERSION=3.9 --test-env=EXPECTED_PYDANTIC_VERSION=1.10.12
  52. depends_on: servepydantic1build
  53. - label: ":ray-serve: serve: python {{matrix.python}} tests ({{matrix.worker_id}})"
  54. if: build.pull_request.labels includes "continuous-build" || pipeline.id == "0189e759-8c96-4302-b6b5-b4274406bf89" || pipeline.id == "018f4f1e-1b73-4906-9802-92422e3badaa"
  55. tags:
  56. - serve
  57. - python
  58. instance_type: large
  59. commands:
  60. - bazel run //ci/ray_ci:test_in_docker -- //python/ray/serve/... //python/ray/tests/... serve
  61. --except-tags post_wheel_build,gpu,ha_integration
  62. --workers 2 --worker-id {{matrix.worker_id}} --parallelism-per-worker 3
  63. --python-version {{matrix.python}}
  64. --test-env=EXPECTED_PYTHON_VERSION={{matrix.python}}
  65. depends_on: servebuild-multipy
  66. matrix:
  67. setup:
  68. python: ["3.12"]
  69. worker_id: ["0", "1"]
  70. - label: ":ray-serve: serve: release tests"
  71. tags:
  72. - serve
  73. - release_tests
  74. - python
  75. instance_type: medium
  76. commands:
  77. - bazel run //ci/ray_ci:test_in_docker -- //release/... serve --parallelism-per-worker 3
  78. depends_on: servebuild
  79. - label: ":ray-serve: serve: wheel tests"
  80. tags: linux_wheels
  81. instance_type: medium
  82. commands:
  83. - bazel run //ci/ray_ci:test_in_docker -- //python/ray/serve/... //doc/... serve
  84. --build-type wheel
  85. --parallelism-per-worker 3
  86. --only-tags post_wheel_build
  87. --test-env=RAY_CI_POST_WHEEL_TESTS=True
  88. depends_on:
  89. - manylinux
  90. - servebuild
  91. - forge
  92. - label: ":ray-serve: serve: doc tests"
  93. tags:
  94. - serve
  95. - doc
  96. instance_type: large
  97. commands:
  98. # doc tests
  99. - bazel run //ci/ray_ci:test_in_docker -- python/ray/... //doc/... serve
  100. --only-tags doctest
  101. --parallelism-per-worker 3
  102. # doc examples
  103. - bazel run //ci/ray_ci:test_in_docker -- //doc/... serve
  104. --except-tags gpu,post_wheel_build,timeseries_libs,doctest
  105. --parallelism-per-worker 3
  106. --skip-ray-installation
  107. depends_on: servebuild
  108. - label: ":ray-serve: serve: default minimal"
  109. tags: python
  110. instance_type: small
  111. commands:
  112. - bazel run //ci/ray_ci:test_in_docker -- //python/ray/dashboard/... serve
  113. --parallelism-per-worker 2
  114. --build-name minbuild-default-py3.9
  115. --test-env=RAY_DEFAULT=1
  116. --only-tags minimal
  117. depends_on: minbuild-serve
  118. - label: ":ray-serve: serve: serve minimal"
  119. tags:
  120. - serve
  121. - python
  122. instance_type: small
  123. commands:
  124. - bazel run //ci/ray_ci:test_in_docker -- //python/ray/serve/tests/... serve
  125. --parallelism-per-worker 2
  126. --build-name minbuild-serve-py3.9
  127. --test-env=RAY_DEFAULT=1
  128. --only-tags minimal
  129. depends_on: minbuild-serve
  130. - label: ":ray-serve: serve: dashboard tests"
  131. tags:
  132. - serve
  133. - python
  134. - dashboard
  135. instance_type: medium
  136. commands:
  137. - bazel run //ci/ray_ci:test_in_docker -- python/ray/dashboard/... serve
  138. --parallelism-per-worker 3
  139. depends_on: servebuild
  140. - label: ":ray-serve: serve: HA integration tests"
  141. tags:
  142. - serve
  143. - python
  144. instance_type: medium
  145. commands:
  146. - bazel run //ci/ray_ci:build_in_docker -- docker --platform cpu --canonical-tag ha_integration
  147. - bazel run //ci/ray_ci:test_in_docker -- //python/ray/serve/tests/... serve
  148. --only-tags ha_integration
  149. depends_on:
  150. - manylinux
  151. - forge
  152. - raycpubase
  153. - servebuild
  154. - label: ":ray-serve: serve: doc gpu tests"
  155. tags:
  156. - serve
  157. - doc
  158. - gpu
  159. instance_type: gpu
  160. commands:
  161. - bazel run //ci/ray_ci:test_in_docker -- //doc/... serve
  162. --build-name docgpubuild
  163. --only-tags gpu
  164. depends_on: docgpubuild
  165. - label: ":ray-serve: serve: flaky tests"
  166. key: serve_flaky_tests
  167. tags:
  168. - serve
  169. - skip-on-premerge
  170. - python
  171. instance_type: medium
  172. soft_fail: true
  173. commands:
  174. - bazel run //ci/ray_ci:test_in_docker -- //... serve --run-flaky-tests --parallelism-per-worker 3
  175. depends_on: servebuild