Repository navigation
Tests: follow the thread-list guard flag and the RAG WAL keeper - #15778
Merged
Merged
Conversation
#15685 added threadPatchGuards to the /chat/threads reply, and the account privacy test compared the whole reply to {"threads": []}; it now checks the thread list it is about. #15719 keeps one WAL keeper connection on rag.db for the life of the process, so the reachability probe test saw three to four new descriptors and failed. It now warms the keeper up before taking its baseline and requires no growth over 50 probes, which still catches a probe that leaks its connection.
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. Can't wait for the next one! 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.
Summary
(Python 3.13, a-f)fails on main and on every PR based on it (seen on the #15693 and #15761 staging runs) with two stale tests. Both product changes are intentional; the tests had not caught up.1.
test_account_chat_settings.py::test_list_export_and_delete_stay_in_the_account#15685 advertises the chat-title repair guards on the thread lists (
threadPatchGuardson the/chat/threadsreply). This test checks that another account's thread stays invisible, but compared the whole reply to{"threads": []}. It now asserts the thread list itself is empty, which is the privacy claim.2.
test_checkpoint_compaction.py::test_the_reachability_probe_closes_the_connection_it_opens#15719 keeps one WAL keeper connection per
rag.dbfor the life of the process (storage/rag_db._ensure_wal_keeper), holdingrag.dbplus its-waland-shmsidecars. The first probe in a fresh process creates it, so the test counted the keeper's descriptors as a leak. It also failed when run alone, not only under xdist.The test now probes once to warm the keeper up, takes its baseline after that, and requires no growth at all over 50 probes. That is stricter than the old
before + 1, and it is the leak the test exists for: one leaked probe connection per call.Testing
75555ccb54) and pass with this change;test_account_chat_settings.py93 passed.conn.close()inconversation_archive.reachable()with a no-op makes the probe test fail withassert 23 <= 5.