Repository navigation
[CI] Freeze legacy journal partition receipts to reduce test work - #27559
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The fixture-backed tests retain the partition checks they replace. No actionable merge-blocking risk was identified; required CI remains pending. Pre-merge checks |
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
4f72db04-02a5-4db7-8dd8-7e541c771954
📒 Files selected for processing (2)
src/main/native-chat/agent-session-journal/journal-lifecycle-batch-partition.test-fixture.tssrc/main/native-chat/agent-session-journal/journal-lifecycle-batch-partition.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Conflict: journal-subagent-liveness.ts. Main (#27228) added `lostAt`, the time a live host saw the session end; this branch added `lost`, which narrows settlement to the entries the ended generation ran. Both now pass as one options object, and each caller names what it supplies. Merge-caused fixes: - roster-provenance test: the Claude group row helpers moved with the shared subagent tracker (#27228). - journal partition receipts (#27559): regenerated with the previous partitioner on this branch's row shape (each item row states its owner generation), which moves three chunk boundaries. - line caps after main's additions: main's hasLoadedProviders (#26473) lives on the conversations map and the host delegates to it; one wire type and two navigation requests written on one line.
ELI5
Check the same journal behavior without rebuilding slow historical expected results on every run.
What Changed
Replace the test's quadratic legacy partitioner with 48 independently captured rows containing 121 chunk boundaries. Keep identical seeded inputs, full batch comparisons, ordering, UTF-8 and recovery boundaries, and serialization limits. Production code is unchanged.
Why
Fixed historical expectations avoid repeated serialization while keeping the compatibility oracle independent of the current partitioner.
Linked Issue
N/A — maintainer CI improvement.
Visual Proof
N/A — test-only change.
Testing
Observed local reductions: 76.4% wall and 72.4% CPU. Shared caches and ordered runs limit attribution; full-root, hosted and fleet 2× improvements remain unproved.
The initial object fixture passed tests but failed lint; compact tuples preserve every captured value. First CI exposed a missing readonly callback type. The annotation correction has identical emitted JavaScript; full configured Node typecheck, format and ordinary/plugin lint now pass. Amended-head CI completed: 15 successful checks and 14 legitimate skips, including all five unit shards.
AI Disclosure
Codex implementation and independent source/result reviews.
Review
Independent source and local-result reviews passed.
Agent skill upstream boundary
Notes
First failed CI: 202 assigned runner-seconds / 5 allocations; 20 queue-seconds; units never launched. Successful amendment: 4,078 runner-seconds / 15 allocations; 62 queue-seconds. Complete two-head lifecycle: 4,280 runner-seconds / 20 allocations; 82 queue-seconds. No reruns or cancellations.
Recorded local commands: original qualification/capture 27.704s wall / 30.900s CPU; correction 23.020s / 72.308s. Prior compiler OOM: 53.958s / 118.693s; successful host compiler peaked at 11.72 GB. Shared setup/build: 18.816s separately; administrative launches 0.156s. Other administrative time is unmeasured.
Checklist