-
Notifications
You must be signed in to change notification settings - Fork 555
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
[BugFix] Fix modification of sky/__init__.py
when building sky wheels
#2733
Conversation
sky/__init__.py
when building sky wheelssky/__init__.py
when building sky wheels
Ahh, nice catch @cblmemo! I was trying to only modify the |
Done 🫡 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix @cblmemo! Could we quickly test the speed for building the wheel with and without this PR? I suppose there won't be much difference. : )
Co-authored-by: Zhanghao Wu <[email protected]>
Co-authored-by: Zhanghao Wu <[email protected]>
It even became faster 🤣 Though it should be some irrelevant reasons w/ this PR: Average at 2.029663157463074
w/o this PR: Average at 2.0818066596984863
Test script: from sky.backends import wheel_utils
import shutil,time
ts = []
for _ in range(10):
st = time.time()
shutil.rmtree(wheel_utils.WHEEL_DIR, ignore_errors=True)
wheel_utils.build_sky_wheel()
ed = time.time()
ts.append(ed - st)
print(ts)
print(sum(ts) / len(ts)) |
Just found out that I left the from sky.backends import wheel_utils
import shutil, time
ts = []
for _ in range(10):
shutil.rmtree(wheel_utils.WHEEL_DIR, ignore_errors=True)
st = time.time()
wheel_utils.build_sky_wheel()
ed = time.time()
ts.append(ed - st)
print(ts)
print(sum(ts) / len(ts)) w/ this PR: Average at 2.0500237226486204
w/o this PR: Average at 2.0342708349227907
|
To reproduce:
python -c 'from sky.backends import wheel_utils; wheel_utils.build_sky_wheel()'
This will replace the
_SKYPILOT_COMMIT_SHA
insky/__init__.py
with the current commit. This PR fixed the problem.Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
bash tests/backward_comaptibility_tests.sh