Commit Graph
6 Commits
Author SHA1 Message Date
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 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