chore(ci): temporarily log NVIDIA rerank basedpyright diagnostic location

This commit is contained in:
Ivan Konstantinov 2026-10-19 12:18:16 +03:00
parent 46472fcd99
commit 8f991d41cc

View file

@ -118,6 +118,17 @@ def count_basedpyright(payload: str, root: Path = REPO_ROOT) -> dict[str, int]:
f"{payload[:500]}\n"
)
raise SystemExit(1) from exc
# TEMPORARY PR #47306 diagnostics (remove after identifying the location).
for diag in data.get("generalDiagnostics", []):
if diag.get("rule") == "reportUnknownVariableType" and "nvidia_nim" in str(diag.get("file", "")):
sys.stderr.write(
"PR47306 basedpyright diagnostic: "
+ json.dumps(
{"file": diag.get("file"), "range": diag.get("range"), "message": diag.get("message")},
ensure_ascii=False,
)
+ "\\n"
)
counts: Counter[str] = Counter()
for diag in data.get("generalDiagnostics", []):
if diag.get("severity") != "error":