-
Notifications
You must be signed in to change notification settings - Fork 7k
[runtime env] properly support apple silicon wheel urls #57745
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,13 @@ def test_get_wheel_filename(): | |
| ray_version = "3.0.0.dev0" | ||
| for arch in ["x86_64", "aarch64", "arm64"]: | ||
| for sys_platform in ["darwin", "linux", "win32"]: | ||
| # Windows only has x86_64 wheels | ||
| if sys_platform == "win32" and arch != "x86_64": | ||
| continue | ||
| # MacOS only has arm64 wheels | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment on this line is a bit misleading. While it might be true that for these specific dev wheels only For example: - # MacOS only has arm64 wheels
+ # For nightly dev wheels, we currently only build for arm64 on macOS. |
||
| if sys_platform == "darwin" and arch == "x86_64": | ||
| continue | ||
|
|
||
| for py_version in ray_constants.RUNTIME_ENV_CONDA_PY_VERSIONS: | ||
| filename = get_wheel_filename( | ||
| sys_platform, ray_version, py_version, arch | ||
|
|
@@ -35,8 +42,8 @@ def test_get_master_wheel_url(): | |
| # `s3://ray-wheels/master/<test_commit>/`. | ||
| # | ||
| # Link to commit: | ||
| # https://github.com/ray-project/ray/commit/263c7e1e66746c03f16e8ee20753d05a9936f6f0 | ||
| test_commit = "263c7e1e66746c03f16e8ee20753d05a9936f6f0" | ||
| # https://github.com/ray-project/ray/commit/faf06e09e55558fb36c72e91a5cf8a7e3da8b8c6 | ||
| test_commit = "faf06e09e55558fb36c72e91a5cf8a7e3da8b8c6" | ||
| for sys_platform in ["darwin", "linux", "win32"]: | ||
| for py_version in ray_constants.RUNTIME_ENV_CONDA_PY_VERSIONS: | ||
| url = get_master_wheel_url( | ||
|
|
@@ -50,7 +57,7 @@ def test_get_release_wheel_url(): | |
| # This should be a commit for which wheels have already been built for | ||
| # all platforms and python versions at | ||
| # `s3://ray-wheels/releases/2.2.0/<commit>/`. | ||
| test_commits = {"2.47.1": "61d3f2f1aa33563faa398105f4abda88cb39440b"} | ||
| test_commits = {"2.49.2": "479fa716904109d9df4b56b98ca3c3350e1ec13c"} | ||
| for sys_platform in ["darwin", "linux", "win32"]: | ||
| for py_version in ray_constants.RUNTIME_ENV_CONDA_PY_VERSIONS: | ||
| for version, commit in test_commits.items(): | ||
|
|
||
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.
Bug: macOS Wheel Filename Mismatch
The
get_wheel_filenamefunction generates x86_64 macOS wheel names, but thetest_get_wheel_filenametest skips x86_64 for macOS, commenting that "MacOS only has arm64 wheels". This inconsistency could lead to the function generating URLs for non-existent wheels, causing 404 errors for Intel Mac users.Additional Locations (1)
python/ray/tests/test_runtime_env_get_wheel_names.py#L22-L25