Skip to content

[data] Skip upscaling validation warning for fixed-size actor pools#60569

Merged
bveeramani merged 1 commit intomasterfrom
fixed-actor-pool-no-warning
Jan 28, 2026
Merged

[data] Skip upscaling validation warning for fixed-size actor pools#60569
bveeramani merged 1 commit intomasterfrom
fixed-actor-pool-no-warning

Conversation

@jeffreywang-anyscale
Copy link
Contributor

Description

The autoscaling validation warning was incorrectly raised for fixed-size actor pools (min_size == max_size). These pools don't scale up, so the warning doesn't apply.

Related issues

Context: #60477 (comment)

Additional information

After this change, when we run python -m pytest -v -s test_vllm_engine_proc.py::test_generation_model, we no longer observe autoscaling warnings in the log.

@jeffreywang-anyscale jeffreywang-anyscale requested a review from a team as a code owner January 28, 2026 18:52
@jeffreywang-anyscale jeffreywang-anyscale added the go add ONLY when ready to merge, run all tests label Jan 28, 2026
Copy link
Contributor

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

Choose a reason for hiding this comment

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

Code Review

The pull request effectively addresses the issue of unnecessary autoscaling validation warnings for fixed-size actor pools by introducing an early exit condition in the _validate_actor_pool_autoscaling_config function. A new test case has been added to test_autoscaler.py to verify this behavior, which is a good practice. The core logic change is sound and the test covers the intended functionality.

Comment on lines +761 to +763
expected_message = (
"⚠️ Actor Pool configuration of the "
"ActorPoolMapOperator[MapBatches(SimpleMapper)] will not allow it to scale up: "
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The warning message prefix "⚠️ Actor Pool configuration of the ActorPoolMapOperator[MapBatches(SimpleMapper)] will not allow it to scale up: " is duplicated across multiple test cases within this function (e.g., Test #1, Test #2, Test #3, and this new Test #4). Defining this common prefix as a constant at the function level would improve maintainability and reduce repetition, making it easier to update if the warning message format changes in the future.

Suggested change
expected_message = (
"⚠️ Actor Pool configuration of the "
"ActorPoolMapOperator[MapBatches(SimpleMapper)] will not allow it to scale up: "
_COMMON_WARNING_PREFIX = (
"⚠️ Actor Pool configuration of the "
"ActorPoolMapOperator[MapBatches(SimpleMapper)] will not allow it to scale up: "
)
expected_message = _COMMON_WARNING_PREFIX

Copy link
Member

@bveeramani bveeramani left a comment

Choose a reason for hiding this comment

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

Out-of-scope for this PR, but I think we should refactor test_autoscaling_config_validation_warnings to be a unit test, and also split it up into multiple cases.

When you write your tests, try to include only one Act task per test. Some common approaches for implementing a single Act task include creating a separate test for each Act or using parameterized tests. There are several benefits to using a single Act task for each test:

You can easily discern which Act task is failing if the test fails.
You can ensure the test is focused on just a single case.
You gain a clear picture as to why your tests are failing.
Multiple Act tasks need to be individually asserted, and you can't guarantee that all Assert tasks execute. In most unit testing frameworks, after an Assert task fails in a unit test, all subsequent tests are automatically considered as failing. The process can be confusing because some working functionality might be interpreted as failing.

@bveeramani bveeramani merged commit 4835851 into master Jan 28, 2026
6 checks passed
@bveeramani bveeramani deleted the fixed-actor-pool-no-warning branch January 28, 2026 22:00
jinbum-kim pushed a commit to jinbum-kim/ray that referenced this pull request Jan 29, 2026
…ay-project#60569)

## Description
The autoscaling validation warning was incorrectly raised for fixed-size
actor pools (`min_size == max_size`). These pools don't scale up, so the
warning doesn't apply.

## Related issues
Context:
ray-project#60477 (comment)

## Additional information
After this change, when we run `python -m pytest -v -s
test_vllm_engine_proc.py::test_generation_model`, we no longer observe
autoscaling warnings in the log.

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: jinbum-kim <[email protected]>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jan 29, 2026
…ay-project#60569)

## Description
The autoscaling validation warning was incorrectly raised for fixed-size
actor pools (`min_size == max_size`). These pools don't scale up, so the
warning doesn't apply.

## Related issues
Context:
ray-project#60477 (comment)

## Additional information
After this change, when we run `python -m pytest -v -s
test_vllm_engine_proc.py::test_generation_model`, we no longer observe
autoscaling warnings in the log.

Signed-off-by: Jeffrey Wang <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Feb 1, 2026
…ay-project#60569)

## Description
The autoscaling validation warning was incorrectly raised for fixed-size
actor pools (`min_size == max_size`). These pools don't scale up, so the
warning doesn't apply.

## Related issues
Context:
ray-project#60477 (comment)

## Additional information
After this change, when we run `python -m pytest -v -s
test_vllm_engine_proc.py::test_generation_model`, we no longer observe
autoscaling warnings in the log.

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: 400Ping <[email protected]>
ans9868 pushed a commit to ans9868/ray that referenced this pull request Feb 18, 2026
…ay-project#60569)

## Description
The autoscaling validation warning was incorrectly raised for fixed-size
actor pools (`min_size == max_size`). These pools don't scale up, so the
warning doesn't apply.

## Related issues
Context:
ray-project#60477 (comment)

## Additional information
After this change, when we run `python -m pytest -v -s
test_vllm_engine_proc.py::test_generation_model`, we no longer observe
autoscaling warnings in the log.

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: Adel Nour <[email protected]>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
…ay-project#60569)

## Description
The autoscaling validation warning was incorrectly raised for fixed-size
actor pools (`min_size == max_size`). These pools don't scale up, so the
warning doesn't apply.

## Related issues
Context:
ray-project#60477 (comment)

## Additional information
After this change, when we run `python -m pytest -v -s
test_vllm_engine_proc.py::test_generation_model`, we no longer observe
autoscaling warnings in the log.

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: peterxcli <[email protected]>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
…ay-project#60569)

## Description
The autoscaling validation warning was incorrectly raised for fixed-size
actor pools (`min_size == max_size`). These pools don't scale up, so the
warning doesn't apply.

## Related issues
Context:
ray-project#60477 (comment)

## Additional information
After this change, when we run `python -m pytest -v -s
test_vllm_engine_proc.py::test_generation_model`, we no longer observe
autoscaling warnings in the log.

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: peterxcli <[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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants