You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When GitHub GraphQL file-content fetch fails in _fetch_file_contents_with_base_batch, the warning log does not include the PR number. This makes it hard to identify which PR failed during validator runs.
Steps to Reproduce
Trigger fetch_file_contents_for_pr(...) for a PR with file changes.
Make execute_graphql_query(...) return None for the file-content batch query.
Check logs.
Expected Behavior
Warning should include repository and PR context, e.g.: Failed to fetch file contents for owner/repo (PR #123)
Actual Behavior
Warning only includes repository: Failed to fetch file contents for owner/repo
Description
When GitHub GraphQL file-content fetch fails in
_fetch_file_contents_with_base_batch, the warning log does not include the PR number. This makes it hard to identify which PR failed during validator runs.Steps to Reproduce
fetch_file_contents_for_pr(...)for a PR with file changes.execute_graphql_query(...)returnNonefor the file-content batch query.Expected Behavior
Warning should include repository and PR context, e.g.:
Failed to fetch file contents for owner/repo (PR #123)Actual Behavior
Warning only includes repository:
Failed to fetch file contents for owner/repoEnvironment
Additional Context
FileContentPair(None, None))Nonevs[]return-contract changes