Skip to content

Commit 005c7e4

Browse files
committed
Ignore different param names during verify
1 parent b5768b2 commit 005c7e4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tool/github.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ elif [ "VERIFY_BOT" = "$BOT" ] ; then
109109

110110
if [ -f "$REPORT" ]; then
111111
echo "Comparing baseline against report in $REPORT"
112-
grep "^*" "$REPORT" | sort > current_issues.tmp
112+
# Normalize the specific constructor signature to ignore parameter names.
113+
# This bridges the gap between local builds (with names) and CI builds (without names).
114+
grep "^*" "$REPORT" | sed -E 's/DartTemplateContextType\.<init>\([^)]+\)/DartTemplateContextType.<init>(args)/' | sort > current_issues.tmp
113115

114116
if [ -f "$BASELINE" ]; then
115-
NEW_ERRORS=$(comm -13 <(sort "$BASELINE") current_issues.tmp)
117+
NEW_ERRORS=$(comm -13 <(sed -E 's/DartTemplateContextType\.<init>\([^)]+\)/DartTemplateContextType.<init>(args)/' "$BASELINE" | sort) current_issues.tmp)
116118

117119
if [ -n "$NEW_ERRORS" ]; then
118120
echo -e "${RED}${BOLD}Error: New verification issues found for version $version:${NC}"

0 commit comments

Comments
 (0)