Skip to content

ci: the manual switch-on leg runs the headless server specs - #31108

Merged
Jinwoo-H merged 3 commits into
mainfrom
fd/h4-switch-on-headless-leg
Oct 20, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
fd/h4-switch-on-headless-leg

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

There is a manual test run that builds Orca with the new "main owns the layout" setting turned on. Until now it never covered the headless server specs: orca serve and the managed server running with no desktop window. This PR adds them to that run, so the switch-on build gets checked where it matters most.

What Changed

.github/workflows/layout-owner-e2e.yml: the switch-on leg's test_files gains 16 specs:

  • headless-serve-* (7)
  • headless-paired-remote-terminal-* (4; stall-recovery is @headful and runs under Xvfb in CI)
  • paired-mobile-serve-restart-terminal-tabs
  • layout-compat-old-phone-on-new-server
  • layout-compat-serve-restart-keeps-at-at-terminals
  • paired-mobile-desktop-tab-composition (the server workspace's tab strip with the window closed)
  • paired-remote-terminal-serve-restart-binding (orca serve restart)

orcad-serve-mode-switch is left out on purpose. Naming it would also start the Windows serve job, which builds a switch-off app and template, at about 45 runner-minutes per dispatch. The Linux orcad job already runs on a switch-on server for the headless oracle.

The paths are exact files: the changed-spec job runs grep on each entry, so only the managed-SSH job accepts the ssh-orcad- prefix.

The leg stays manual (dispatch only). No trigger, job or PR selection changes. It relies on #31097 (merged), which makes that leg's server template switch-on.

Why

The layout-owner work makes main the only layout writer with or without a window, and headless servers are the primary target. The switch-on leg already covered desktop specs and the Docker managed-SSH lane. Without these specs, a switch-on regression on orca serve would only show up after the flip.

Linked Issue

Terminal-layout final design, track H (H4). No issue.

Visual Proof

N/A. This changes a manual CI workflow only.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

I ran the specs locally on macOS, hidden, with --workers=2, using switch-on builds of the app, out/orcad and the template:

  • Headless serve, paired-host and serve-restart specs: 15 of the 17 tests pass with the switch on. The other two are the layout-compat specs, which stop at "no darwin baseline": baselines exist for Linux only.
    • old-phone-on-new-server: the darwin observations with the switch on and off are identical.
    • serve-restart-keeps-@@-terminals: with the switch off, it fails earlier on macOS at its activeTab check. With that check bypassed locally, the switch-off and switch-on observations are identical.
    • Their remaining difference from the Linux baselines (titles after restart, the empty list after restart) is a platform difference, not a switch difference. The spec's own comment notes the macOS case.
  • The two paired specs: with the switch on, paired-mobile-desktop-tab-composition and the automation-run test of paired-remote-terminal-serve-restart-binding pass. "retains a verified mirrored PTY binding through a serve restart pending snapshot" fails on macOS 2 of 2 with the switch on and 2 of 2 with it off, on the same commit (the restarted shell's output check), so it is not caused by the switch.
  • workspace-layout-oracle-headless, all 18 scenarios: pass on both the orcad and Electron hosts with the switch on.
  • orcad-serve-mode-switch (not added): "a terminal survives Electron → orcad → Electron" fails the same way with the switch on and off on macOS (daemon pid). The other test passes.
  • orcad-serve-open-url-on-desktop: not added. It fails with the switch on and off alike, because it expects browser_host_unavailable while the host answers desktop_browser_bridge_unavailable. That is a stale spec on main.
  • pr-workflow-parallelism.test.mjs (the manual-only trigger check) passes, and so do actionlint and check:code-quality:changed.

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

CI-only; the change applies only when the leg is dispatched. It adds about 10–15 minutes to the leg's changed-spec job; the dispatch run at this head measures it against the 45-minute limit.

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)

First dispatch (run 39420581827, head 693e97b)

  • The changed-spec job took 30m45s of its 45-minute limit: 99 passed and 2 failed.
  • Build, the Linux orcad mode-switch job and both Docker managed-SSH shards passed on the switch-on server.
  • Failure 1: layout-compat-old-phone-on-new-server. This is a stale baseline. It also fails with the switch off on Linux (run 39424947430), and the only difference is customTitle, which fix(remote): make the host's tab name the one source for CLI and desktop renames #30037 added. test(e2e): the old-phone layout baseline lists customTitle on terminal rows #31127 fixes it.
  • Failure 2: paired-remote-terminal-serve-restart-binding › "pending snapshot". It passes with the switch off on Linux (run 39424947430) and fails with the switch on: "never received the replacement host pending-handle frame". That makes it a switch-on bug in the frames/reconnect area, handed to that track. It is a finding for the flip gate, not a problem with this workflow change.

E2E Test added 2 commits October 20, 2026 07:23
… serve-restart specs

With H1's switch-on server template, these exercise main as the layout owner with no window.
Spec paths are exact: the changed-spec job greps each file, so prefixes only work for ssh-orcad-.
@Jinwoo-H
Jinwoo-H force-pushed the fd/h4-switch-on-headless-leg branch from 9e3fc1a to 469e3e5 Compare October 20, 2026 11:23
@Jinwoo-H
Jinwoo-H changed the base branch from fd/h1-orcad-dark-template to main October 20, 2026 11:23
@coderabbitai

coderabbitai Bot commented Oct 20, 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: 71c66a7c-02bb-4e68-b4f7-4d100e3ce7a0
📥 Commits

Reviewing files that changed from the base of the PR and between 4440641 and 469e3e5.

📒 Files selected for processing: 1
  • .github/workflows/layout-owner-e2e.yml

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

📝 Walkthrough

The layout-owner E2E workflow now runs 40 test files instead of 26. The added suites cover terminal, layout, headless serve, mobile, compatibility, and SSH scenarios. Other workflow settings remain unchanged.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 469e3

The expanded E2E coverage introduces no identified merge-blocking risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description is detailed and covers the change, rationale, testing, failures, scope, and checklist. However, the required Linked Issue section is incomplete: it states “No issue” and leaves “Fixes … Add a valid linked issue in the Linked Issue section. If the author is a maintainer and the exception applies, identify the relevant pre-existing issue or clearly document why no issue link is required.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: adding headless server specs to the manual switch-on CI leg.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description is detailed and covers the change, rationale, testing, failures, scope, and checklist. However, the required Linked Issue section is incomplete: it states “No issue” and leaves “Fixes #” empty, despite the template requiring an actual issue link unless the author is a maintainer and provides the applicable pre-existing issue context.

Resolution

Add a valid linked issue in the Linked Issue section. If the author is a maintainer and the exception applies, identify the relevant pre-existing issue or clearly document why no issue link is required.

  • Fix all pre-merge checks with AI
  • 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.

@Jinwoo-H
Jinwoo-H merged commit a18b44b into main Oct 20, 2026
39 of 41 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