Repository navigation
fix(orchestration): bring federated-worker-start back under the size cap - #36875
Conversation
#36653 added five lines to federated-worker-start.ts, which was already near the 300-line cap, so main's Lint step fails (305 lines) and every PR based on main fails static analysis. Recording a ready remote dispatch's resources and its input-accepted stage moves, unchanged, into federated-worker-ready-record.ts.
|
No actionable comments were generated in the recent review.
|
ELI5
Main's lint is failing again because one file grew past the 300-line limit, so every PR off main fails static analysis. This moves one small, self-contained block out of that file.
What Changed
#36653 added five lines to
src/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.ts. It's now 305 lines, and main'sLintstep fails.Recording a ready remote dispatch's resources and its
remote_input_acceptedstage moves, unchanged, intofederated-worker-ready-record.ts(recordReadyFederatedDispatch).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),oxfmt --checkand the ast-grep gates pass.pnpm tc:nodepasses.The orchestration RPC suites pass (1,121 tests), including the federated worker-start and receipt tests.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
No tests added: it's a pure move.