Fix an error in verify_tp_plan for keys without '.' (#38420)

This commit is contained in:
Koki Ryu 2025-05-28 16:30:43 +09:00 committed by GitHub
parent b1eae943a2
commit a974e3b4e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -900,7 +900,7 @@ def verify_tp_plan(expected_keys: list[str], tp_plan: Optional[dict[str, str]]):
unused_rules = tp_plan
for key in generic_keys:
param_name, _ = key.rsplit(".", 1) if "." in key else key
param_name = key.rsplit(".", 1)[0] if "." in key else key
generic_param_name = re.sub(r"\d+", "*", param_name)
if generic_param_name in tp_plan: