Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] Fix test_large_job_queue occasional failure #3023

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

cblmemo
Copy link
Collaborator

@cblmemo cblmemo commented Jan 24, 2024

The smoke test test_large_job_queue occasionally failed on a code with no related bug. After an observation I trying to debug #2434 , it is because there is not enough time for those jobs to get executed on the cluster. In a successful run, the smoke test started to query the job statuses right after job 32 was executed on the cluster. This PR fixes the problem.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

@@ -1215,7 +1215,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 75',
'sleep 150',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep this small. It demonstrates how fast our job queue operates.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the lowest number we can set for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried 90s, and it successfully passed for 6 runs, and 85s failed at the second run. I changed to 90s instead.

Copy link
Collaborator

@Michaelvll Michaelvll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cblmemo! LGTM.

@cblmemo cblmemo merged commit b247870 into master Feb 1, 2024
19 checks passed
@cblmemo cblmemo deleted the fix-large-job-queue-smoke-test branch February 1, 2024 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants