Skip to content

ci: admit wave four macOS guest groups and await scratch writers - #149

Merged
SSFSKIM merged 1 commit into
masterfrom
p4-vm-wave4
Oct 25, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
p4-vm-wave4

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Summary

Admit delivery, connectors-oauth, artifacts and browser-cua to MAC_VM_E2E, based on CI-opt's three green guest passes on maws-vm-golden-20261025: 40200261879, 40212720841 and 40216462062. All twelve admission jobs succeeded on runners labelled ci-kit-mac-vm.

Also admit connectors and connectors-direct after fixing scratch cleanup and passing 3/3 on the exact final tree. Terminal remains held; design remains host-only. No product code, latency budget or test-timeout changes.

Cleanup diagnosis and fix

The old cleanup left detached engines alive. In diagnostic guest run 40222098783, lsof still showed engine 2.1.310 PID 2377 using <product scratch>/project as cwd after killScratchProcesses returned. Hot relaunch retained engine PID 2630, and connectors-direct's transition scene retained engine PID 3320. Attached owner-start timelines identify PIDs 2377 and 2630 as the live engines. Electron/supervisor/fixture-node entries disappeared, and the connector scenes' shell snapshots were empty.

The diagnostic run was green: it did not capture the exact file recreated during the historical ENOTEMPTY. It did empirically identify the detached engines and scratch paths the old cleanup failed to retire.

The old helper matched and waited on argv text only. Engines use the scratch project as cwd and inherit scratch HOME/config through the environment, without naming the root in argv. The fix:

  • Discover cwd ownership with native lsof on macOS and /proc/<pid>/cwd on Linux.
  • Bind ownership to a pid/start-time snapshot taken before discovery; validate it before signalling, so stale cwd ownership cannot authorize killing a reused PID.
  • Kill only the individual owned PIDs, wait for their identities to exit, then sweep again to catch children born during the first kill.
  • Keep rmSync retries (5, 100 ms) only as a backstop beside that process fix.

Regression tests exercise a cwd-only writer versus a neighbouring cwd, a child spawned after discovery, stale cwd ownership after PID reuse, existing argv/recorded-PID safety, and survivor diagnostics.

Eligibility and routing pins

All six are non-measured Mac e2e groups built through scripts/e2e-build.sh: browser-cua uses harness; the other five use plain. None enables a PERF/SCALE switch. Tracing each spec's local imports reaches neither e2e/support/latency.ts nor test/support/latency-budget.ts. Artifacts-store's measured case stays skipped without MAWS_ARTIFACTS_PERF=1.

The updated pins cover the folded allowlist, default and named VM placements, build variants, the default e2e_vm set, and all-guest versus mixed host-only alert decisions.

Verification

Head: 798b7dda80369b60214f8dba5b5ae99bb54cce99, based on master 0809ddc2b.

Final tree: 957767851de127760211e37f6737bded84277aa4. GitHub's commit-tree API matches this tree to HEAD for every required run below. All succeeded on attempt 1; every e2e job used a ci-kit-mac-vm runner.

Run Coverage Verdict Final tree match
40224019292 Pool static, all four unit shards, probes Green Yes
40224021736 Guest delivery, connectors-oauth, artifacts, browser-cua, connectors, connectors-direct; connector pass 1 Green Yes
40229482997 Guest connectors and connectors-direct; pass 2 Green Yes
40231457492 Guest connectors and connectors-direct; pass 3 Green Yes

Earlier diagnostic/regression runs are not counted as final-tree passes:

Run Coverage Verdict Final tree match
40222098783 Guest connectors/direct with old cleanup and process diagnostics Green; exposed surviving engines No
40222189719 Unit regression before implementation Expected red: cwd-only writer was not killed No
40222596201 First cwd cleanup unit attempt Red: Linux pool has no lsof; fixed with native /proc discovery No
  • Final slot-wrapped gate-script suite: 91/91 passed across gate-plan, pool-demand, alerts and ci-setup tests.
  • Independent medium review: two process-ownership/wait findings fixed in a separate wave; re-review of the final head is correct, no material findings.
  • Actionlint reports only the same two SC2046 warnings reproduced on master.
  • No local e2e or GUI automation. No docs edits. Reusable CLI, pool-dependency and guest-queue friction recorded in MAWS Friction tracker (moved to ~/.claude/friction-tracker/MAWS/) #92.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

…moval

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T21:01:29.012497Z 798b7dd PR opened
ℹ️ 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.

@SSFSKIM
SSFSKIM merged commit 3f5e711 into master Oct 25, 2026
SSFSKIM added a commit that referenced this pull request Oct 25, 2026
…opt's nit on #149); comment only

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 25, 2026
…ty-three) and the cwd-owner scratch cleanup; tools' monospace poll

Sminos-Session: GUI AI agent workspace charter#37052769 (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