Repository navigation
gate: hosted Macs, the routing, the waiter and the readers (hosted Macs M2) - #154
Merged
Merged
Conversation
On a macOS lane an eligible e2e group on HOSTED_MAC_E2E (empty), or every eligible group of a run under `Lane: hosted`, becomes the e2e-hosted job: a waiter on the pool's cpus-2 box, named e2e:<group>, which pushes the run's filtered tree to SSFSKIM/maws-app after a secret scan of what it adds, waits over git for the group's hosted result and exits with its verdict. `Lane: no-hosted` hosts none. default, measured, live, MAC_SECRET_E2E (connectors-oauth, discover) and POOL_E2E groups never go hosted, and a list naming one is refused (ci-kit's hosted-Mac spec, Placement and The flow of one hosted group). Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
… preflight, the hosted report ci-gate.sh takes --lane hosted and no-hosted into the Lane: trailer and downloads a failed hosted group's report from the maws-app run its waiter names. The alert preflight reads the run's Mac jobs from the tested commit's plan, so a run whose e2e groups are all hosted goes ahead past a mini alert, and guestRun tells no Mac job (`none`) from needing the host. The pool-demand hint's tests count a waiter as one cpus-2 box. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
…re any no-Mac shortcut The preflight returned "no Mac job" from the flags and this checkout's POOL_E2E before it ran the tested commit's plan, so a target whose lists differ could pass an open mini alert with a group its own plan puts on the Mac. The plan now decides first; the flags' estimate stands only when the plan cannot be run. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
git runs GIT_SSH_COMMAND through a shell, and the paths sat between bare single quotes, so a RUNNER_TEMP with an apostrophe broke them and shell syntax in it ran with the deploy key loaded. Each path is now quoted as a shell word. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
… key is written Quoting the paths for git's shell was not enough: OpenSSH splits UserKnownHostsFile on whitespace itself. Real runners' temp paths are plain, so the waiter now refuses any state path outside [A-Za-z0-9/._-] with a hosted: line before it writes anything, and the ssh command takes the paths as they are. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
M2 of ci-kit's spec
docs/doperpowers/specs/2026-10-26-maws-hosted-mac-design.md(branchmaws-hosted-mac-spec), on M1 (#151). It wires the hosted Macs into the gate: underLane: hosted, or for groups on the newHOSTED_MAC_E2Elist (empty until M3), a macOS run's eligible e2e groups run on GitHub's hosted Macs through SSFSKIM/maws-app. Each one is still a private jobe2e:<group>whose verdict is the hosted job's.gate-plan.mjs,gate.yml): the new listsHOSTED_MAC_E2E(empty) andMAC_SECRET_E2E(connectors-oauth,discover), thee2e_hostedoutput and thee2e-hostedjob.default, measured, live, secret orPOOL_E2E. A live run hosts nothing, and neither does a Linux lane.Lane: hostedhosts every eligible group of the run, and the summary names the ones it held back.Lane: no-hostedhosts none. UnderLane: vmthe guest wins for a group on both lists.HOSTED_MAC_E2Eentry that is not eligible refuses every run, static included, and names each reason.e2eande2e_hosted, on["self-hosted","ci-kit-pool","cpus-2"]with a 100-minute timeout. It is not ine2e_host,e2e_vmore2e_build, soDefaultBesideand pool demand count it unchanged..github/scripts/hosted-mac.sh), steps 2 and 4–6 of the spec's flow:MAWS_APP_DEPLOY_KEY) goes to a 0600 file. It connects with pinned GitHub host keys andIdentitiesOnly, falls back to port 443, and refuses aRUNNER_TEMPthat is not a plain path.$GITHUB_SHAand secret-scans only the files that differ frommain, and a finding pushes nothing and fails the job.--no-thin, from a blob-less clone withGIT_NO_LAZY_FETCH.mainrefresh:mainis fast-forwarded only when it is more than a day old and the requested commit is on MAWS master (compare API, tree checked).ci/result/<suffix>over git every 30 s, accepts only a result whose sole parent is the request, prints the verdict, the hosted run's URL and the body, and deletes both refs.hosted: no result by …, cancels its request and exits 1.--cleanupcancels a request that never got its result.ci-gate.sh --lane hosted|no-hosted.scripts/ci-gate-hosted.sh, with the caller'sghlogin.Validation Evidence
scripts/ci-gate.sh … --gates static→ run 40286497884 success, gate-script tests 200/200.gate-plan.test.mjs,hosted-mac.test.mjs10/10,ci-gate-alerts.test.mjs24/24,ci-gate.test.mjs10/10,ci-gate-pool-demand.test.mjs16/16 andci-gate-hosted.test.mjs.successexits 0 andfailure1, with both refs deleted;--cleanupcancels;RUNNER_TEMPis refused before the key is written.scripts/ci-gate.sh 991d6b95e --gates e2e:document-app,e2e:transcript --runner macos --lane hosted→ run 40280116546 success. The maws-app runs were 40280193280 and 40280199856.e2e:jobs ran on pool cpus-2 boxes.MAWS-Sourceis the run's nonce commit, whose first parent is 991d6b9, and itsMAWS-Source-Treeis 991d6b9's tree.display 1920x1080@1x.--gates e2e:document-app --lane hostedon b7a64e9) is green over the real SSH remote. The last wave added only the path guard ahead of that path.e2e/document.spec.ts:154→ run 40280116977 red (maws-app run 40280195275)./tmp/maws-review/gates/ci-6f1e5a8a/.MAWS-Source; it failed the same way (40281407904). The revert's run 40281350065 is green.cancelled48 s after the private cancel (40281460980).MAWS-Sourcegives tree 3069d91d, the request's tree.ghp_token on a scratch commit → run 40280116914 red, withmaws-app-scan: src/scratch-token.ts:3 github-patandhosted: secret scan refused the push. No ref and no run reached maws-app.hosted-mac.ymlhas nosecrets.reference and nopull_requesttrigger.all_external_contributors.maws-hosted-mac.main.doperpowers:reviewer-high(the spec's rung for M2);GIT_SSH_COMMAND;The branch is on f783456. Master has since moved (#153), touching no file here.
Residue
mainrefresh has not run live yet. maws-app'smainwas under a day old during the acceptance runs. The unit tests cover every branch; the first real refresh will come from a run after this lands, a day after M1'smainmove.desk-web-hubis eligible by Placement's rule but its hosted run is unproven. Its hub suite builds with Vite and drives the system Chrome. It is not a class-1 group, so only a run naming it underLane: hostedhosts it. Whether to prove it or exclude it is the architect's call.remote: Create a pull request …lines, four per request. It is cosmetic; filtering^remote:as ci-gate.sh does is a one-line change.Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)