Repository navigation
Tests: pin exact expectations in weak daemon and query tests - #7201
Merged
Merged
Conversation
Several tests passed whatever the code returned: substring checks on messages, existence checks, an unused result, an unbounded loop, and a check that could not tell the behaviour from its absence. - panics: the panic answer is the documented text, with the injected panic's own message between the fixed prefix and suffix. - lifecycle: each rejected service input is compared with its exact message; the accepted write's stored request is read back (id and SetSetting key); the worker-exit stdout is matched by whole line; the watchdog-budget probe test is named for what it checks. - measure: the quota result is bound and its `now` checked. - feed: the delta test counts its event lines and checks the final position equals the reader's position; the replacement test checks the final position; the archive peers test checks ref order; a comment names the Begin write. - page: the continuation's row values are compared in full, and the read context is exercised (a reader ahead opens it; one behind in either counter, or on another index file, gets stale_cursor). - query: text search for `chrono` is exactly #2 and #8; punctuation after a word is searched with a query whose answer is known (three prompts); a quoted misspelling answers empty; the ambiguity candidates are exactly the four matching sessions; fused paging has a page cap and a non-empty answer; the physical error-call partition pins its id sets; the until-instant test is named for both precision rules; the duplicate abandoned-branch test is deleted (unknowns.rs covers it); the attached list must be present, not defaulted; event rows are counted when projected and kept, and the session-less row has an explicit null. Behaviour of the product is unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UuFixtGtdh2xCEcLPgpRtf
Codex Review Summary: ❌ FailedThis 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. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
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.
Strengthens a batch of weak daemon and query tests. Product behaviour is unchanged.
Each nomination was checked against the code first. Changed: the panic answer test compares the documented text (fixed prefix and suffix, the injected panic's message between); lifecycle tests compare each rejected service input with its exact message, read back the accepted write's stored request, match the worker-exit output by whole line and rename the watchdog-budget probe test to what it checks; the measure test binds the quota answer; the feed tests count event lines, check the final position against the reader's position and check the order of the two archive peers by ref; the page test compares the continuation's row values in full and now exercises the read context (a reader ahead opens the cursor, a reader behind in either counter or on another index file gets stale_cursor, per the shared cursor binding); query tests pin the
chronosearch to exactly sessions #2 and #8, search punctuation with a query whose answer is known (three prompts), pin the quoted-misspelling answer as empty, pin the four ambiguity candidates, give the fused paging loop a page cap and a non-empty answer, pin the physical error-call id sets, require the attached list to be present, and count projected and kept event rows. The until-instant test is renamed for the rule it pins (a seconds-precision bound covers its whole second). The duplicate abandoned-branch test in generated.rs is deleted; unknowns.rs covers it.Not changed, with reasons: refusal wording in the feed envelope test and the saved-relation diagnostics (the wording is owned by the shared command-surface and query-language crates); the exists-matches and kept-matches counts (whether the logical session's rows include its continuation's error call could not be settled by reading); the unit list in the closed-set message (other units may also accept
error); the injection test's upper bound (an exact oracle per payload needs a run to confirm); the hang-up helper's bounded poll (the cancellation has no waiter to block on; a comment says so).Verified: by reading only (the host could not build), formatted with rustfmt. The hosted check is the verification. Some new exact expectations (candidate set, quoted-misspelling empty, physical total of 8, null session key, the stale_cursor code) come from reading the code and fixtures; a CI failure on one of them is a finding to settle, not an assertion to loosen.
Task: none
🤖 Generated with Claude Code
https://claude.ai/code/session_01UuFixtGtdh2xCEcLPgpRtf