Skip to content

Add type validation for ray.autoscaler.sdk.request_resources() - #26626

Merged
DmitriGekhtman merged 2 commits into
ray-project:masterfrom
truelegion47:ISSUE-23166-1
Jul 16, 2022
Merged

DmitriGekhtman merged 2 commits into
ray-project:masterfrom
truelegion47:ISSUE-23166-1

Conversation

@truelegion47

@truelegion47 truelegion47 commented Jul 16, 2022 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

#23166 needed type validation in autoscaler for bundles.

Related issue number

Closes #23166

Checks

@truelegion47

Copy link
Copy Markdown
Contributor Author

@DmitriGekhtman Thank you for approving the other PR. I messed up the rebase. Can you please take a look on this PR instead when you get a chance ? I have addressed all comments and DCO.

Signed-off-by: Your Name <[email protected]>

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

Thank you, looks good!

@DmitriGekhtman
DmitriGekhtman merged commit 5bd8d12 into ray-project:master Jul 16, 2022
@DmitriGekhtman DmitriGekhtman changed the title adding validation to autoscaler Add type validation for ray.autoscaler.sdk.request_resources() Jul 16, 2022
xwjiang2010 pushed a commit to xwjiang2010/ray that referenced this pull request Jul 19, 2022
…oject#26626)

Adds type validation to ray.autoscaler.sdk.request_resources().

Signed-off-by: Xiaowei Jiang <[email protected]>
Stefan-1313 pushed a commit to Stefan-1313/ray_mod that referenced this pull request Aug 18, 2022
…oject#26626)

Adds type validation to ray.autoscaler.sdk.request_resources().

Signed-off-by: Stefan van der Kleij <[email protected]>
justinvyu pushed a commit that referenced this pull request May 14, 2026
…rces (#63306)

#59353 open-sourced the `AutoscalingCoordinator` including a `math.ceil`
block on incoming resource bundles. The block traces back to that
validator was added back in #26626 to fix a *shape* bug (#23166 ). The
literal `int` came from an informal type annotation;
It seems that neither v1 (KV → load_metrics → bin-packing) nor v2 (proto
`map<string, double>`) requires it.

Drop the value-type check in the SDK and remove the `math.ceil`
workaround in Ray Data

---------

Signed-off-by: Lehui Liu <[email protected]>
TruongQuangPhat pushed a commit to cyhapun/ray-fix-issue that referenced this pull request May 27, 2026
…rces (ray-project#63306)

ray-project#59353 open-sourced the `AutoscalingCoordinator` including a `math.ceil`
block on incoming resource bundles. The block traces back to that
validator was added back in ray-project#26626 to fix a *shape* bug (ray-project#23166 ). The
literal `int` came from an informal type annotation;
It seems that neither v1 (KV → load_metrics → bin-packing) nor v2 (proto
`map<string, double>`) requires it.

Drop the value-type check in the SDK and remove the `math.ceil`
workaround in Ray Data

---------

Signed-off-by: Lehui Liu <[email protected]>
Signed-off-by: phattruong <[email protected]>
alexandrplashchinsky pushed a commit to alexandrplashchinsky/ray-alex that referenced this pull request May 29, 2026
…rces (ray-project#63306)

ray-project#59353 open-sourced the `AutoscalingCoordinator` including a `math.ceil`
block on incoming resource bundles. The block traces back to that
validator was added back in ray-project#26626 to fix a *shape* bug (ray-project#23166 ). The
literal `int` came from an informal type annotation;
It seems that neither v1 (KV → load_metrics → bin-packing) nor v2 (proto
`map<string, double>`) requires it.

Drop the value-type check in the SDK and remove the `math.ceil`
workaround in Ray Data

---------

Signed-off-by: Lehui Liu <[email protected]>
Signed-off-by: Alexandr Plashchinsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] autoscaler.sdk.request_resources input is not validated

2 participants