Repository navigation
test: realign intake tests with the routes master now runs - #5817
Merged
Merged
Conversation
- Live page admission: give the lease-free-owner test a whole archive. The cursor-authority gate from #5657 proves raw existence over the source and index tiers, and a lone index.db was refused as retryable. - Watcher maintenance queueing: pause `LiveParseStage.warm_paths`, the batch's actual off-writer preparation since #5550, instead of the unused in-memory `warm`, and wait on events rather than 1-5 s clocks. - Dispatcher compaction cost: count the per-open derived schema identity read (#5727) separately; the page still makes exactly three authority reads on one connection. Raise its hang guard to 600 s. - Delete the flag-on/flag-off prefetch equivalence test. It drove `DaemonParseStage` and `backfill(prefetch_cache=...)`, which no production route constructs or populates; polylogue-fhlo1 owns that dead route. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
The degraded catch-up test forbade `LiveParseStage.warm`, which the batch has not called since #5550, so the guard could never fire. Record calls to `warm_paths` instead; the batch swallows a prewarm exception, so an empty call list is asserted after the page. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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. |
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
Four intake tests failed on master at 1beb2e5. Each encoded a route or contract that an earlier PR had changed. None is a production bug, so this PR changes tests only. One sibling guard that could never fire is tightened too.
Problem (evidence)
I reproduced the failures in one focused job over the four files (agentctl job 2555) and diagnosed them with probe tests that were not committed (including jobs 2635 and 2660). All four failures are deterministic, not load-related.
test_page_admission_runs_lease_free_owners_outside_the_writer_gate:admit_pagereturnedRETRYABLEwithCursorAuthorityBlockedError: ... global raw existence is unproven: required source or index tier is unavailable. The fixture created onlyindex.db. The cursor-authority gate added in fix(storage): bound live frontier admission with journals #5657 fails closed when one tier exists without the other, which is the intended behavior.test_watcher_queues_behind_daemon_maintenance_writer: the test pausedLiveParseStage.warm. The batch has called onlywarm_pathssince feat: Complete bounded intake and daemon-owned surfaces #5550, so the pause never happened andparser_started.wait(5.0)timed out.test_dispatcher_page_compaction_cost_is_one_scoped_hold_at_archive_scale: each page traced 4 SELECTs instead of 3. The fourth isSELECT identity FROM schema_identity WHERE tier = 'index', which every validated read-only open has run since fix: Codex review debt: surfaces (51 findings) #5727. The three authority reads are unchanged.test_flag_on_prefetch_and_flag_off_produce_identical_archive_content: the snapshots differ inraw_sessions,raw_revision_headsandraw_authority_parser_census.full/byte_provenraws with byte heads.converge_raw_observations, which uses the retained preparation from fix(intake): one interpretation across live and retained routes #5643) writesunknown/quarantinedraws with semantic heads.DaemonParseStageandbackfill(prefetch_cache=...). No production module has constructedDaemonParseStagesince chore: Retire the all-valid raw materialization scanner from production #5002, andRawObservationDerivation.computealways buildsRawObservationReplacement(payload=None). So production archive content never goes through the route that differs.Solution
initialize_active_archive_root, and put the source under its own root.warm_paths, the method the batch calls in_ingest_full_paths. Replace the 5 s and 1 s wall-clock waits with waits on the events themselves: anasyncio.Eventset withcall_soon_threadsafe, plus the maintenance-entered event. Afinallyreleases the parked thread. pytest-timeout bounds a hang.DaemonParseStageandLiveParseStage.warmroutes.test_page_admission_acquires_source_without_reading_unavailable_indexforbadewarm, which production never calls. The batch also swallows prewarm exceptions, so a raising stub would have passed anyway. The test now records calls towarm_pathsand asserts there were none.No production file changes, so the derived-identity closure is untouched.
Verification
agentctl job start polylogue pytest_focused --workspace /realm/worktrees/polylogue-mh-intake --wait -- tests/unit/sources/test_live_batch_convergence.py tests/unit/sources/test_live_watcher_locking.py tests/unit/daemon/test_dispatcher_intake_measurement.py tests/unit/daemon/test_raw_materialization_parse_stage_equivalence.py tests/unit/sources/test_live_watcher.py::test_page_admission_acquires_source_without_reading_unavailable_index(job 2688, head d81534d):devtools test: PASSED exit=0 diagnosis=pytest_passed, 21/21.agentctl job start polylogue verify_quick --workspace /realm/worktrees/polylogue-mh-intake --wait(job 2696, head d81534d):verify: PASSED exit=0.Self-review
tests/for patches of the unusedwarm. One other guard patched it; it is fixed here. The remainingstage.warm(...)calls intest_parse_prefetch.pyandtest_live_watcher_parse_stage_equivalence.pytest the dead classes directly and belong to polylogue-fhlo1.from schema_identity, and it asserts exactly one match, so an extra connection per page still fails the test. The authority-read assertions are unchanged.coordinator.runblocks maintenance, somaintenance_enterednever sets and pytest-timeout fails the test._source_tier_acquisition_required()gate records a call.coordinator.shutdown(timeout=1.0)after all tasks finish, which was already there, and the pytest-timeout marks.docs/design/convergence-simplification-inventory.mdstill cites the deleted equivalence test. That design note describes the dead route as a whole, so it is left to polylogue-fhlo1.Residuals
BlobPublicationReservationStore.reserve_manyatconn.close(). Sibling tests in that file use the same seeding and passed. I did not reproduce it again.tests/unit/daemon/test_daemon_cli.pyload-sensitivity did not show up in my runs, so it is not addressed here.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg