ci(faiss): Gate the LVQ/LeanVec examples on the build, not the CPU vendor - #376
Open
ahuber21 wants to merge 1 commit into
Open
ci(faiss): Gate the LVQ/LeanVec examples on the build, not the CPU vendor#376ahuber21 wants to merge 1 commit into
ahuber21 wants to merge 1 commit into
Conversation
ahuber21
requested review from
ethanglaser,
homksei,
mihaic and
yuejiaointel
as code owners
August 25, 2026 09:18
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>
ahuber21
force-pushed
the
fix/faiss-lvq-example-gate
branch
from
August 25, 2026 09:32
763fe8a to
b932d3b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LVQ/LeanVec examples should fail on non-Intel and if lib was built from public sources only. The second part was missing, which lead to test failures on Intel runner with public sources. This PR fixes it.
Supersedes #314, which keyed off the
-public-onlyartifact name and was closed as a sporadic issue.The comment states
This is not correct. We do in fact want a failure. So all good.