-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Fix copies main ci #29979
Fix copies main ci #29979
Conversation
f"Tried to split a class or function. It did not work. Error comes from line {start_index}: ```\n" | ||
+ "".join(lines[start_index:end_index]) | ||
f"Tried to split a class or function. It did not work. Error comes from line {start_index}: \n```\n" | ||
+ "".join(lines[start_context:end_context]) |
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.
just adding some context can help a lot!
def test_flash_attn_2_inference_padding_right(self): | ||
def test_flash_attn_2_inference_equivalence_right_padding(self): |
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.
actual fix
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.
Thank you for the fix 🙏 (Extra context is great!)
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
observed_obj_name = re_pattern.search(observed_code_header).groups()[0] | ||
except Exception: | ||
raise ValueError( | ||
"Tried to split a class or function. It did not work. Error comes from: \n```\n" |
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.
The error message is a bit confusing here. The re_pattern
is used to extract the class or function name, not to split the blocks (unlike the above one)
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.
feel free to update it. 😄
* fix copies * nit * style * Update utils/check_copies.py
* fix copies * nit * style * Update utils/check_copies.py
What does this PR do?
After #29909