Skip to content

fix(orchestration): bring federated-worker-start back under the size cap - #36875

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-main-federated-worker-start-lines
Nov 1, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-main-federated-worker-start-lines

Conversation

@nwparker

@nwparker nwparker commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​27 $\color{#cf222e}{\Huge{\mathbf{−}}}$​15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​12

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's Lint step fails.

Recording a ready remote dispatch's resources and its remote_input_accepted stage moves, unchanged, into federated-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 --check and the ast-grep gates pass.

  • pnpm tc:node passes.

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

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

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ac85c745-eaac-4a00-9d0c-dba688b78da7
Commits

Reviewing files that changed from the base of the PR and between 7ec9a6b and 1ab884e.

Files selected for processing: 2
  • src/main/runtime/rpc/methods/orchestration/federation/federated-worker-ready-record.ts
  • src/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Walkthrough

When a remote worker receipt is ready, startFederatedWorker calls recordReadyFederatedDispatch. The new function updates the dispatch’s remote resources and records the remote_input_accepted stage with receipt data. The start function then continues to mark the worker ready and build the ready result.

Merge Risk: Minimal · up to 1ab88

Ready-worker recording moves to a helper; no actionable merge risk is evident.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: moving code to bring federated-worker-start back under the size cap.
Description check Passed The description covers the change, reason, testing, visual proof, and internal issue status. It omits several non-critical template sections, including Review, Notes, and Checklist.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

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

@nwparker
nwparker merged commit ff75f3e into main Nov 1, 2026
49 of 50 checks passed
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