You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: drop the relay Windows process-tree job from desktop packaging - #27412
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.
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)
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 | 4 | 1
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title clearly and concisely summarizes the main change: removing the Windows relay process-tree job from desktop packaging CI.
Description check
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
relay-windows-process-tree.ymlworkflow and every place that ran it or downloaded its output:release-cut(and thebuild/build-macgates),release-mac-build,daily-/hourly-/adhoc-mac-build, and the inline addon build indev-channel-win-build.ORCA_REQUIRE_RELAY_NATIVE_ADDONSfrom every build step, includingssh-windows-hosts. Nothing on main reads it since the relay build code went away.node-server-testsWindows step that builds the same addon for the orcad template, which is the only thing that ships it.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 forconfig/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-cutstops before it tags or pushes anything.release-mac-buildgets 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:releasestopped copying.build/windows-process-treewhen #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, andnode-server-testsalready 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.mjsas 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-workflowanddev-channel-orcad-template-workflow.pnpm teston all 50config/scriptstests that read workflow files: 1042 passed.pnpm tc,pnpm lintandpnpm run check:code-quality:changedall pass.Dead-code proof:
rgforrelay-windows-process-tree(the job and artifact),ORCA_REQUIRE_RELAY_NATIVE_ADDONSand.build/windows-process-treeacrosssrc,config,.github,tests,mobileandsrc/packages. After this change the only remaining reader of.build/windows-process-treeisorcad-windows-process-tree.mjs, throughbuild:orcad, which feeds the template thatnode-server-testsbuilds for itself.build:releaseandelectron-buildernever read it. The Windows desktop addon is rebuilt and checked separately byensure-native-runtimeand the electron-builderbeforeBuildrebuild.Review
P0/P1 review by the author plus an independent reviewer. Reports are in the Phase 3.99 review folder.
Agent skill upstream boundary
Notes
Cross-platform: the Windows packaging leg (
release-cutwin,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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)