Commit Graph
17 Commits
Author SHA1 Message Date
Jinwoo Hong 443092618b fix(win-update-e2e): baseline pre-update echo on the idle shell before startMarker
The pre-update echo probe ran after startMarker began the foreground while-loop,
so it always logged 'interactive: false' (a command can't execute against a
running loop). Move it before the marker so the baseline reflects real input
health on the idle shell.
2026-07-06 21:47:50 -04:00
Jinwoo Hong 617d1d9c24 fix(win-update-e2e): measure marker survival and typed-input in the right order
The survival profile sampled two signals at the wrong moment, so a genuinely
surviving session failed the table:

- "marker process still alive" was read AFTER probeCtrlCInterruptsMarker
  deliberately Ctrl+C-broke the foreground heartbeat loop. Sample it before the
  interrupt, while the loop still proves the pre-update shell alive.
- "typed input echoes" typed a command WHILE the infinite `while($true)` marker
  loop still owned the shell, so it could never execute regardless of input
  health. Run the echo probe after the interrupt returns the shell to a prompt.

Reorder to: heartbeat-advanced -> marker-alive -> Ctrl+C-interrupt -> echo. Also
log the marker pid + alive-after-update for transparency. No assertion changes;
this only fixes when each is measured.
2026-07-06 21:47:04 -04:00
Jinwoo Hong c73f17668c diag(win-update-e2e): log daemon exe paths, pre-daemon survival, and daemon.log for survival profile 2026-07-06 21:11:08 -04:00
Jinwoo Hong 10f41e370f fix(win-update-e2e): escape \$ for the outer shell so nested-pwsh loops actually run 2026-07-06 18:46:00 -04:00
Jinwoo Hong e4bff4b32b fix(win-update-e2e): wait for the visible .xterm container, not a hidden duplicate 2026-07-06 18:36:54 -04:00
Jinwoo Hong 1fbde69712 fix(win-update-e2e): dismiss Got-it feature-tip modal before typing; restore createTerminalTab import 2026-07-06 18:29:07 -04:00
Jinwoo Hong f4cd9e35aa fix(win-update-e2e): focus terminal by click, target visible surface, no-create on relaunch 2026-07-06 18:20:47 -04:00
Jinwoo Hong 0a13fc0dad feat(win-update-e2e): dismiss post-creation overlays, use the created terminal directly 2026-07-06 18:11:10 -04:00
Jinwoo Hong 776be625c8 feat(win-update-e2e): submit worktree composer via Create button prefix / Ctrl+Enter 2026-07-06 18:04:02 -04:00
Jinwoo Hong 311eba844d feat(win-update-e2e): select Blank Terminal mode and click Create worktree in composer 2026-07-06 17:58:53 -04:00
Jinwoo Hong 6d8cf51a48 feat(win-update-e2e): seed a project + drive workspace creation to reach a terminal
CI diagnostics showed the onboarding seed works but the app then sits at
"No workspaces found" - a terminal needs a project + workspace, and "Add
Project" is a native dialog Playwright cannot drive. So seed a throwaway
git repo into orca-data.json as a project (first launch only, to avoid
clobbering the persisted session the relaunch restores), and drive the
in-app "New workspace" composer to create a worktree whose default tab is
a terminal.
2026-07-06 17:52:31 -04:00
Jinwoo Hong c1a25c8b3a feat(win-update-e2e): onboarding seed + fail-fast driving + failure diagnostics
- Seed a completed-onboarding profile into userData before launch so the
  fullscreen onboarding overlay stops blocking the terminal UI.
- ensureTerminal(): create a terminal from a fresh profile rather than
  waiting for a pre-existing surface that never appears.
- Wrap the whole run in try/catch/finally: a driving failure now captures
  a screenshot + DOM/store diagnostics and ALWAYS tears down (close app,
  uninstall), then force-exits — turning a 30-min CI job timeout into a
  ~2-min readable failure. Workflow uploads the diagnostics.
2026-07-06 17:41:51 -04:00
Jinwoo Hong 071d9884fd fix(win-update-e2e): commit the isolation-mode modules the harness imports
registry-shortcut-backup.mjs was untracked, so run.mjs (which imports it
unconditionally) crashed on CI with ERR_MODULE_NOT_FOUND before reaching
the install/drive steps. Commit it plus the cli-args/preflight/README
changes that complete the (developer-machine only) isolated-install mode.
2026-07-06 17:06:13 -04:00
Jinwoo Hong 95415014e4 ci: add manual Windows update-survival E2E workflow + harden harness uninstall
Adds .github/workflows/win-update-e2e.yml (workflow_dispatch): on a clean
windows-2022 runner, downloads two release installers, runs the
update-survival harness, and uploads the output log. A CI runner is the
only safe home for install-based testing — electron-builder oneClick
uninstalls the registry-registered app before every install, so running
the harness on a machine with a real Orca install deletes it.

Also hardens the harness against that exact hazard: silentUninstall now
requires an explicit install directory (no scan-and-discover fallback)
and refuses the default per-user location unless a caller that owns the
install opts in; non-isolated teardown uninstalls only the exact dir it
installed into.
2026-07-06 16:43:48 -04:00
Jinwoo Hong d2d0d4325d feat(daemon): Phase 0 update-survival groundwork — daemon file log + packaged-update proof harness
Two independent pieces, no behavior change to terminal handling:

1. Daemon lifecycle file log. The detached daemon runs with stdio
ignored, so field failures have zero daemon-side evidence. The daemon
now writes rotated NDJSON lifecycle events (startup/ready/hello
accept+reject/session create/attach/exit/kill/shutdown/uncaught
exceptions) to logs/daemon.log via a new optional --log-file fork arg.
Fail-open (any fs error disables logging), adoption-neutral (old
daemons without the arg keep working, protocol untouched), and the
diagnostic bundle collector now includes the file, bounded by the same
lookback window as trace spans.

2. tools/win-update-e2e: a packaged NSIS update proof harness. Installs
version N, drives the installed app (isolated userData), plants a
canary marker session, silently updates to N+1, relaunches, and
asserts an explicit expectations profile: --expect cold-restore
(today's behavior) or --expect survival (the Phase 1 target). Window
flashes are detected by baseline-diffed window enumeration with
canary-title attribution; daemons are identified by command-line
marker, never exe name. Refuses to run when a pre-existing Orca app is
running or (without --allow-existing-install) installed, and only
uninstalls an install it fully owns.
2026-07-06 04:12:58 -04:00
Jinwoo Hong 3b081c11e0 Revert "feat(daemon): Phase 0 update-survival groundwork — daemon file log + packaged-update proof harness (#7532)" (#7535)
This reverts commit e9b9836da5.
2026-07-06 01:12:37 -07:00
Jinwoo Hong e9b9836da5 feat(daemon): Phase 0 update-survival groundwork — daemon file log + packaged-update proof harness (#7532)
Two independent pieces, no behavior change to terminal handling:

1. Daemon lifecycle file log. The detached daemon runs with stdio
ignored, so field failures have zero daemon-side evidence. The daemon
now writes rotated NDJSON lifecycle events (startup/ready/hello
accept+reject/session create/attach/exit/kill/shutdown/uncaught
exceptions) to logs/daemon.log via a new optional --log-file fork arg.
Fail-open (any fs error disables logging), adoption-neutral (old
daemons without the arg keep working, protocol untouched), and the
diagnostic bundle collector now includes the file, bounded by the same
lookback window as trace spans.

2. tools/win-update-e2e: a packaged NSIS update proof harness. Installs
version N, drives the installed app (isolated userData), plants a
canary marker session, silently updates to N+1, relaunches, and
asserts an explicit expectations profile: --expect cold-restore
(today's behavior) or --expect survival (the Phase 1 target). Window
flashes are detected by baseline-diffed window enumeration with
canary-title attribution; daemons are identified by command-line
marker, never exe name. Refuses to run when a pre-existing Orca app is
running or (without --allow-existing-install) installed, and only
uninstalls an install it fully owns.
2026-07-06 01:09:54 -07:00