From b2478708b4276d679a534afd1a4f4ae5b5af9d4b Mon Sep 17 00:00:00 2001 From: Tian Xia Date: Thu, 1 Feb 2024 09:13:23 +0800 Subject: [PATCH] [Tests] Fix `test_large_job_queue` occasional failure (#3023) * fix * cahnge to 90s --- tests/test_smoke.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_smoke.py b/tests/test_smoke.py index f3af7c97abd..0251eca6d4d 100644 --- a/tests/test_smoke.py +++ b/tests/test_smoke.py @@ -1217,7 +1217,7 @@ def test_large_job_queue(generic_cloud: str): f'sky launch -y -c {name} --cpus 8 --cloud {generic_cloud}', f'for i in `seq 1 75`; do sky exec {name} -n {name}-$i -d "echo $i; sleep 100000000"; done', f'sky cancel -y {name} 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16', - 'sleep 85', + 'sleep 90', # Each job takes 0.5 CPU and the default VM has 8 CPUs, so there should be 8 / 0.5 = 16 jobs running. # The first 16 jobs are canceled, so there should be 75 - 32 = 43 jobs PENDING. f's=$(sky queue {name}); echo "$s"; echo; echo; echo "$s" | grep -v grep | grep PENDING | wc -l | grep 43',