Repository navigation
Studio tests: skip rag_conn where this Python's sqlite3 cannot load extensions - #15862
Merged
danielhanchen merged 1 commit intoOct 28, 2026
Merged
Conversation
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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
danielhanchen
deleted the
tests-rag-conn-skips-without-extension-loading
branch
October 28, 2026 22:53
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.
The
macos-15cross-platform leg on #15859 ranstudio/backend/tests/test_rag_store.py, because that PR changes it, and got4 passed, 24 errors:#15859 is not at fault here. Every one of the 24 errors is in the
rag_connfixture.Cause
The Python on the macOS runner has a
sqlite3built without loadable-extension support:sqlite3.Connectionhas noenable_load_extensionat all. On such an interpreter RAG can never load sqlite-vec. The product handles that:get_connectionraisesRagExtensionUnavailableand Studio reports RAG as unavailable.The RAG tests that open a connection themselves already skip on exactly this condition (
test_rag_wal_keeper.py,test_rag_delete_document_scan.py,test_account_storage.py,test_rag_unavailable_quiet.py):The shared
rag_connfixture instudio/backend/tests/conftest.pydid not. So any of the 17 files built on it errors on that leg as soon as a PR touches it.Fix
rag_connskips on the same condition before opening the connection. Nothing else changes. On an interpreter that can load extensions, a sqlite-vec that fails to load still raises out of the fixture, so a real breakage is not turned into a skip.Verification
To reproduce on Linux, a pytest plugin stands in for that interpreter:
sqlite3.Connectionwithoutenable_load_extension, and connections that raiseAttributeErrorfor it.06314b97ddtest_rag_store.py, normaltest_rag_store.py, no-extension interpretertest_rag_store.py, extension loading works butsqlite_vec.loadraisesrag_conn, normal,-n 8Not covered here
rag_connis the shared fixture, but many RAG tests reachrag_db.get_connection()through the ingest and upload paths instead. Under the same simulated interpreter, about 25 other files still fail, among themtest_rag_ingestion.py,test_rag_upload_formats.py,test_rag_linked_folders.pyandtest_rag_embedding_identity.py. The simulation overstates this a little: module-levelskipifs are evaluated before the plugin patchessqlite3.Those files would fail on the macOS leg only when a PR changes them. The cleaner end state is a macOS leg whose Python can load sqlite extensions, rather than skipping RAG coverage there. That is a separate change to the harness.