[refactor] Install uv from test-requirements.txt#53685
[refactor] Install uv from test-requirements.txt#53685pcmoritz wants to merge 9 commits intoray-project:masterfrom
Conversation
Removes the manual download and installation of `uv` within the `test_runtime_env_uv_run.py` test file. Instead, `uv` is now added as a dependency in `python/requirements/test-requirements.txt`. The tests have been updated to use the `uv` executable directly, assuming it's installed in the environment. This change simplifies the test setup and relies on the standard dependency management for `uv`. Updated `uv` to version 0.7.12.
| def test_uv_run_pyproject(shutdown_only, with_uv, tmp_working_dir): | ||
| uv = with_uv | ||
| def test_uv_run_pyproject(shutdown_only, tmp_working_dir): | ||
| uv = "uv" |
|
@pcmoritz some tests failed |
|
@pcmoritz there are still some uv tests failed. |
<!-- Thank you for your contribution! Please review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? This fixes the architecture when downloading uv. Before we used i686 which is only available on linux (and even on linux it is actually not the right architecture, x86_64 is better). Because i686 is not available on mac os, it gave a 404 error when downloading uv. Slightly more incremental than #53685 Fixes #53650 ## Related issue number <!-- For example: "Closes #1234" --> ## Checks - [ ] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [ ] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :(
<!-- Thank you for your contribution! Please review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? This fixes the architecture when downloading uv. Before we used i686 which is only available on linux (and even on linux it is actually not the right architecture, x86_64 is better). Because i686 is not available on mac os, it gave a 404 error when downloading uv. Slightly more incremental than #53685 Fixes #53650 ## Related issue number <!-- For example: "Closes #1234" --> ## Checks - [ ] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [ ] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
<!-- Thank you for your contribution! Please review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? This fixes the architecture when downloading uv. Before we used i686 which is only available on linux (and even on linux it is actually not the right architecture, x86_64 is better). Because i686 is not available on mac os, it gave a 404 error when downloading uv. Slightly more incremental than #53685 Fixes #53650 ## Related issue number <!-- For example: "Closes #1234" --> ## Checks - [ ] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [ ] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
|
This pull request has been automatically closed because there has been no more activity in the 14 days Please feel free to reopen or open a new pull request if you'd still like this to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for your contribution! |
| uv==0.7.12 | ||
| # via -r python/requirements/test-requirements.txt |
There was a problem hiding this comment.
why is this a different version from test-requirements.txt?
There was a problem hiding this comment.
nvm, this is a closed PR.
Removes the manual download and installation of
uvwithin thetest_runtime_env_uv_run.pytest file.Instead,
uvis now added as a dependency inpython/requirements/test-requirements.txt. The tests have been updated to use theuvexecutable directly, assuming it's installed in the environment.This change simplifies the test setup and relies on the standard dependency management for
uv. Updateduvto version 0.7.12.Fixes #53650
Why are these changes needed?
Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.