-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[ci][lint] adding precommit semgrep check #57617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
data tests are failing? |
Signed-off-by: elliot-barn <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data team or @bveeramani should be able to help merge. otherwise, let me know.
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
elif func_name == "isin": | ||
if len(node.args) != 2: | ||
raise ValueError("is_in() expects exactly two arguments") | ||
raise ValueError("isin() expects exactly two arguments") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: PyArrow API Mismatch Causes Expression Error
The expression evaluator's change from is_in
to isin
is incorrect for PyArrow expressions. PyArrow's API uses is_in()
, not isin()
, which will cause AttributeError
at runtime when generating PyArrow expressions. This appears to be an accidental functional change that could break existing code.
adding pre commit and ci semgrep check for data test files
semgrep test for missing pytest.main in python/ray/data/tests/test_arrow_serialization.py: https://buildkite.com/ray-project/microcheck/builds/28269#0199cb94-4aab-4f48-9fad-776f90563d53
Pre commit local test test_should_fail.py
