Skip to content

The agent that grows with you

test(desktop): packaged boot fails fast (60s) with main log tail; README lists the new specs and KNOWN policy

teknium1deb4bd2c0857
diff --git a/apps/desktop/e2e/core/README.md b/apps/desktop/e2e/core/README.md
index e078faf7cd4..f8c772b5cf4 100644
--- a/apps/desktop/e2e/core/README.md
+++ b/apps/desktop/e2e/core/README.md
@@ -36,9 +36,43 @@ A small, deterministic Electron suite that guards three issue classes end to end
so orphans reparented to init are counted); relaunch the same home 3× → one
backend per boot, zero after each quit, transcript cold-hydrates once.
+- **Session lineage** — `lineage-sidebar.spec.ts`: a branch child is born
+ titled (#121062) and is its own sidebar row; switching branch ↔ parent (3
+ round trips + reload) never renders the other session's turn or a duplicate
+ part (in-page sampler). `lineage-rotation.spec.ts`: REAL rotated
+ compression rows (`hermes chat -q` with `compression.in_place: false` on the
+ same `HERMES_HOME`, compacting against the fake provider), then the Desktop
+ shows one row per lineage live, after rotations, after reload and after a
+ cold relaunch (#121148). `lineage-compaction-prompt.spec.ts`: a redirect
+ prompt acknowledged mid-turn whose turn then compacts; the refresh passes
+ through `preserveLocalPendingTurnMessages` (#121088).
+- **Remote topology** — `remote-topology.spec.ts`: the whole app on a remote
+ `hermes serve` (`HERMES_DESKTOP_REMOTE_URL` + token): a client-only image is
+ shipped as bytes, never as a client path (#120730, env-remote shape); remote
+ backend restart keeps the session. `remote-secondary.spec.ts`: the Bot-Mode
+ shape of #120730 — local primary backend + a remote secondary connection in
+ `connections.json`, the chat owned by the remote connection. Both hide the
+ client's picture folder from the backend with a private mount namespace
+ (unprivileged user namespaces; without them the test is annotated
+ `fidelity` because a same-host path would resolve on the backend).
+- **Packaged build** — `packaged-smoke.spec.ts`: asarUnpack contract of the
+ `electron-builder --dir` output (#121097) and the packaged binary booting to
+ a first chat (≤60 s to interactive, main-process log tail on failure). It
+ runs this checkout's Python backend, so it proves the packaged shell and
+ renderer, not a bundled runtime. Skipped without a build unless
+ `HERMES_E2E_REQUIRE_PACKAGED=1`.
+
+Known open bugs (`known.ts`): a scenario that reproduces an OPEN issue keeps
+its correct assertion as the test's LAST assertion via `expectNoSymptom`. When
+it fails with that bug's own message the test is marked expected-failing at
+run time (annotation `known-bug`); any other failure is a real failure; a
+clean pass is a pass, so a fix merging first never turns main red. Remove the
+`KNOWN` entry once the fix lands.
+
Rules the suite keeps (why the old lane was disabled): no fixed sleeps as
synchronisation (every wait is on a frame, pid, DOM state or persisted row
-with a deadline), no shared mock state between scenarios (replies are keyed
+with a deadline; the only timed waits are bounded observation windows for a
+symptom sampler), no shared mock state between scenarios (replies are keyed
by the turn's own marker), no visual baselines, `retries: 0`, one worker,
sandboxed `HOME`/`HERMES_HOME`/user-data per test, all `HERMES_*` and
credential env stripped from the spawned app.
diff --git a/apps/desktop/e2e/core/packaged-smoke.spec.ts b/apps/desktop/e2e/core/packaged-smoke.spec.ts
index f8aa5a33975..de7cc4c4ae4 100644
--- a/apps/desktop/e2e/core/packaged-smoke.spec.ts
+++ b/apps/desktop/e2e/core/packaged-smoke.spec.ts
@@ -21,7 +21,10 @@
* `app.isPackaged` asserted) with a sandboxed HOME/HERMES_HOME and only
* the LLM faked (scripted loopback provider) completes a first turn: the
* reply is rendered, persisted (state.db + REST), and passes the core
- * transcript oracle.
+ * transcript oracle. The packaged app is pointed at THIS checkout's
+ * Python backend (HERMES_DESKTOP_HERMES_ROOT = repo root, its .venv), so
+ * this proves the packaged Electron shell + renderer, not a bundled
+ * backend/runtime install.
*
* No packaged build: skipped with a reason locally; FAILS when CI is set and
* HERMES_E2E_REQUIRE_PACKAGED=1 (the CI step that builds the pack sets it).
@@ -514,7 +517,9 @@ test('packaged binary boots against a scripted provider and completes a first ch
})
await test.step('boots to an interactive composer', async () => {
- await waitForInteractive(electronApp, page).catch(error => {
+ // 60 s, not the harness default 180 s: a warm packaged boot is well under
+ // that, and a broken renderer should fail fast with the main-process story.
+ await waitForInteractive(electronApp, page, 60_000).catch(error => {
throw new Error(`${(error as Error).message}\npackaged main-process log tail:\n${logTail()}`)
})
await installDuplicateSampler(page)