Skip to content

skip LVQ/LeanVec examples in public-only integration tests - #314

Closed
yuejiaointel wants to merge 1 commit into
mainfrom
fix/skip-lvq-examples-public-only
Closed

skip LVQ/LeanVec examples in public-only integration tests#314
yuejiaointel wants to merge 1 commit into
mainfrom
fix/skip-lvq-examples-public-only

Conversation

@yuejiaointel

@yuejiaointel yuejiaointel commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Skip FAISS LVQ/LeanVec C++ and Python examples in integration tests when the library is built without LVQ support (public-only and IVF builds)
  • The examples crash with "storage kind not compatible" because LVQ isn't available in those builds

The public-only and IVF builds don't include LVQ/LeanVec support,
so the FAISS LVQ/LeanVec examples crash with "storage kind not
compatible". Skip them based on SUFFIX.
@yuejiaointel

Copy link
Copy Markdown
Contributor Author

seems like a sporadic issue, no need to fix

@ethanglaser

Copy link
Copy Markdown
Member

To clarify - this does need to be fixed, but because a rerun usually resolves it hasn't been addressed as urgently. But the solution is not to skip the runs - we should be supporting clean fallback on non-Intel hardware and that's what these tests are validating

ahuber21 added a commit that referenced this pull request Aug 25, 2026
The faiss LVQ/LeanVec tutorials carry no capability gate, so they only run
successfully with an LVQ/LeanVec-enabled runtime on Intel hardware.
test-faiss.sh inferred that from the CPU vendor alone, which is wrong for the
public-only build: the formats are compiled out there, so the examples abort on
every runner and that leg was green only when GitHub allocated a non-Intel one.

Derive the expectation from ENABLE_LVQ_LEANVEC as well, plumbed into the test
job from the same value the artifact was built with, and name the actual reason
in the log. The examples still run in that case and must still fail, but now
they have to fail with the runtime's storage-kind rejection: a bare nonzero exit
also covers a missing library or a segfault, which is not what is under test.

Supersedes #314, which keyed off the -public-only artifact name.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants