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: ship the managed SSH server (orcad template) in hourly and daily builds - #27407
Every SSH host now runs Orca's managed server (orcad). The desktop app installs it on the host from a server package bundled inside the app. Release builds and ad hoc builds bundle that package. Hourly and daily builds did not, so on those builds Orca had nothing to install, and SSH hosts could not connect. This change makes hourly and daily builds bundle it too.
After: both workflows add an orcad-template job, the same reusable node-server-tests.yml call (with build_template: true) that release-cut and the ad hoc build use. The macOS job waits for it, downloads the orcad-template artifact into out/orcad-template after the app build, and packages with ORCA_REQUIRE_ORCAD_TEMPLATE=1. With that flag, electron-builder's beforePack/afterPack checks fail the build if the package is missing. The Windows leg receives orcad_template: true, so it downloads and requires the same artifact.
Daily only: a new resolve-main job resolves main's commit once. The server package, the Windows relay addon and the app checkout all build that exact commit. Before, each job checked out main separately. A one-commit drift was harmless for the relay addon but not for a server package that must match the app. Hourly already pins one commit in its preflight job.
Why
This copies the ad hoc workflow's wiring step for step (same reusable workflow, same download step, same guard env var), and those builds already package the server successfully, e.g. run 38116913234. I did not add the "does this ref ship a template" detection the ad hoc and release workflows have: hourly and daily always build current main, which always ships one. Draft #26451 takes a larger approach (shared compatibility detectors, Windows standalone rebuilds, settings copy). This PR is the minimal delivery fix it was waiting on.
Cost: hourly and daily runs gain the template job (historically ~10-18 minutes of extra wall time, overlapping the relay job). Hourly still skips everything when main has not moved. Daily's freshness check runs inside the mac job, so on an idle day the template job runs anyway, as the relay job already does.
Automated tests added/updated, or explained why not below
New config/scripts/dev-channel-orcad-template-workflow.test.mjs parses both workflows. For each one it checks that the template job builds the same commit as the app checkout (and as the relay job), that the mac job needs it and keeps the implicit success gate, that the download comes after Build app and before the electron-builder publish, that the publish requires the template, and that the Windows leg receives orcad_template: true. All 6 cases fail against main's workflows and pass with this change. hourly-preflight-workflow.test.mjs is updated for the new needs entry.
actionlint 1.7.12 over the changed workflows plus the called node-server-tests.yml and dev-channel-win-build.yml: no new findings. It validates the reusable-workflow inputs (ref, build_template, orcad_template). The only output is pre-existing: the custom Blacksmith runner label, and the newer background/wait step keys in node-server-tests.yml.
Dry-ran daily's new resolve-main script with a stubbed gh: it writes head_sha=<sha> for a valid SHA and fails closed with ::error::Could not resolve main for an empty answer. The real gh api repos/stablyai/orca/commits/main --jq .sha call returns the SHA as expected.
I did not dispatch hourly or daily from this branch, because both publish signed builds to the live dev channels. The next scheduled hourly after merge exercises the full path, and the ORCA_REQUIRE_ORCAD_TEMPLATE guard makes a broken wiring fail the build instead of shipping an installer without the server.
pnpm tc, oxlint, pnpm run check:code-quality:changed, pnpm lint pass.
Review
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
The template job uses read-only permissions and no secrets, like the ad hoc and release callers. Signing, environments and token minting are unchanged.
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; 6 remain after this review.
📝 Walkthrough
📝 Walkthrough
Walkthrough
The daily workflow resolves and validates the main commit SHA, then uses it for the relay build, template build, and macOS checkout. The hourly workflow builds the template from its preflight commit. Both macOS workflows download the template before packaging and require it during publishing. The hourly and daily Windows workflow calls enable the template option. New and updated tests check these workflow settings.
Priority: ➖ Normal
Merge Risk:⚪ Minimal · up to 8c91f
No actionable issue is established. The next scheduled build will exercise the full packaging path.
Pre-merge checks | 5
✅ Passed checks (5 passed)
Check name
Status
Explanation
Docstring Coverage
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 1 functions across 2 files. (3 skipped: 3 …
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 describes the primary change: shipping the managed SSH server package in hourly and daily builds.
Description check
The description is complete and directly addresses the required sections. It explains the user impact, implementation, rationale, linked issue, lack of visual changes, testing, security considerations…
✨ 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.
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 SSH host now runs Orca's managed server (orcad). The desktop app installs it on the host from a server package bundled inside the app. Release builds and ad hoc builds bundle that package. Hourly and daily builds did not, so on those builds Orca had nothing to install, and SSH hosts could not connect. This change makes hourly and daily builds bundle it too.
What Changed
hourly-mac-build.ymlanddaily-mac-build.ymlranpnpm build:release, which does not produce the server package (out/orcad-template). Packaging did not require it, so their macOS and Windows installers shipped without it. Once the SSH relay was removed (refactor(ssh): connect fails for hosts orcad can't serve; remove the relay client path #27214, refactor(relay): delete the SSH relay server, its build assets and tests #27215), connecting to any SSH host from an hourly or daily build fails, because the build carries no orcad template (hasTemplate()is false, so the host is reported as unserved and nothing falls back).orcad-templatejob, the same reusablenode-server-tests.ymlcall (withbuild_template: true) that release-cut and the ad hoc build use. The macOS job waits for it, downloads theorcad-templateartifact intoout/orcad-templateafter the app build, and packages withORCA_REQUIRE_ORCAD_TEMPLATE=1. With that flag, electron-builder's beforePack/afterPack checks fail the build if the package is missing. The Windows leg receivesorcad_template: true, so it downloads and requires the same artifact.resolve-mainjob resolves main's commit once. The server package, the Windows relay addon and the app checkout all build that exact commit. Before, each job checked outmainseparately. A one-commit drift was harmless for the relay addon but not for a server package that must match the app. Hourly already pins one commit in its preflight job.Why
This copies the ad hoc workflow's wiring step for step (same reusable workflow, same download step, same guard env var), and those builds already package the server successfully, e.g. run 38116913234. I did not add the "does this ref ship a template" detection the ad hoc and release workflows have: hourly and daily always build current main, which always ships one. Draft #26451 takes a larger approach (shared compatibility detectors, Windows standalone rebuilds, settings copy). This PR is the minimal delivery fix it was waiting on.
Cost: hourly and daily runs gain the template job (historically ~10-18 minutes of extra wall time, overlapping the relay job). Hourly still skips everything when main has not moved. Daily's freshness check runs inside the mac job, so on an idle day the template job runs anyway, as the relay job already does.
Linked Issue
Supersedes the delivery part of #26451.
Visual Proof
N/A. CI workflow change with no UI.
Testing
Automated tests added/updated, or explained why not below
New
config/scripts/dev-channel-orcad-template-workflow.test.mjsparses both workflows. For each one it checks that the template job builds the same commit as the app checkout (and as the relay job), that the mac job needs it and keeps the implicit success gate, that the download comes afterBuild appand before the electron-builder publish, that the publish requires the template, and that the Windows leg receivesorcad_template: true. All 6 cases fail against main's workflows and pass with this change.hourly-preflight-workflow.test.mjsis updated for the newneedsentry.actionlint 1.7.12 over the changed workflows plus the called
node-server-tests.ymlanddev-channel-win-build.yml: no new findings. It validates the reusable-workflow inputs (ref,build_template,orcad_template). The only output is pre-existing: the custom Blacksmith runner label, and the newerbackground/waitstep keys innode-server-tests.yml.Dry-ran daily's new
resolve-mainscript with a stubbedgh: it writeshead_sha=<sha>for a valid SHA and fails closed with::error::Could not resolve mainfor an empty answer. The realgh api repos/stablyai/orca/commits/main --jq .shacall returns the SHA as expected.I did not dispatch hourly or daily from this branch, because both publish signed builds to the live dev channels. The next scheduled hourly after merge exercises the full path, and the
ORCA_REQUIRE_ORCAD_TEMPLATEguard makes a broken wiring fail the build instead of shipping an installer without the server.pnpm tc, oxlint,pnpm run check:code-quality:changed,pnpm lintpass.Review
Agent skill upstream boundary
Notes
The template job uses read-only permissions and no secrets, like the ad hoc and release callers. Signing, environments and token minting are unchanged.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)