Skip to content

Added install runsc as standalone CI script - #65815

Merged
rueian merged 8 commits into
ray-project:masterfrom
limarkdcunha:feature/adding-install-runsc-script
Sep 28, 2026
Merged

rueian merged 8 commits into
ray-project:masterfrom
limarkdcunha:feature/adding-install-runsc-script

Conversation

@limarkdcunha

Copy link
Copy Markdown
Contributor

Description

Added install runsc as standalone CI script.

Context for Why this was done ?

image

Related issues

"Related to #65352 #64964 ".

@limarkdcunha
limarkdcunha requested review from a team as code owners August 31, 2026 20:15

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread ci/env/install-runsc.sh Resolved
Comment thread ci/env/install-runsc.sh Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread ci/env/install-runsc.sh Resolved
@ray-gardener ray-gardener Bot added devprod community-contribution Contributed by the community labels Sep 1, 2026
@limarkdcunha

Copy link
Copy Markdown
Contributor Author

@andrewsykim can we pls get the premerge pipeline running as well. Meanwhile I will also test this on an ubuntu machine. Thanks

@limarkdcunha

Copy link
Copy Markdown
Contributor Author

Ran it locally and I think it looks good
image

@andrewsykim andrewsykim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elliot-barn can you do a pass as well?

Comment thread ci/env/install-runsc.sh Resolved
Comment thread ci/env/install-runsc.sh Resolved
Comment thread ci/env/install-runsc.sh Resolved
Comment thread ci/env/install-runsc.sh Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread ci/env/install-runsc.sh Resolved
@limarkdcunha
limarkdcunha force-pushed the feature/adding-install-runsc-script branch from dbdc7d1 to 08f59b6 Compare September 15, 2026 18:29

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 08f59b6. Configure here.

Comment thread ci/env/install-runsc.sh Resolved
@limarkdcunha

Copy link
Copy Markdown
Contributor Author

Ran it with ubuntu jammy as well

image

@andrewsykim andrewsykim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread ci/env/install-runsc.sh Resolved
@limarkdcunha

Copy link
Copy Markdown
Contributor Author

@pcmoritz can I get some help here with respect to other approvals pls ? Thanks

@andrewsykim andrewsykim added go add ONLY when ready to merge, run all tests and removed community-contribution Contributed by the community labels Sep 22, 2026
@limarkdcunha limarkdcunha changed the title Added install runsc as standalone CI script (experimental) Added install runsc as standalone CI script Sep 28, 2026
@rueian
rueian merged commit 76be011 into ray-project:master Sep 28, 2026
7 checks passed
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## 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]>
sai-miduthuri added a commit that referenced this pull request Oct 9, 2026
…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]>
pawelbeza pushed a commit to pawelbeza/ray that referenced this pull request Oct 23, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devprod go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants