From 1c4c99a3ec67f6f912596947a78d57c08c6dc099 Mon Sep 17 00:00:00 2001 From: nightcityblade Date: Tue, 28 Jul 2026 11:19:52 +0800 Subject: [PATCH 1/2] Fix hnswlib stubtest allowlist on Linux --- stubs/hnswlib/@tests/stubtest_allowlist.txt | 3 --- stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 stubs/hnswlib/@tests/stubtest_allowlist.txt create mode 100644 stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt diff --git a/stubs/hnswlib/@tests/stubtest_allowlist.txt b/stubs/hnswlib/@tests/stubtest_allowlist.txt deleted file mode 100644 index c8b95d1e576d..000000000000 --- a/stubs/hnswlib/@tests/stubtest_allowlist.txt +++ /dev/null @@ -1,3 +0,0 @@ -# The metaclass of Index is pybind11_builtins.pybind11_type. Since pybind11 is not a -# runtime dependency of hnswlib, we exclude Index from stubtest checks. -hnswlib.Index diff --git a/stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt b/stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt new file mode 100644 index 000000000000..209ac6b93afd --- /dev/null +++ b/stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt @@ -0,0 +1,2 @@ +# On macOS, the metaclass of Index is pybind11_builtins.pybind11_type. +hnswlib.Index From 8e76d4e7ad95e62528e2ea2a1f5079c479678347 Mon Sep 17 00:00:00 2001 From: nightcityblade Date: Tue, 28 Jul 2026 23:15:17 +0800 Subject: [PATCH 2/2] Fix flaky hnswlib stubtest allowlist --- stubs/hnswlib/@tests/stubtest_allowlist.txt | 2 ++ stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 stubs/hnswlib/@tests/stubtest_allowlist.txt delete mode 100644 stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt diff --git a/stubs/hnswlib/@tests/stubtest_allowlist.txt b/stubs/hnswlib/@tests/stubtest_allowlist.txt new file mode 100644 index 000000000000..993627b1a950 --- /dev/null +++ b/stubs/hnswlib/@tests/stubtest_allowlist.txt @@ -0,0 +1,2 @@ +# The metaclass of Index is nondeterministically reported as pybind11_builtins.pybind11_type. +(hnswlib.Index)? diff --git a/stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt b/stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt deleted file mode 100644 index 209ac6b93afd..000000000000 --- a/stubs/hnswlib/@tests/stubtest_allowlist_darwin.txt +++ /dev/null @@ -1,2 +0,0 @@ -# On macOS, the metaclass of Index is pybind11_builtins.pybind11_type. -hnswlib.Index