[CI] Prevent accidental gql_mocks updates by test_trymerge (#160490)

As they could not longer be fetched from GitHub, see https://github.com/pytorch/pytorch/issues/160489
Pull Request resolved: https://github.com/pytorch/pytorch/pull/160490
Approved by: https://github.com/huydhn
This commit is contained in:
Nikita Shulga 2025-08-12 19:47:35 -07:00 committed by PyTorch MergeBot
parent ba47821f52
commit d0f9785af3

View File

@ -70,6 +70,9 @@ def mock_query(
if key in mocked_queries:
return mocked_queries[key]
# TODO: Remove me once https://github.com/pytorch/pytorch/issues/160489 is resolved
raise ValueError(f"Key {key} could not be found in gql_mocks")
try:
rc = fallback_function(*args)
except HTTPError as err: