Skip to content

fix: ship managed SSH server in hourly and daily builds - #26451

Closed
brennanb2025 wants to merge 1 commit into
mainfrom
brennanb2025/ssh-chat-orcad-template-everywhere
Closed

brennanb2025 wants to merge 1 commit into
mainfrom
brennanb2025/ssh-chat-orcad-template-everywhere

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Hourly and daily builds left out the server package Orca installs on SSH machines. Those builds therefore stayed on terminal chat even when structured chat was enabled. They now ship the tested server package, and the Experimental setting correctly says managed SSH supports structured chat while WSL uses terminal chat.

What Changed

  • Hourly and daily macOS builds reuse the ad hoc build's compatibility detector and node-server-tests.yml with build_template: true. Packaging downloads the template after the app build and requires it through the existing before/after packaging checks. Failed qualification or missing artifacts cannot produce a package that silently falls back to terminal chat.
  • Daily builds resolve one main commit in the existing hourly preflight pattern. The relay, server template, macOS app and Windows app all build that commit; unchanged main skips these jobs.
  • Their Windows jobs reuse the same template. A standalone Windows rebuild builds a template for its requested commit by default. Historical commits that predate template support keep the ad hoc workflow's explicit compatibility path.
  • Corrected the existing setting description in English, Spanish, French, Japanese, Korean and Chinese. No new controls or notices were added.

Why

The missing package prevented the existing managed SSH path from reaching users between releases. Reusing the tested template builder and packaging guards fixes delivery at its source; adding structured chat to the legacy relay would create another execution path. New template jobs have read-only permissions, no signing environment or inherited secrets; existing action versions, signing environments and ref validation are preserved.

Compared with the common pattern:

  • Intended: the desktop carries the server JavaScript and each supported host's native files, then uploads a versioned package over SSH. This uses Orca's existing authenticated deployment and checksum checks rather than introducing another host-side installer.
  • Intended: this change retains Orca's existing detached server lifetime and connect-time deployment. Packaging qualification establishes usable artifacts; it does not change execution ownership, server lifetime or the remote protocol.

Measured cost from the three latest successful ad hoc builds:

Run Template path, including queue gaps Additional wait beyond the existing relay job Summed template runner time
37727767580 14m41s 10m23s 37m20s
37724295541 19m20s 16m03s 40m47s
37716971920 23m11s 18m47s 41m36s

The observed median added wait is 16m03s because template qualification overlaps the existing relay build. This is a historical estimate for the reused job graph, not a timing of the changed scheduled workflows. Windows calls reuse the completed artifact; standalone Windows dispatch pays the template cost itself. Unchanged main avoids the cost.

Downloaded run 37727767580's template and checked all 90 manifest-listed files against their SHA-256 digests. The complete template contains 72,205,292 bytes (68.86 MiB), the added installed-app payload before signing, including nine host targets. The compressed Actions artifact is 27,681,346 bytes (26.40 MiB). Installer compression and macOS signing overhead were not measured, so the artifact size is not presented as an installer-size delta.

Linked Issue

Fixes the missing-template and stale settings-description findings from the managed SSH structured-chat investigation; no existing issue was supplied.

Visual Proof

The existing Experimental setting description changed. Its rendered component test passes; full-app before/after screenshots are pending the coordinator's hidden Electron QA. This remains a draft for that review and QA.

Testing

  • Automated tests added/updated.
  • Full-app manual verification, scheduled build execution and installer measurement remain unverified.

Passed on macOS:

  • 167 tests across nine explicit files: new template workflow tests, hourly/daily preflight tests, ad hoc commit pinning, Windows ref reachability and casing, dependency download/cache contracts, Windows prebuild workflow, server concurrency, and ExperimentalPane.test.tsx.
  • The 26 new template workflow tests fail against the original main workflows and pass with this change. They execute the actual job conditions and compatibility detector, covering failures, cancellation, deliberate legacy skips, artifact reuse and required-template packaging guards.
  • Renderer typecheck through tc-gate.
  • Actionlint 1.7.12 with the existing custom macOS runner label declared in a local configuration; optional shellcheck/pyflakes integrations disabled. Detector and freshness shell scripts were executed by the tests.
  • Localization catalog, extraction and coverage checks.

orca-ci-checks --no-typecheck: 22/22 checks passed after the queued renderer typecheck. Final-head GitHub CI completed: all 10 unit shards, relay integration, static analysis/typecheck, Linux packaging, both release-ref validators, repository guards and advisory unit-selection evidence passed.

Two red checks are main's existing failure, with no new L2 failures identified:

  • Windows packaging fails the unchanged profile-state-writer-stall.electron.test.ts with profile-state-writer-timeout. The earlier independent run has the identical test, assertion and bundled stack locations. This PR changes none of that test's writer, fixture, launcher or workflow execution sources.
  • Aggregate verify reports package_windows: expected success, got failure from that same failure.

Headless-server qualification/template jobs were skipped because the PR is a draft; unrelated specialized jobs were excluded by the path filters. Skips are not qualification or test passes. The required fail-fast checks watch was followed by a blocking run watch to wait for all remaining jobs; a transient local socket error required resuming that watch.

No release, publishing, hourly, daily or ad hoc workflow was dispatched. The ad hoc build publishes signed artifacts with existing release credentials, so validation used its historical job evidence plus workflow parsing and executed condition tests. This lane fixes package delivery; the separate managed-server launch and lifecycle fixes still require integrated SSH QA.

Review

Draft for coordinator review and integrated QA.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer code or content is copied.

Notes

macOS and Windows ship the full Linux/macOS/Windows server target matrix. The remote protocol, folder/worktree handling and WSL execution behavior do not change.

Checklist

  • This PR is small and focused.
  • Explained the problem, user-facing change, mechanism and choice of approach.
  • Full-app before/after screenshots attached.
  • Self-reviewed for correctness, security and performance.
  • Cross-platform, SSH/remote and compatibility considered.
  • All GitHub checks finished and classified; the two baseline reds above remain.

@OrcaWin

OrcaWin commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Status note: with the legacy SSH relay removed (#27214, #27215), the managed server is now the only way SSH hosts run, and hourly/daily workflows on main still don't build or require the server template (pnpm build:release has no build:orcad-template step). So this matters more now than when it was opened; it needs a rebase onto current main.

@OrcaWin

OrcaWin commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

The minimal delivery fix landed in #27407 (cc5c85f): hourly and daily builds now build the orcad template with the same node-server-tests.yml call as release-cut and the ad hoc build, download it after Build app, package with ORCA_REQUIRE_ORCAD_TEMPLATE=1, and pass orcad_template: true to the Windows leg. Daily now pins one main commit for every job. The rest of this draft (shared compatibility detectors, standalone Windows rebuild defaults, settings copy) is not covered by that change.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Closing: not shipping the managed SSH server in the hourly and daily builds.

@brennanb2025
brennanb2025 deleted the brennanb2025/ssh-chat-orcad-template-everywhere branch October 14, 2026 22:10
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.

2 participants