Skip to content

fix(managed-server): keep the tunnel manager under its line limit (fix red main lint) - #30933

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-main-tunnel-manager-max-lines
Oct 20, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-main-tunnel-manager-max-lines

Conversation

@nwparker

@nwparker nwparker commented Oct 20, 2026 •

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

ELI5

Two fixes to the managed SSH tunnel (#30888 and #30891) each passed CI on their own, but together they pushed orcad-managed-tunnel-manager.ts one line over the file-length lint limit. main now fails lint, and so does every PR that runs the static job. This moves one self-contained check out of that file so lint passes again. Behaviour doesn't change.

What Changed

  • Before: pnpm lint on main reports orcad-managed-tunnel-manager.ts: File has too many lines (301).
  • After: the check that a tunnel build is still for the same pairing (runtime id, pairing revision, and permitted SSH tunnel access) is now managedTunnelStillPaired in orcad-managed-tunnel-active.ts, next to managedTunnelAccess, which it already wrapped. The build's stillOwned keeps its generation checks and calls it.

Why

The predicate is pure and belongs with the access check it extends. Raising the limit or disabling the rule isn't allowed.

Testing

  • pnpm tc:node: clean.
  • oxlint on both files: clean.
  • pnpm test src/main/managed-server/lifecycle/: 24 files, 296 tests pass.

#30888 and #30891 crossed

The build's same-pairing check moves next to managedTunnelAccess, which it already wraps.
@coderabbitai

coderabbitai Bot commented Oct 20, 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: 15bb846c-1c8f-488e-b551-6d426b72edf5
📥 Commits

Reviewing files that changed from the base of the PR and between 6f96efb and 2758e40.

📒 Files selected for processing: 2
  • src/main/managed-server/lifecycle/orcad-managed-tunnel-active.ts
  • src/main/managed-server/lifecycle/orcad-managed-tunnel-manager.ts

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

📝 Walkthrough

The change adds managedTunnelStillPaired to check environment runtime and pairing identity, including the creation-time fallback, and verify expected managed SSH tunnel access. The managed tunnel manager uses this helper for pairing validation and retains its manager-generation and ownership-generation checks.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 2758e

The tunnel pairing check retains its validity checks, with no identified issue requiring a fix before merge.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the problem, change, rationale, and testing. It does not provide the required Linked Issue entry, Visual Proof status, review details, or checklist completion. Add an actual issue link under Linked Issue. For this non-UI change, add N/A with a brief reason under Visual Proof. Complete the Review, Notes, Agent skill upstream boundary, and Checklist sections, or explain why each item does not appl…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the managed-server tunnel manager line-limit fix and the resulting lint issue.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files.
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: Description check

Resolution

Add an actual issue link under Linked Issue. For this non-UI change, add N/A with a brief reason under Visual Proof. Complete the Review, Notes, Agent skill upstream boundary, and Checklist sections, or explain why each item does not apply.

  • Fix all pre-merge checks with AI
✨ 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 c9e7147 into main Oct 20, 2026
51 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