Skip to content

ci: drop the relay Windows process-tree job from desktop packaging - #27412

Merged
OrcaWin merged 2 commits into
mainfrom
OrcaWin/p399-0-1
Oct 11, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
OrcaWin/p399-0-1

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​58 $\color{#cf222e}{\Huge{\mathbf{−}}}$​13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​45
Prod 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​53 $\color{#cf222e}{\Huge{\mathbf{−}}}$​221 $\color{#cf222e}{\Huge{\mathbf{−}}}$​168

ELI5

Every desktop build used to start a separate Windows machine just to compile a small native file for the old SSH relay. The relay was deleted in #27215, and nothing in a desktop package uses that file any more. This removes that Windows job from every desktop build, so builds use one less Windows runner and no longer wait on it.

What Changed

  • Deleted the reusable relay-windows-process-tree.yml workflow and every place that ran it or downloaded its output: release-cut (and the build / build-mac gates), release-mac-build, daily- / hourly- / adhoc-mac-build, and the inline addon build in dev-channel-win-build.
  • Removed ORCA_REQUIRE_RELAY_NATIVE_ADDONS from every build step, including ssh-windows-hosts. Nothing on main reads it since the relay build code went away.
  • Kept the one useful check that job did: proving the compiled addon really reports a process's start time. It now runs in the node-server-tests Windows step that builds the same addon for the orcad template, which is the only thing that ships it.
  • Older code would still need the deleted job. So the four workflows that build a commit you pick (adhoc-mac-build, release-cut, release-mac-build, dev-channel-win-build) now stop right after checkout if that commit still contains the relay, with an error naming refactor(relay): delete the SSH relay server, its build assets and tests #27215. The check looks for config/tsconfig.relay.json, which exists from feat: Add SSH remote support (beta) #590 through refactor(relay): delete the SSH relay server, its build assets and tests #27215. release-cut stops before it tags or pushes anything. release-mac-build gets the check too, because it can be dispatched by hand with any tag.

For users nothing changes. Desktop packages and the orcad template contain the same files as before.

Why

Nothing reads the addon. build:release stopped copying .build/windows-process-tree when #27215 deleted the relay build code, and the env var is no longer read anywhere. The only consumer of a prebuilt Windows addon is the orcad template, and node-server-tests already builds that addon for itself. Keeping the job costs a Windows runner on every desktop build, and leaves a failure point that can block a release with no benefit.

Why the old-commit refusal: if we only dropped the job, rebuilding a relay-era commit would quietly ship a relay without its native launcher, which fails for standard users on Windows SSH hosts. Refusing that commit is safer. I picked the relay's TypeScript config as the marker, not relay-windows-process-tree-staging.mjs as the design note suggested. The staging script only appeared in #24224, but commits from #16598 onward already needed the addon. The config file covers every relay-era commit.

Accepted consequence (design critique P1-5): a patch release cut from a tag older than #27215 (1.4.223 or earlier) is refused. Those patches have to start from a newer base.

Net lines: production (workflows) −168 (+53/−221), tests +45 (+58/−13). Tests went up because of the new refusal test the design asks for.

Linked Issue

N/A (maintainer cleanup, Phase 3.99 PR 0.1)

Visual Proof

N/A. CI configuration only, no UI or app behaviour change.

Testing

  • Automated tests added/updated, or explained why not below

  • New config/scripts/relay-era-ref-refusal-workflow.test.mjs: for each of the four workflows it checks that the refusal step comes right after checkout and before tagging or building, that the sparse checkout in adhoc includes the marker, and it runs the real step script against a checkout with and without the marker.

  • Updated pins in adhoc-build-pinned-commit, hourly-preflight-workflow, release-cut-token-permissions, orcad-windows-prebuild-workflow and dev-channel-orcad-template-workflow.

  • pnpm test on all 50 config/scripts tests that read workflow files: 1042 passed. pnpm tc, pnpm lint and pnpm run check:code-quality:changed all pass.

  • Dead-code proof: rg for relay-windows-process-tree (the job and artifact), ORCA_REQUIRE_RELAY_NATIVE_ADDONS and .build/windows-process-tree across src, config, .github, tests, mobile and src/packages. After this change the only remaining reader of .build/windows-process-tree is orcad-windows-process-tree.mjs, through build:orcad, which feeds the template that node-server-tests builds for itself. build:release and electron-builder never read it. The Windows desktop addon is rebuilt and checked separately by ensure-native-runtime and the electron-builder beforeBuild rebuild.

Review

P0/P1 review by the author plus an independent reviewer. Reports are in the Phase 3.99 review folder.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Cross-platform: the Windows packaging leg (release-cut win, dev-channel-win-build) never used this output for the desktop app. Its addon comes from the electron rebuild. SSH: managed orcad hosts get the addon through the orcad template, which this PR does not change.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@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: be49039e-676a-442a-914f-a883e8012970


📥 Commits

Reviewing files that changed from the base of the PR and between 0024735 and 29007dc.



📒 Files selected for processing (15)
  • .github/workflows/adhoc-mac-build.yml
  • .github/workflows/daily-mac-build.yml
  • .github/workflows/dev-channel-win-build.yml
  • .github/workflows/hourly-mac-build.yml
  • .github/workflows/node-server-tests.yml
  • .github/workflows/relay-windows-process-tree.yml
  • .github/workflows/release-cut.yml
  • .github/workflows/release-mac-build.yml
  • .github/workflows/ssh-windows-hosts.yml
  • config/scripts/adhoc-build-pinned-commit.test.mjs
  • config/scripts/dev-channel-orcad-template-workflow.test.mjs
  • config/scripts/hourly-preflight-workflow.test.mjs
  • config/scripts/orcad-windows-prebuild-workflow.test.mjs
  • config/scripts/relay-era-ref-refusal-workflow.test.mjs
  • config/scripts/release-cut-token-permissions.test.mjs


💤 Files with no reviewable changes (7)
  • .github/workflows/ssh-windows-hosts.yml
  • config/scripts/orcad-windows-prebuild-workflow.test.mjs
  • .github/workflows/relay-windows-process-tree.yml
  • config/scripts/dev-channel-orcad-template-workflow.test.mjs
  • config/scripts/release-cut-token-permissions.test.mjs
  • .github/workflows/hourly-mac-build.yml
  • .github/workflows/daily-mac-build.yml


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




📝 Walkthrough
📝 Walkthrough

Walkthrough

The workflows remove the reusable Windows relay addon build, its artifact downloads, and the associated build requirement setting. Four workflows now reject refs that contain config/tsconfig.relay.json. The Windows template lane still builds both addon architectures and checks the x64 creation-time API. Workflow tests were updated for these changes.



Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 29007

This change removes the Windows relay addon build from desktop packaging workflows and refuses relay-era refs. No actionable merge-blocking risk was found.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (5 skipped: 5 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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 summarizes the main change: removing the Windows relay process-tree job from desktop packaging CI.
Description check Passed The description follows the required template and explains the change, rationale, affected workflows, compatibility safeguards, testing, review status, and cross-platform impact. The linked issue is m…

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (5 skipped: 5 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 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.

@OrcaWin
OrcaWin merged commit c5778f3 into main Oct 11, 2026
42 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