SkyPilot: Run AI and batch jobs on any infra (Kubernetes or 12+ clouds). Get unified execution, cost savings, and high GPU availability via a simple interface.
And modify some smoke test cases to change to these functions.
The aim is to replace all sleep xxx time-based waiting with these event-based waiting functions.
There are over 100 lines of time-based tests that need to be replaced. This PR won't replace all at once(Otherwise the PR would be too large).
If all goes well, it will be the first PR to offer this possibility, and subsequent PRs will replace the rest.
This should make the test runs faster and less flaky.
Tested (run the relevant ones):
[ ] Code formatting: bash format.sh
[ ] Any manual or new tests for this PR (please specify below)
Add some bash functions as global variables:
Before
After
40% faster, and less flaky
And modify some smoke test cases to change to these functions.
The aim is to replace all
sleep xxx
time-based waiting with these event-based waiting functions.There are over 100 lines of time-based tests that need to be replaced. This PR won't replace all at once(Otherwise the PR would be too large). If all goes well, it will be the first PR to offer this possibility, and subsequent PRs will replace the rest.
This should make the test runs faster and less flaky.
Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
conda deactivate; bash -i tests/backward_compatibility_tests.sh