Skip to content

ci: ship the managed SSH server (orcad template) in hourly and daily builds - #27407

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/post-relay-nightly-orcad
Oct 11, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/post-relay-nightly-orcad

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Before: hourly-mac-build.yml and daily-mac-build.yml ran pnpm 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).
  • 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.

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

@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: 161f340b-b973-408a-b958-9bba406ce28d


📥 Commits

Reviewing files that changed from the base of the PR and between 29b0aa5 and 8c91fdf.



📒 Files selected for processing (5)
  • .github/workflows/daily-mac-build.yml
  • .github/workflows/dev-channel-win-build.yml
  • .github/workflows/hourly-mac-build.yml
  • config/scripts/dev-channel-orcad-template-workflow.test.mjs
  • config/scripts/hourly-preflight-workflow.test.mjs


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 | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
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 1 functions across 2 files. (3 skipped: 3 …
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 describes the primary change: shipping the managed SSH server package in hourly and daily builds.
Description check Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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