Skip to content

Conversation

@michael-johnston
Copy link
Member

Need to change the signature of the wrapper.

By default functool.wraps assigns the signature of the wrapped function to the signature metadata of the wrapper, even if the wrapper has different parameters.

ray uses this metadata when it wraps a function (ray.remote) - to determine serialisation etc. Hence if the wrapper changed parameters of the function, it will not work with ray out-of-the-box.

Need to change the signature of the wrapper.
@DRL-NextGen
Copy link
Member

Checks Summary

Last run: 2025-11-11T13:13:47.334Z

Code Risk Analyzer vulnerability scan found 2 vulnerabilities:

Severity Identifier Package Details Fix
🔷Medium CVE-2025-50181 urllib3
urllib3 redirects are not disabled when retries are disabled on PoolManager instantiationGHSA-pq67-6m6q-mj2v

urllib3:2.3.0->kubernetes:34.1.0
2.5.0
🔷Medium CVE-2025-50182 urllib3
urllib3 does not control redirects in browsers and Node.jsGHSA-48p4-8xcf-vxj5

urllib3:2.3.0->kubernetes:34.1.0
2.5.0

Copy link
Collaborator

@srikumar003 srikumar003 left a comment

Choose a reason for hiding this comment

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

I have run this branch against a custom_experiment and verified that the experiment is executed with these changes

LGTM

@srikumar003 srikumar003 added this pull request to the merge queue Nov 11, 2025
Merged via the queue into main with commit ed6189d Nov 11, 2025
18 checks passed
@srikumar003 srikumar003 deleted the maj_decorator_signature branch November 11, 2025 13:53
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.

4 participants