ray/release/BUILD
Kai Fricke 331b71ea8d
[ci/release] Refactor release test e2e into package (#22351)
Adds a unit-tested and restructured ray_release package for running release tests.

Relevant changes in behavior:

Per default, Buildkite will wait for the wheels of the current commit to be available. Alternatively, users can a) specify a different commit hash, b) a wheels URL (which we will also wait for to be available) or c) specify a branch (or user/branch combination), in which case the latest available wheels will be used (e.g. if master is passed, behavior matches old default behavior).

The main subpackages are:

    Cluster manager: Creates cluster envs/computes, starts cluster, terminates cluster
    Command runner: Runs commands, e.g. as client command or sdk command
    File manager: Uploads/downloads files to/from session
    Reporter: Reports results (e.g. to database)

Much of the code base is unit tested, but there are probably some pieces missing.

Example build (waited for wheels to be built): https://buildkite.com/ray-project/kf-dev/builds/51#_
Wheel build: https://buildkite.com/ray-project/ray-builders-branch/builds/6023
2022-02-16 17:35:02 +00:00

99 lines
1.9 KiB
Text

load("@rules_python//python:defs.bzl", "py_test")
test_srcs = glob(["**/*.py"])
py_test(
name = "serve_failure_smoke_test",
size = "medium",
srcs = test_srcs,
env = {
"RAY_UNIT_TEST": "1",
},
main = "serve_failure.py",
tags = [
"exclusive",
"team:serve",
],
deps = [
"//:ray_lib",
"//python/ray/serve:serve_lib",
],
)
py_test(
name = "autoscaling_single_deployment_smoke_test",
size = "medium",
srcs = test_srcs,
env = {
"IS_SMOKE_TEST": "1",
},
main = "autoscaling_single_deployment.py",
tags = [
"exclusive",
"team:serve",
],
deps = [
"//:ray_lib",
"//python/ray/serve:serve_lib",
],
)
py_test(
name = "autoscaling_multi_deployment_smoke_test",
size = "medium",
srcs = test_srcs,
env = {
"IS_SMOKE_TEST": "1",
},
main = "autoscaling_multi_deployment.py",
tags = [
"exclusive",
"team:serve",
],
deps = [
"//:ray_lib",
"//python/ray/serve:serve_lib",
],
)
py_test(
name = "test_alerts",
tags = ["team:ml", "release_unit"],
size = "small",
srcs = ["ray_release/tests/test_alerts.py"]
)
py_test(
name = "test_buildkite",
tags = ["team:ml", "release_unit"],
size = "small",
srcs = ["ray_release/tests/test_buildkite.py"]
)
py_test(
name = "test_cluster_manager",
tags = ["team:ml", "release_unit"],
size = "small",
srcs = ["ray_release/tests/test_cluster_manager.py"]
)
py_test(
name = "test_glue",
tags = ["team:ml", "release_unit"],
size = "small",
srcs = ["ray_release/tests/test_glue.py"]
)
py_test(
name = "test_repeat",
tags = ["team:ml", "release_unit"],
size = "small",
srcs = ["ray_release/tests/test_repeat.py"]
)
py_test(
name = "test_wheels",
tags = ["team:ml", "release_unit"],
size = "small",
srcs = ["ray_release/tests/test_wheels.py"]
)