Skip to content

[CI] Freeze legacy journal partition receipts to reduce test work - #27559

Merged
nwparker merged 2 commits into
mainfrom
nwparker/ci-journal-partition-legacy-fixtures-20261011
Oct 11, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/ci-journal-partition-legacy-fixtures-20261011

Conversation

@nwparker

@nwparker nwparker commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Manually validated on Linux four-CPU/7-GiB environment.
  • All 15 cases passed in four ordered runs, including seven unchanged real SQL journal controls.
Warm local run Wall Waited-child CPU
Original 8.534s 9.448s
Final candidate 2.014s 2.610s

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

  • Not applicable; no upstream skill code copied.

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

  • Focused change; mechanism and rationale explained
  • Self-review and cross-platform/SSH impact considered
  • Ordinary required CI passes

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: 8f5ec630-4cfd-4ab9-aae0-4ba09c9ccf5d



📥 Commits

Reviewing files that changed from the base of the PR and between bc82eaa and 17c6cd1.




📒 Files selected for processing (1)
  • src/main/native-chat/agent-session-journal/journal-lifecycle-batch-partition.test.ts



🚧 Files skipped from review as they are similar to previous changes (1)
  • src/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; 8 remain after this review.





📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The partition tests now use the LEGACY_MIXED_PARTITIONS fixture instead of a local reference partitioner. The oversized-leading-mutation test checks expected chunks and settlement IDs directly. The seeded mixed-mutation test derives expected chunks from fixture suffixes and mutation counts.





Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 17c6c

The fixture-backed tests retain the partition checks they replace. No actionable merge-blocking risk was identified; required CI remains pending.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files.
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 identifies the main change: freezing legacy journal partition receipts to reduce test work.
Description check Passed The description covers the required sections, explains the change and rationale, documents testing and performance results, records the maintainer issue exception, and identifies the change as test-on…

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR





  • Autofix · 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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4f72db04-02a5-4db7-8dd8-7e541c771954
📥 Commits

Reviewing files that changed from the base of the PR and between a0b0328 and bc82eaa.

📒 Files selected for processing (2)
  • src/main/native-chat/agent-session-journal/journal-lifecycle-batch-partition.test-fixture.ts
  • src/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.

@nwparker
nwparker merged commit 127ab13 into main Oct 11, 2026
29 checks passed
brennanb2025 added a commit that referenced this pull request Oct 12, 2026
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.
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