Repository navigation
fix(runtime): bring runtime-identity-state back under the size cap - #36852
Conversation
#36315 added two lines to runtime-identity-state.ts, which was already at the 300-line cap, so main's Lint step fails (302 lines) and every PR based on main fails static analysis. Mobile session snapshot version stamping moves, unchanged, into mobile-session-snapshot-version.ts.
|
No actionable comments were generated in the recent review.
|
ELI5
Main's lint is failing because one file grew two lines past the 300-line limit, so every PR off main fails static analysis. This moves one small calculation out of that file.
What Changed
#36315 added two lines to
src/main/runtime/construction/runtime-identity-state.ts, which was already at the 300-line cap. It's now 302, and main'sLintstep fails.The mobile session snapshot version stamping in
storeMobileSessionSnapshotmoves, unchanged, intosrc/main/runtime/mobile-session-snapshot-version.ts(stampMobileSnapshotVersion).Why
This unblocks static analysis for every PR based on main. It's a pure move with no behavior change.
Linked Issue
N/A (internal).
Visual Proof
N/A: no behavior change.
Testing
Full-repo
oxlint(CI's Lint step) passes.pnpm tc:nodepasses.The runtime suites that cover snapshot versions and
storeMobileSessionSnapshotpass (164 tests).I manually tested these changes locally
Automated tests added/updated, or explained why not below
No tests added: it's a pure move.