Skip to content

gate: e2e:default may run in the guest, on e2e-build's plain out/ - #624

Merged
SSFSKIM merged 5 commits into
masterfrom
default-on-guest
Nov 13, 2026
Merged

SSFSKIM merged 5 commits into
masterfrom
default-on-guest

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 13, 2026

Copy link
Copy Markdown
Owner

The architect's pick (1648): e2e:default becomes guest-eligible, so it runs on the host or the guest, whichever is free. The hosted exclusion stays.

What changes

  • gate-plan.mjs: variantOf('default') is plain. pnpm build's electron-vite build runs with MAWS_HARNESS unset, which makes it the plain variant. On MAC_VM_E2E, default asks for [ci-kit-mac-solo] like every proven group. build is true only off the guest's labels.
  • gate.yml: on a guest-label entry, default's job restores e2e-build's plain out/ under MAWS_E2E_BUILD_REQUIRE=1 in a step of its own and builds nothing. On the exclusive instance's labels it runs pnpm build as before. default joins MAC_VM_E2E. E2E_MINUTES gets default=45: its tests took 22 min on the host (run 43397387398), and the guest runs 1.3-1.7x the host's time, past the 30 min a job on the guest's own label gets.
  • Measured groups are untouched: they keep the home Mac whatever the lists say (pinned in the new gate-plan test).

Default's spec list is unchanged. e2e-default-specs.mjs reads only the e2e matrix's group names and default_beside. gate-plan.test.mjs pins that the plan hands both over identically for the host, solo and Lane: vm placements. e2e-default-specs.test.mjs pins this tree's derived list (a real playwright test --list) for the host and both guest placements.

What the guest's default lacks: desk-web and desk-hub builds. pnpm build makes them on the host, but none of default's specs reads them. The local hub's wrangler assets directory is created by scripts/assets-dir.mjs when desk-web is unbuilt. The comparison run checks this.

Comparison before landing (requirement 2). Both runs use --gates e2e:default --default-beside <the class-1 set>, so default runs its own specs as in a full set:

  • guest: this branch with Lane: vm, run 43413169788 (static included, for the two test files);
  • host: base master c0e7b2a, where default is host-only, run 43413187988. This branch's diff from c0e7b2a is .github/ only, so both runs test the same app and specs.

Results go below when both end.

.github/-only: no rerun of a wave link's set is needed.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

default's out/ is the plain variant: `pnpm build`'s electron-vite build runs
with MAWS_HARNESS unset. On MAC_VM_E2E it now asks for [ci-kit-mac-solo] like
every proven group: in the guest (or on the host through that label) it
restores e2e-build's plain out/ in a step of its own and builds nothing; on
the exclusive instance's own labels its job runs `pnpm build` as before.

Its own specs do not move: the derivation reads the run's group names and
DefaultBeside alone, which the plan hands over unchanged wherever default
goes (gate-plan.test.mjs), and e2e-default-specs.test.mjs pins this tree's
derived list for the host and both guest placements.

E2E_MINUTES default=45: its tests took 22 minutes on the host (run
43397387398), and the guest runs 1.3-1.7x the host's time, past the 30 a job
on the guest's own label gets.

Measured groups are untouched: they keep the home Mac whatever the lists say.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
…alerts reads default on the VM list

CI's static job inherits gate.yml's env, MAC_VM_E2E with default on it, so the
host plan in e2e-default-specs.test.mjs now names the list without default.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
The guest's virtual mouse gives the app legacy 15 px scroll bars, and
layout-transfer.spec.ts (default's own) measures the document column to the
pixel: the first guest run read 593 and 825 where the host's layout gives 608
and 840 (run 43413169788). Written only when the runner's env says it is the
guest (CI_KIT_VM_GUEST=1), so the host's own setting is never touched.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@SSFSKIM

SSFSKIM commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

Comparison (requirement 2)

Both runs used --gates e2e:default --default-beside <the class-1 set>. Each derived the same selection: "default runs its own 50 of the bare set's 108 specs, beside 40 other e2e groups".

run where tree passed skipped flaky failed test step job
host 43413187988 ci-kit-mac-mini (exclusive) c0e7b2a (base master) 63 117 0 0 5.6 min 7m48s
guest 43422683761 maws-vm-job-vm-20261113T124113Z (Lane: vm) d052b53 63 117 0 0 9.6 min 34m18s

The branch differs from c0e7b2a only in .github/ and docs. The guest restored the pool's plain out/ (e2e-build: out/ (plain) restored …, sha256 6702777b…) and built nothing.

An earlier guest run, 43413169788 at 3cd92cd, failed 2 of 63, both at layout-transfer.spec.ts:417 (:504, scrollBox 593 against 608 and 825 against 840). The cause was legacy 15 px scroll bars from the guest's virtual mouse. d052b53 writes overlay scroll bars into the clone only (CI_KIT_VM_GUEST=1), never on the host. The spec's dependence on scroll-bar mode is a tracker row (fc752fc).

Where the guest's 34 min went: checkout 7.5 min, setup 4.9, download-artifact 10.4, tests 9.6. That is 23 minutes of transfers over the mini's slow uplink (the known Wi-Fi uplink friction; UPLINK_MARGIN_MINUTES covers it). The guest helps when the host is busy, which is the wave's case. It costs latency only when the host would have been free within those minutes.

(b) The plain out/ is the out/ pnpm build makes

  • Same command, same inputs: pnpm build starts with electron-vite build with MAWS_HARNESS unset. scripts/e2e-build.sh plain runs MAWS_HARNESS=0 node_modules/.bin/electron-vite build. The config reads that variable only as process.env.MAWS_HARNESS === '1' (electron.vite.config.ts:61; __MAWS_HARNESS_BUILD__ derives from it), so unset and 0 build the same entries. Neither sets MAWS_BUILD_RENDERER. pnpm build's other two steps build desk-web and desk-hub into apps/, not out/.
  • Pool (Linux) against mini (macOS), measured at one commit: d08502c (run 43385216852, ci/u13a-e2e). That run's pool e2e-build plain artifact and the mini's own plain build of the same commit (~/Library/Caches/maws-e2e-build/ci-kit-mac-mini/d08502c3…/plain) hold the same 893 files. 891 are byte-identical. The other two, main/app.js and main/mawsd.js, differ only in the build stamp's builtAt time (define_MAWS_BUILD_default = { commit: "d08502c3", builtAt: … }, 07:22:58.650Z against 07:22:34.634Z).

(c) Review: one independent review (doperpowers reviewer-medium) of 3cd92cd found no material defect in placement, artifact restoration, hosted and overflow exclusions, build dependencies or timeout arithmetic. It confirmed the two static test failures CI had found (e2e-default-specs.test's host plan inheriting gate.yml's MAC_VM_E2E, and ci-gate-alerts.test pinning the old list), both fixed in d8044c6. static is green on d8044c6 (run 43414819657) and on d052b53 (run 43422683761).

@SSFSKIM
SSFSKIM marked this pull request as ready for review November 13, 2026 13:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T13:25:32.377248Z fc752fc Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 5d70fa9 into master Nov 13, 2026
@SSFSKIM
SSFSKIM deleted the default-on-guest branch November 13, 2026 13:28
SSFSKIM added a commit that referenced this pull request Nov 13, 2026
…ange (#624) and the CPU bound's test change (#628)

Incoming: four files under .github/, scripts/ci-gate-alerts.test.mjs, one tracker row, src/services/index/sessions.test.ts. No product code. One conflict, in docs/tech-debt-tracker.md (each side appended one row): both rows kept, master's first.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 13, 2026
Incoming over 5b934b8: the requests landing's fix round (the harness page's hosts connection, the held-chord scene, the docked frame's focus hand-over with its tests), master 7b9ef82 (the spec's batch 8 documents, the gate's default-on-guest change #624, the CPU bound's test change #628) and tracker rows. One conflict, in docs/tech-debt-tracker.md (rows appended on both sides): all rows kept, the incoming ones first. src/services/index/sessions.test.ts merged without conflict: this branch's six-word cases and #628's bound.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 13, 2026
Incoming over 90a9100: the requests landing's fix round (the harness page's hosts connection, the held-chord scene, the docked frame's focus hand-over with its tests), master 7b9ef82 (the spec's batch 8 documents, the gate's default-on-guest change #624, the CPU bound's test change #628) and tracker rows. No conflict; two files changed on both sides merged by git: docs/tech-debt-tracker.md and .github/scripts/e2e-default-specs.test.mjs.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
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