Skip to content
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

Tighten the Interception strategy #48947

Merged
merged 3 commits into from
Dec 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tools/check_api_yaml_same.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,23 @@ def get_yaml_diff(branch):
if each_diff[0] == '-':
api_delete.append(each_diff)

# remove api that doesn't modify name and args
add_exclude = []
delete_exclude = []
for each_add_diff in api_add:
for each_delete_diff in api_delete:
if get_api_name(each_add_diff) == get_api_name(
each_delete_diff
) and get_api_args(each_add_diff) == get_api_args(each_delete_diff):
add_exclude.append(each_add_diff)
delete_exclude.append(each_delete_diff)

for exclude_item in add_exclude:
api_add.remove(exclude_item)
for exclude_item in delete_exclude:
api_delete.remove(exclude_item)


yaml_add = []
yaml_delete = []

Expand Down