Skip to content

Cut CI time in store, Git contention and readiness tests - #25147

Merged
nwparker merged 2 commits into
mainfrom
nwparker/ci-store-oracle-20261004
Oct 4, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/ci-store-oracle-20261004

Conversation

@nwparker

@nwparker nwparker commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Local alternating before/after measurements and focused tests passed.
  • Automated tests updated.
  • Three alternating one-worker hosted ARM pairs: baseline 33.551 / 33.304 / 33.529s; candidate 13.848 / 13.816 / 13.875s, with eight candidate tests passing.
  • Hosted Node typecheck passed. Five separate fault controls failed the intended assertion: early/late/disabled expiry, disabled overflow, and a dropped snapshot description. Measurement run.
  • Three hosted Git pairs: 26.619 / 26.635 / 26.582s to 1.017 / 1.018 / 1.016s. Three hosted readiness pairs: 27.347 / 27.910 / 27.550s to 13.855 / 13.894 / 13.800s, all 60 tests passing. Measurement run.
  • Three scheduler faults fail the intended assertions; both preserved opt-in diagnostic tests pass. Two transcript input faults fail the original rejection/readiness assertions.
  • Required PR checks will verify the final head. The measurements cover this suite, not whole-shard duration or queue delay.

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

  • Not applicable; no upstream skill source is copied.

Checklist

  • This PR is small and focused.
  • I explained what changed and why.
  • N/A visual proof has a reason.
  • Self-reviewed for correctness and performance.
  • Cross-platform and SSH impact considered: test support only.
  • Focused tests, lint, format and hosted Node typecheck passed; CI covers required checks.

@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 93071542-56ce-4bc6-9f58-c32396a60336
📥 Commits

Reviewing files that changed from the base of the PR and between d3281f2 and f4f8f37.

📒 Files selected for processing (4)
  • docs/reference/ci-runner-efficiency.md
  • src/main/git/command-runner/git-admission-storm-measurement.test.ts
  • src/main/git/command-runner/git-admission-storm-test-fixture.ts
  • src/main/runtime/antigravity-screen-readiness-transcripts.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/reference/ci-runner-efficiency.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The 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 f4f8f

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the CI time reductions across the store, Git contention, and readiness tests.
Description check ✅ Passed The description covers the required sections, explains the changes and reasons, and provides focused test results and platform considerations. The linked-issue section appropriately states that this i…
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Independent oracle snapshot — createCopyingAgentStatusStoreOracle().getSnapshot() now projects the validated maps directly instead of round-tripping through snapshotFromAgentStatusStoreState/parseAgentStatusStoreSnapshot, so a production parser that drops a field surfaces as a store-vs-oracle mismatch. applyMutation still 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.md records 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).

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker nwparker changed the title Speed up the store oracle and check actual retention boundaries Cut CI time in store, Git contention and readiness tests Oct 4, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 storm test now saturates the real GENERAL_CAP/GENERAL_HEADROOM budgets with FIFO-gated stub children, queues older background and newer interactive work, releases base slots, and asserts exact stub:<args> outputs, interactive priority, grant/release parity, full queue drain, and budget zeroing. The disabled/enabled timing benchmark moved behind ORCA_GIT_ADMISSION_STORM_MEASUREMENT=1.
  • Fixture extraction — the measurement harness moved to git-admission-storm-test-fixture.ts; assertAdmissionLedger now takes only the event/snapshot fields it reads.
  • Scoped readiness clocks — two Antigravity refusal/repaint tests replaced real 5,000ms waitForTerminal waits with the existing waitForTranscriptIdle fake-timer harness after draining the emulator.
  • Docs — ci-runner-efficiency.md records 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.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit d5bb69d into main Oct 4, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant