Repository navigation
Pin usearch for the document upload harness, and guard its CI-only RAG imports - #16284
Merged
Merged
Conversation
…G imports #16145 added the HNSW tier and pinned usearch in studio.txt; its ANN tests import usearch unconditionally under CI. rag_upload_ci.py runs every test_rag_*.py in a venv built only from rag_upload_requirements.txt, which had no usearch, so the Uploads (macos/windows) jobs fail collection on every RAG PR. Pin it at studio.txt's version, and add a test that reads the test_rag_*.py files for imports made only under CI and requires each to be pinned there at the same version.
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Document upload compatibility(Uploads (macos-latest),Uploads (windows-latest)) has failed on every RAG PR since #16145, for example #16280 now:The workflow's run history:
perf/rag-hnsw-tier(#16145 itself),perf/r14-chat-search,dh/fix-engine-port-blocks-past-40-workersandperf/r14-rag-ingestall failed there, while theflows-*branches it ran on passed.Why
#16145 pinned
usearch==2.26.6instudio/backend/requirements/studio.txtand the studio extra. UnderCI, its ANN tests import usearch unconditionally, by design: a missing wheel wherestudio.txtwas installed is a packaging failure, not a skip.tests/studio/rag_upload_ci.pyruns everystudio/backend/tests/test_rag_*.py, but in a venv built only from its own pinnedtests/studio/rag_upload_requirements.txt, and that list never got usearch. The tests are right. The harness's requirements fell behind.Change
usearch==2.26.6intests/studio/rag_upload_requirements.txt, matchingstudio.txt.tests/studio/test_rag_upload_requirements_cover_ci_imports.py. It reads eachtest_rag_*.pyforimports made only under aCIcheck, and requires each module to be pinned inrag_upload_requirements.txtat the same version asstudio.txt. It has a control that the scan finds today'susearchimport, so the reader cannot pass by seeing nothing.Verification
['test_rag_vec_ann.py: usearch', 'test_rag_vec_cache_ann.py: usearch']. Pinning2.26.5fails withusearch: upload 2.26.5 vs studio.txt 2.26.6.tests/studio/rag_upload*, soDocument upload compatibilityruns on this PR on macOS and Windows. That run is the end-to-end check.