Repository navigation
Cut CI time in store, Git contention and readiness tests - #25147
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe copying oracle now builds snapshots directly from its maps and deep-freezes them. The in-place tests remove per-mutation oracle state validation and add checks for tombstone expiry and count overflow. The Git admission tests add FIFO-gated contention checks and an opt-in measurement fixture. Two Antigravity transcript tests use the scoped timer harness. Documentation records test changes, hosted measurements, and fault controls. Production code is unchanged. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This change rewrites test coverage for the agent status store, Git admission contention, and transcript readiness to make it faster and more deterministic. Production behavior is unchanged. No concrete merge-blocking risk was found. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 5 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Independent oracle snapshot —
createCopyingAgentStatusStoreOracle().getSnapshot()now projects the validated maps directly instead of round-tripping throughsnapshotFromAgentStatusStoreState/parseAgentStatusStoreSnapshot, so a production parser that drops a field surfaces as a store-vs-oracle mismatch.applyMutationstill validates the maps per accepted mutation, so the oracle stays validated. - Dropped redundant validation — the randomized test's per-step
validateAgentStatusStoreState(oracle.state())was already covered by the oracle's own post-apply validation. - Real retention-boundary fixtures — the old 5,000-step fixture hit the 1,024 tombstone count cap long before the 4,096-revision age boundary. Two focused fixtures now assert exact tombstone sets at rev 4,096/4,097/4,098 and at count overflow, each cross-checked against the oracle.
- Docs —
docs/reference/ci-runner-efficiency.mdrecords the mechanism and the ARM measurement.
I read compactTombstones, the draft-table insertion/iteration order, and the commit path, and confirmed both new expected tombstone lists match the production compaction semantics. Ran the focused suite: 8 passed (~13.8s).
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the delta since the prior pullfrog review (d3281f2): the Git admission storm test was rebuilt around a gated real-child fixture, and the two remaining Antigravity transcript waits moved onto the scoped timer harness.
- Gated real-child contention test — the default
git admission stormtest now saturates the realGENERAL_CAP/GENERAL_HEADROOMbudgets with FIFO-gated stub children, queues older background and newer interactive work, releases base slots, and asserts exactstub:<args>outputs, interactive priority, grant/release parity, full queue drain, and budget zeroing. The disabled/enabled timing benchmark moved behindORCA_GIT_ADMISSION_STORM_MEASUREMENT=1. - Fixture extraction — the measurement harness moved to
git-admission-storm-test-fixture.ts;assertAdmissionLedgernow takes only the event/snapshot fields it reads. - Scoped readiness clocks — two Antigravity refusal/repaint tests replaced real 5,000ms
waitForTerminalwaits with the existingwaitForTranscriptIdlefake-timer harness after draining the emulator. - Docs —
ci-runner-efficiency.mdrecords both mechanisms and their ARM measurements.
I traced the new contention test against GitAdmissionScheduler and GitAdmissionWaiterQueue: with now: () => 0 aging is disabled, so the GENERAL_CAP + 4 backlog, the headroom/queue counts, and the interactive-before-background ordering follow directly from the tier lanes. The POSIX resolveCommand passthrough and the release-after-capture timing also line up with the assertions. The extracted fixture is not matched by the unit include glob, and the imported-afterEach pattern has precedent in the repo. No production code changed.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

ELI5
Three CI test suites finish sooner while preserving their useful checks. Hosted median invocations fell from 33.5 to 13.8 seconds for the store, 26.6 to 1.0 seconds for Git contention, and 27.5 to 13.9 seconds for readiness.
What Changed
Keep all store seeds and mutations, remove duplicate oracle validation, project snapshots independently, and check actual expiry/count boundaries. Replace the default Git diagnostic workload with FIFO-gated real-child contention; keep the full benchmark opt-in. Reuse the existing scoped timer harness for two remaining transcript refusal windows, preserving all 60 readiness tests.
Why
The old store fixture missed its age boundary and shared a parser that hid a dropped-description bug. The Git benchmark spent time on an unasserted disabled arm, while readiness tests waited on wall time despite an existing clock harness. Focused behavior checks save runner capacity; keeping these measured test-only changes together avoids a separate full-suite CI run for each fixture.
Linked Issue
N/A — internal CI optimization.
Visual Proof
N/A — test support only; application behavior is unchanged.
Testing
Review
Production code, seed counts, mutation schedules and transcripts remain unchanged. Store/readiness logic is portable; the Git fixture retains its existing POSIX scope, with unchanged Windows real-Git parity coverage. New gated cleanup drains children before removing fixtures.
Agent skill upstream boundary
Checklist