Repository navigation
Added install runsc as standalone CI script - #65815
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new bash script ci/env/install-runsc.sh to handle the installation of the gVisor runtime (runsc) and refactors the sandbox test configuration in conftest.py to use this script. The review feedback highlights three critical issues: the unconditional use of sudo in the installation script which can cause hangs or permission errors, a potential command-not-found error when verifying the installation via runsc --version if the install directory is not in the PATH, and the need to run the script with a temporary directory argument in conftest.py to avoid requiring root privileges during local test runs.
|
@andrewsykim can we pls get the premerge pipeline running as well. Meanwhile I will also test this on an ubuntu machine. Thanks |
andrewsykim
left a comment
There was a problem hiding this comment.
@elliot-barn can you do a pass as well?
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
dbdc7d1 to
08f59b6
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 08f59b6. Configure here.
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
|
@pcmoritz can I get some help here with respect to other approvals pls ? Thanks |
## Description Added install runsc as standalone CI script. ### Context for Why this was done ? <img width="1594" height="782" alt="image" src="https://github.com/user-attachments/assets/474c40d9-1323-4dca-94c6-7ce232535c60" /> ## Related issues > "Related to ray-project#65352 ray-project#64964 ". --------- Signed-off-by: Limark Dcunha <[email protected]>
…C facade (#66675) (#66897) Cherry-pick of #66675 (master commit 4f967ab) onto `releases/2.60.0`. ## Why - **The gRPC facade ships without authentication on this branch.** `releases/2.60.0` includes the sandbox gRPC facade (#65839) but not #66675, which makes it require the API token. This pick brings the branch's facade in line with master. - **It fixes the `:ray: core: sandbox tests` job on this branch.** For example, it fails in microcheck build 55893 for #66801. `test_image_utils.py::test_seeding_stays_inside_the_tree` linked the fake image's `/tmp` to an absolute path under pytest's `tmp_path`, which is itself under `/tmp` in CI. #66675 fixes the test, and the product code is unchanged. The branch already has #65815, which made the sandbox tests actually run in CI instead of skipping. ## Cherry-pick details Applied cleanly with `git cherry-pick -x`. The diff is byte-identical to the master commit: the same 10 files, 726 insertions and 29 deletions, with identical hunks, context lines and offsets. No prerequisite commits are missing: - No commit on master between the branch cut and #66675 touched `python/ray/experimental/sandbox/` or `doc/source/ray-core/sandboxes.md`. Neither did any commit on this branch after the cut. - After the pick, the whole `python/ray/experimental/sandbox/` package and `doc/source/ray-core/sandboxes.md` are identical to master at 4f967ab. - Outside the sandbox package, the picked code imports only `ray.util.annotations`, which is identical on both branches. Not a duplicate: no existing PR against `releases/2.60.0` references #66675. ## Testing `test_grpc_facade.py` and `test_modal_client.py` skip in CI because `grpclib` and `modal` aren't in the CI image, so I ran them locally. Environment: Linux, Python 3.10, `grpclib` 0.4.9 and `modal` 1.5.5 (the versions #66675 used). Other test dependencies were pinned from `python/requirements_compiled.txt`. Ray was the CI-built `ray-2.60.0` wheel for this PR's parent commit (b7a4529), with the wheel's `ray/experimental/sandbox/` replaced by this branch's copy. | Command | Code under test | Result | |---|---|---| | `pytest .../http/tests/test_grpc_facade.py .../http/tests/test_modal_client.py` | this PR | 58 passed (52 + 6), 0 skipped | | `pytest .../http/tests` | this PR | 136 passed, 2 skipped (`test_http_integration.py`, `TEST_SANDBOX` unset) | | Same two files, the branch's tests before this pick | `releases/2.60.0` | 24 passed | | This PR's two test files | `releases/2.60.0` (before this pick) | 30 failed, 28 passed: every token/auth test fails, as expected | `test_image_utils.py::test_seeding_stays_inside_the_tree` and the 2 skipped `test_http_integration.py` cases run in CI's `:ray: core: sandbox tests` job, which sets `TEST_SANDBOX=1`. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: xyuzh <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Xinyu Zhang <[email protected]> Co-authored-by: Philipp Moritz <[email protected]>
## Description Added install runsc as standalone CI script. ### Context for Why this was done ? <img width="1594" height="782" alt="image" src="https://github.com/user-attachments/assets/474c40d9-1323-4dca-94c6-7ce232535c60" /> ## Related issues > "Related to ray-project#65352 ray-project#64964 ". --------- Signed-off-by: Limark Dcunha <[email protected]>



Description
Added install runsc as standalone CI script.
Context for Why this was done ?
Related issues