mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
[e2e] do not terminate in serve_failure
smoke test (#21925)
When the script terminates, it will also terminate its cluster including dashboard, which will prevent subsequent job submissions. Other long running e2e tests do not terminate in smoke test mode, so make `serve_failure` behave the same.
This commit is contained in:
parent
09fab70991
commit
97f7e3d0e6
3 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ py_test(
|
|||
size = "medium",
|
||||
srcs = test_srcs,
|
||||
env = {
|
||||
"IS_SMOKE_TEST": "1",
|
||||
"RAY_UNIT_TEST": "1",
|
||||
},
|
||||
main = "serve_failure.py",
|
||||
tags = [
|
||||
|
|
|
@ -191,4 +191,4 @@
|
|||
|
||||
smoke_test:
|
||||
run:
|
||||
timeout: 3600
|
||||
timeout: 600
|
||||
|
|
|
@ -24,7 +24,7 @@ NUM_NODES = 4
|
|||
# RandomTest setup constants
|
||||
CPUS_PER_NODE = 10
|
||||
|
||||
IS_SMOKE_TEST = "IS_SMOKE_TEST" in os.environ
|
||||
RAY_UNIT_TEST = "RAY_UNIT_TEST" in os.environ
|
||||
|
||||
|
||||
def update_progress(result):
|
||||
|
@ -149,7 +149,7 @@ class RandomTest:
|
|||
previous_time = new_time
|
||||
iteration += 1
|
||||
|
||||
if IS_SMOKE_TEST:
|
||||
if RAY_UNIT_TEST:
|
||||
break
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue