Skip to content

[CI] Remove duplicate terminal backlog test replays - #27503

Merged
nwparker merged 1 commit into
mainfrom
nwparker/ci-terminal-backlog-test-replays-20261011
Oct 11, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/ci-terminal-backlog-test-replays-20261011

Conversation

@nwparker

@nwparker nwparker commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Mobile backlog tests now check the same behavior with four fewer expensive transcript replays.

What Changed

Move the existing frame-count and frame-size assertions into the same plain and colored transcript runs that already check liveness and exact byte order. Remove four repeated runs; retain every meaningful assertion and all negative controls. Only one test file changes.

Why

Each replay processes a 5 MB transcript. Reusing its real result avoids duplicate work without changing production code, fixtures, timeouts or the test framework.

Linked Issue

N/A — maintainer testing improvement.

Visual Proof

N/A — no product UI change.

Testing

  • I manually tested these changes locally
  • Automated tests updated

Linux ARM, Node 24.21, shipped Vitest 4.1.11; one worker, separate fresh caches, same source and settings:

Target command Before After
Passed cases 19 15
Wall time 4.613 s 2.489 s
CPU time 4.834 s 2.628 s

All 15 retained identities and statuses match; the four removed identities are the duplicate replays. Scoped formatting and lint passed. The existing tests-typecheck ratchet passed: 966 files checked, four intentionally excluded, existing 122-file debt unchanged.

AI Disclosure

Implemented with Codex; direct Codex agents reviewed source and measurements.

Review

Independent source review passed. Exact-head ordinary CI completed 20 checks: six successful, fourteen legitimate skips; no blocking reviews or unresolved threads.

Agent skill upstream boundary

  • Not applicable; no upstream skill source translated.

Notes

This is one ordered, focused Linux pair: 46.03% less wall time and 45.63% less CPU for this file. No whole-suite or hosted capacity claim. Normal PR CI consumed 596 assigned runner-seconds across six allocations, plus 25 queue-seconds; no failed or cancelled jobs. Measured Linux ARM only; macOS and Windows were not run. Focused tests plus formatting, lint and successful typecheck took about 29.3 s. Earlier compiler attempts cost 46.1 s: the local default heap ran out, and two disposable measurement configs needed removal. These failures are retained; no shipped typecheck settings changed.

Checklist

  • Small and focused; mechanism and reason explained
  • Visual proof N/A with reason
  • Self-reviewed; cross-platform and remote impact considered
  • Full lint/typecheck/test/build — ordinary CI will cover

@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: 8ef0b44a-6a60-4b20-bfd6-ca36b02d18f1


📥 Commits

Reviewing files that changed from the base of the PR and between 215ee3e and 053eddf.



📒 Files selected for processing (1)
  • mobile/src/mobile-web-shell/bridge-terminal-output-backlog.test.ts


💤 Files with no reviewable changes (1)
  • mobile/src/mobile-web-shell/bridge-terminal-output-backlog.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.




📝 Walkthrough
📝 Walkthrough

Walkthrough

The terminal replay test now checks that delivered output uses fewer frames than produced chunks while verifying successful, ordered delivery of all bytes. The separate test with duplicate setup and the same assertion was removed.



Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 053ed

The consolidated tests retain the checks removed from the duplicate replays. No merge-blocking issue was found; ordinary CI remains pending.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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 and concisely describes the main change: removing duplicate terminal backlog test replays.
Description check Passed The description is complete and focused. It explains the change, reason, testing results, scope, limitations, CI status, and checklist items. The maintainer-specific lack of a linked issue is explicit…

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

@nwparker
nwparker merged commit 11cf21e into main Oct 11, 2026
20 checks passed
@nwparker nwparker mentioned this pull request Oct 11, 2026
6 tasks done
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