Skip to content

docs(e2e): name the Host-backed suites and the prewarm paths - #2659

Merged
Tioit-Wang merged 1 commit into
mainfrom
test/ci-host-backed-e2e
Nov 30, 2026
Merged

Tioit-Wang merged 1 commit into
mainfrom
test/ci-host-backed-e2e

Conversation

@Tioit-Wang

Copy link
Copy Markdown
Collaborator

What

Record which context-stack E2E suites are Host-backed, and name the automated
paths the session context card scenario already relied on.

Why

Three suites have scenarios, scripts and green local runs, but nothing said they
need a built Host. The JS job matches session-context-default.test.mjs through
node --test test/*.test.mjs while never building the Rust binary, so its
saved-default restart assertion is skipped there — a green JS job reads as
coverage it never provided. e2e-session-collaboration.mjs and
e2e-session-completion.mjs are not referenced by any job at all.

Suite Scenario Status before
scripts/e2e-session-collaboration.mjs E2E-PLUGIN-session-orchestrator-real-workers, E2E-SESSION-independent-top-level-communication no CI job
scripts/e2e-session-completion.mjs E2E-SESSION-completion-notice-allows-silence (incl. completion batches) no CI job
apps/desktop/test/session-context-default.test.mjs E2E-SESSION-CONTEXT restart assertion skipped

Validation (local, with a built Host)

  • node scripts/e2e-session-collaboration.mjs — 11 PASS
  • node scripts/e2e-session-completion.mjs — 6 PASS, including two compatible
    queued reports producing one preview, one parent input and one turn, with each
    receipt still independently queryable
  • node --test apps/desktop/test/session-context-default.test.mjs — 3/3 with
    skipped 0, so the restart assertion actually ran
  • pnpm docs:check — 539 pages pass

Follow-up (not in this PR)

The CI wiring that runs those three suites lives in .github/workflows/ci.yml
and is ready, but pushing a workflow change needs the workflow token scope,
which the current GitHub login does not have. Recommend running them in the
rust-windows job, next to the existing transcript-cache Host E2E, since that
job is the only one that builds pi-desktop-host-core.

Three context-stack suites had scenarios and scripts but were never named as
Host-backed, so nothing recorded that the JS job cannot prove them. The JS job
matches `session-context-default.test.mjs` through its test glob without
building the Rust binary, which means the saved-default restart assertion is
skipped there and a green JS job reads as coverage it never provided.

State in the test plan that the collaboration, completion-batch and
session-context default suites are Host-backed, and that a green JS job alone
is not evidence for them.

Also name the automated paths the session context card scenario already relied
on but left implicit: the prewarm eligibility check, the standby user path, and
the file-routing path.

The matching CI change ships separately because it touches
`.github/workflows/ci.yml`, which needs the `workflow` token scope.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7c961a5
Status: ✅  Deploy successful!
Preview URL: https://b15d721e.pi-desktop.pages.dev
Branch Preview URL: https://test-ci-host-backed-e2e.pi-desktop.pages.dev

View logs

@Tioit-Wang
Tioit-Wang merged commit 62532ce into main Nov 30, 2026
3 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