From c8733cf6005bba9d5b7ecf07f8a813ee0dfc5013 Mon Sep 17 00:00:00 2001 From: "denis.bilenko" Date: Fri, 13 Nov 2026 16:14:52 +0000 Subject: [PATCH] Fix TestPatchWheel flake: run the final pip install offline pip install checks for a newer pip against the configured index. When the package proxy answers that check with an unexpected Content-Type, pip prints a warning, and runCmd fails the test on any output. Pass --no-index (the wheel has no dependencies) and --disable-pip-version-check. Co-authored-by: Isaac --- libs/patchwheel/patch_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/patchwheel/patch_test.go b/libs/patchwheel/patch_test.go index e5a2ef97922..11cb07325a5 100644 --- a/libs/patchwheel/patch_test.go +++ b/libs/patchwheel/patch_test.go @@ -192,7 +192,8 @@ func TestPatchWheel(t *testing.T) { runCmd(t, tempDir, "uv", "pip", "install", "-q", "--no-index", "--find-links", vendoredPackages, "pip") pippath := filepath.Join(tempDir, ".venv", getPythonScriptsDir(), "pip") - runCmd(t, tempDir, pippath, "install", "-q", patchedWheel3) + // Stay offline: pip's version check queries the index, and any warning it prints fails runCmd. + runCmd(t, tempDir, pippath, "install", "-q", "--no-index", "--disable-pip-version-check", patchedWheel3) verifyVersion(t, tempDir, patchedWheel3) }) }