Skip to content

improve: speed up large transcript regression test - #109489

Merged
steipete merged 1 commit into
mainfrom
codex/test-performance-more-22
Jul 17, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-performance-more-22

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The 100k-message transcript performance test spent avoidable time constructing and parsing long per-row IDs and payload strings that do not contribute to its cardinality, bounded-read, branch-chain, or concurrent-rebuild assertions.

Why This Change Was Made

Keep the complete 100k-row parent chain and all existing read, lookup, rebuild, event-loop responsiveness, and live-write checks, while using compact IDs and constant payload text for irrelevant fixture data.

User Impact

No user-visible behavior change. The large transcript regression test completes faster without reducing its 100k-message coverage.

Evidence

  • Blacksmith Testbox tbx_01kxpshyzh4e17yv9xh4q2n8qy
  • Three-run median target time: 2.968s before, 2.563s after (13.6% faster)
  • pnpm test src/config/sessions/session-accessor.sqlite-active-events.test.ts — 8/8 passed; target 2.598s in final full-file run
  • env OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed — passed
  • Fresh autoreview — clean, no accepted/actionable findings

@steipete steipete self-assigned this Jul 17, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification for ff7e72d88fb7faa1df35807d9a6c713c4e170ebf:

  • Testbox tbx_01kxpshyzh4e17yv9xh4q2n8qy: focused benchmark and full src/config/sessions/session-accessor.sqlite-active-events.test.ts passed, 8/8 tests; final target 2.598s.
  • Median target time improved from 2.968s to 2.563s (13.6%).
  • Remote pnpm check:changed passed.
  • Fresh autoreview: clean; no accepted/actionable findings.
  • Exact-head CI run 29546834539 completed successfully (29 success, 13 expected skips, no failures).
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 109489 passed at the exact PR head.
  • Known proof gaps: none.

@steipete
steipete merged commit 510cf46 into main Jul 17, 2026
108 of 111 checks passed
@steipete
steipete deleted the codex/test-performance-more-22 branch July 17, 2026 01:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant