Skip to content

Commit c48f0d4

Browse files
committed
prod
Signed-off-by: Pablo Garay <[email protected]>
1 parent 32d845c commit c48f0d4

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

scripts/check_api_backwards_compatibility.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_object_path(change) -> str:
153153
return None
154154

155155

156-
def should_skip_change(change, filtered_paths: set, debug=False) -> bool:
156+
def should_skip_change(change, filtered_paths: set) -> bool:
157157
"""Check if a breaking change should be skipped based on filters."""
158158
path = get_object_path(change)
159159
if not path:
@@ -163,35 +163,19 @@ def should_skip_change(change, filtered_paths: set, debug=False) -> bool:
163163
# e.g., "Class.__init__(param)" -> "Class.__init__"
164164
clean_path = path.split('(')[0] if '(' in path else path
165165

166-
# Debug specific paths
167-
if debug and ('ModelParallelConfig' in path or 'DistributedDataParallel' in path):
168-
print(f"\n 🔍 DEBUG matching:", file=sys.stderr)
169-
print(f" Original path: {path}", file=sys.stderr)
170-
print(f" Clean path: {clean_path}", file=sys.stderr)
171-
print(f" Filtered paths: {filtered_paths}", file=sys.stderr)
172-
173166
# Check exact match
174167
if clean_path in filtered_paths or path in filtered_paths:
175-
if debug and ('ModelParallelConfig' in path or 'DistributedDataParallel' in path):
176-
print(f" ✓ EXACT MATCH!", file=sys.stderr)
177168
return True
178169

179170
# Check if it's a child of a filtered object
180171
# e.g., MyClass.__init__ is child of MyClass, MyClass.attr is child of MyClass
181172
for filtered_path in filtered_paths:
182173
if clean_path.startswith(filtered_path + '.'):
183-
if debug and ('ModelParallelConfig' in path or 'DistributedDataParallel' in path):
184-
print(f" ✓ CHILD MATCH with: {filtered_path}", file=sys.stderr)
185174
return True
186175
# Also check the original path in case parameter names matter
187176
if path.startswith(filtered_path + '.'):
188-
if debug and ('ModelParallelConfig' in path or 'DistributedDataParallel' in path):
189-
print(f" ✓ CHILD MATCH (orig) with: {filtered_path}", file=sys.stderr)
190177
return True
191178

192-
if debug and ('ModelParallelConfig' in path or 'DistributedDataParallel' in path):
193-
print(f" ✗ NO MATCH", file=sys.stderr)
194-
195179
return False
196180

197181

0 commit comments

Comments
 (0)