Skip to content

[Data] Enable spilling and OOM check for remaining multimodal release tests - #64298

Merged
bveeramani merged 5 commits into
masterfrom
up-ratchet-for-multimodal-tests
Jun 24, 2026
Merged

bveeramani merged 5 commits into
masterfrom
up-ratchet-for-multimodal-tests

Conversation

@bveeramani

@bveeramani bveeramani commented Jun 24, 2026 •

Copy link
Copy Markdown
Member

Now that we've fixed the issue where we don't subtract system memory from logical memory in our release test environment, I'm bumping up the spilling and OOM ratchets for the multimodal release tests.

In this PR, I've:

  • Enabled the OOM ratchet for the audio and video release tests
  • Enabled the spilling ratchet for all multimodal release tests
  • Fixed a minor issue where I didn't configure DataContext currently in the video release test
  • Added best practices to the audio release test

Signed-off-by: Balaji Veeramani <[email protected]>
@bveeramani
bveeramani marked this pull request as draft June 24, 2026 01:51

@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 memory configurations and best practices to prevent OOM errors in the audio transcription nightly benchmark, including setting a preprocess memory limit and enabling worker isolation. It also updates test configurations to fail on spilling and removes obsolete environment overrides. The review feedback correctly points out that modifying ray.data.DataContext class attributes directly will not affect the active singleton instance, and provides a code suggestion to use ray.data.DataContext.get_current() instead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
@bveeramani bveeramani changed the title [Data] [Data] Enable OOM check ratchet of multimodal release tests Jun 24, 2026
@bveeramani bveeramani changed the title [Data] Enable OOM check ratchet of multimodal release tests [Data] Enable OOM check ratchet on audio and video release tests Jun 24, 2026
@bveeramani bveeramani changed the title [Data] Enable OOM check ratchet on audio and video release tests [Data] Enable fail on OOM for audio and video release tests Jun 24, 2026
@bveeramani
bveeramani marked this pull request as ready for review June 24, 2026 06:25
@bveeramani
bveeramani requested a review from a team as a code owner June 24, 2026 06:25
@bveeramani bveeramani changed the title [Data] Enable fail on OOM for audio and video release tests [Data] Enable spilling and OOM check for remaining multimodal release tests Jun 24, 2026
@ray-gardener ray-gardener Bot added data Ray Data-related issues release-test release test labels Jun 24, 2026
Signed-off-by: Balaji Veeramani <[email protected]>

@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

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1d6a53e. Configure here.

Signed-off-by: Balaji Veeramani <[email protected]>
@bveeramani bveeramani added the go add ONLY when ready to merge, run all tests label Jun 24, 2026

@ayushk7102 ayushk7102 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.

LGTM

@bveeramani
bveeramani merged commit 57de812 into master Jun 24, 2026
4 checks passed
@bveeramani
bveeramani deleted the up-ratchet-for-multimodal-tests branch June 24, 2026 17:41
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
… tests (ray-project#64298)

Now that we've fixed the issue where we don't subtract system memory
from logical memory in our release test environment, I'm bumping up the
spilling and OOM ratchets for the multimodal release tests.

In this PR, I've:
* Enabled the OOM ratchet for the audio and video release tests
* Enabled the spilling ratchet for all multimodal release tests
* Fixed a minor issue where I didn't configure `DataContext` currently
in the video release test
* Added best practices to the audio release test

---------

Signed-off-by: Balaji Veeramani <[email protected]>
elliot-barn pushed a commit that referenced this pull request Jul 14, 2026
… tests (#64298)

Now that we've fixed the issue where we don't subtract system memory
from logical memory in our release test environment, I'm bumping up the
spilling and OOM ratchets for the multimodal release tests.

In this PR, I've:
* Enabled the OOM ratchet for the audio and video release tests
* Enabled the spilling ratchet for all multimodal release tests
* Fixed a minor issue where I didn't configure `DataContext` currently
in the video release test
* Added best practices to the audio release test

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
elliot-barn added a commit that referenced this pull request Jul 15, 2026
… tests (#64298) (cherry-pick 2.56.1) (#64758)

Cherry-pick of #64298 onto `releases/2.56.1`.

Original PR: #64298

## Summary
Bumps up the spilling and OOM ratchets for the multimodal release tests
(enables the OOM ratchet for the audio and video release tests, plus
related `_anyscale_job_wrapper` and test yaml changes).

## Cherry-pick notes
One conflict resolved in
`release/nightly_tests/multimodal_inference_benchmarks/video_object_detection/ray_data_main.py`:
the incoming change adds the opt-in OOM best-practice `DataContext`
settings at the start of `run_pipeline()`; accepted the addition (base
had no surrounding divergence).

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
sai-miduthuri pushed a commit that referenced this pull request Jul 17, 2026
…benchmark (#64125) (cherry-pick 2.56.1)

Cherry-pick of #64125 onto `releases/2.56.1`.

Original PR: #64125

## Summary
Enables the opt-in memory-safety best practices for the video object
detection multimodal benchmark so it exercises (and validates) the OOM
guardrails we recommend to users. Specifically, it sets `memory=3_529_273_344`
(~3.5 GB) on the high-memory `ExtractImageFeatures` UDF (the max USS observed
in previous nightly runs), since Ray Data can't prevent OOMs unless `memory`
is set for high-memory UDFs.

## Cherry-pick notes
One conflict resolved in
`release/nightly_tests/multimodal_inference_benchmarks/video_object_detection/ray_data_main.py`:
the `isolate_read_workers` / `default_map_logical_memory_enabled`
`DataContext` settings that #64125 adds are already present on the branch
(introduced by the earlier cherry-pick of #64298, using the
`DataContext.get_current()` accessor). Kept the branch's `get_current()`
form; the net change from this cherry-pick is the `memory=3_529_273_344`
argument on the `ExtractImageFeatures` `map_batches` call.

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: sai-miduthuri <[email protected]>
elliot-barn pushed a commit that referenced this pull request Jul 17, 2026
…benchmark (#64125) (cherry-pick 2.56.1) (#64827)

Cherry-pick of #64125 onto `releases/2.56.1`.

Original PR: #64125

## Summary
Enables the opt-in memory-safety best practices for the video object
detection multimodal benchmark so it exercises (and validates) the OOM
guardrails we recommend to users. Specifically, it sets
`memory=3_529_273_344` (~3.5 GB) on the high-memory
`ExtractImageFeatures` UDF (the max USS observed in previous nightly
runs), since Ray Data can't prevent OOMs unless `memory` is set for
high-memory UDFs.

## Cherry-pick notes
One conflict resolved in
`release/nightly_tests/multimodal_inference_benchmarks/video_object_detection/ray_data_main.py`:
the `isolate_read_workers` / `default_map_logical_memory_enabled`
`DataContext` settings that #64125 adds are already present on the
branch (introduced by the earlier cherry-pick of #64298, using the
`DataContext.get_current()` accessor). Kept the branch's `get_current()`
form; the net change from this cherry-pick is the `memory=3_529_273_344`
argument on the `ExtractImageFeatures` `map_batches` call.

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: sai-miduthuri <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
… tests (ray-project#64298)

Now that we've fixed the issue where we don't subtract system memory
from logical memory in our release test environment, I'm bumping up the
spilling and OOM ratchets for the multimodal release tests.

In this PR, I've:
* Enabled the OOM ratchet for the audio and video release tests
* Enabled the spilling ratchet for all multimodal release tests
* Fixed a minor issue where I didn't configure `DataContext` currently
in the video release test
* Added best practices to the audio release test

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: 400Ping <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues go add ONLY when ready to merge, run all tests release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants