Skip to content

gate: a MEASURED_E2E group waits for ci-kit's measured-job guard on a Mac - #68

Merged
SSFSKIM merged 2 commits into
masterfrom
gate-measured-settle
Oct 19, 2026
Merged

SSFSKIM merged 2 commits into
masterfrom
gate-measured-settle

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Automates Decision Log 75's posture go for measured sets. It uses ci-kit's measured-job guard, from ci-kit #58 (merge 892fccaa, which closes ci-kit #55). CI-opt moved ci-kit's v1 tag to 892fccaa, so SSFSKIM/ci-kit/mac/settle@v1 resolves to the guard. This PR adds no Decision Log entry; the architect writes it.

gate.yml

  • MEASURED_E2E: artifacts-perf document-scale presentations-scale sits beside the other group lists.
  • The plan (gate-plan.mjs) marks each matrix entry measured. A job-level timeout-minutes cannot read env, so the list reaches the job through the matrix, the same way LIBREOFFICE_E2E becomes matrix.libreoffice.
  • The e2e job's first step, before the checkout, is SSFSKIM/ci-kit/mac/settle@v1, under if: matrix.measured && runner.os == 'macOS'.
    • It releases the job once two reads 30 s apart each show:
      • the 1-minute load under 5
      • the display at @2x
      • no Parsec viewer and no screensharingd
      • no computer-use process
    • After 15 minutes it refuses the job.
    • Settled or refused, it writes one line to the job log and to the mini's hooks log: how long it waited, the posture at start, and the posture at release or refusal.
  • timeout-minutes: ${{ matrix.measured && 45 || 30 }}: the guard's 15-minute bound on top of the usual 30.
  • The header comment and the MEASURED_E2E comment describe all of this.

The refusal

  • The guard refuses with ci-kit's ci-kit: … rerun line, for example ci-kit: the mini did not settle for a measured job within 15 min (load 7.20, display @1x); waited 900 s; start: …; refusal: … — fix that there and rerun. The parenthesis names each condition the last read failed and what it read.
  • scripts/ci-gate-refusals.sh's pattern already counts such a line as refused, at any step name. No code change was needed there.
  • Its comment, and scripts/ci-gate.sh's header, now name the guard beside the job-started check.
  • scripts/ci-gate-refusals.test.mjs pins the guard's line, at its Run SSFSKIM/ci-kit/mac/settle@v1 step, as refused, together with the relaunch line.
  • .github/scripts/gate-plan.test.mjs pins:
    • the measured mark
    • that every MEASURED_E2E group has a package script
    • the guard as the e2e job's first step under that if
    • the timeout expression

Plan doc: §3.2's jobs line and its e2e bullet describe the guard and the 45-minute timeout.

Evidence: class 1a static on the pool, on this head, is green: run https://github.com/SSFSKIM/MAWS/actions/runs/39223350574. node --test on scripts/ci-gate-refusals.test.mjs, .github/scripts/gate-plan.test.mjs and scripts/ci-gate-alerts.test.mjs passes 31 of 31 locally. actionlint reports nothing new.

Not run: the guard itself on the mini. No Mac run was made for this PR. The first measured set after the landing exercises it, and its ci-kit settle: line is in each measured job's log.

… Mac

The timing-measured groups (artifacts-perf, document-scale, presentations-scale) are listed in gate.yml's
MEASURED_E2E; the plan marks their matrix entries `measured`. On a Mac their e2e job's first step, before the checkout,
is SSFSKIM/ci-kit/mac/settle@v1 (ci-kit #58, 892fccaa): it releases the job once two reads 30 s apart each show the
1-minute load under 5, the display at @2x, no Parsec viewer or screensharingd and no computer use, and after 15
minutes refuses it with ci-kit's `ci-kit: … rerun` line naming the condition that failed, which ci-gate.sh already
counts as refused and relaunches. A measured job's timeout is 45 minutes, the guard's 15 over the usual 30. This
automates Decision Log 75's posture go.

The refusal summary's comments name the guard beside the job-started check; its test pins the guard's line at a job's
first step as refused, and the plan's test pins the mark, the guard's place and the timeout.
The measured-job guard runs before the checkout, and on the Mac the workspace persists between jobs: only the
checkout's clean clears the last job's playwright-report/ and test-results/. A refused measured group therefore
uploaded another job's report and measurements as its own e2e-<group> artifact, which ci-gate.sh then downloads as the
failed job's report. The upload step now also needs the checkout's outcome to be success, so any failure before the
checkout uploads nothing; gate-plan.test.mjs pins the condition and the checkout's id.
@SSFSKIM
SSFSKIM merged commit 07a3f17 into master Oct 19, 2026
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
…i-kit #57) and the measured-job guard (ci-kit #58, MAWS #68 landed as 07a3f17)
@SSFSKIM
SSFSKIM deleted the gate-measured-settle branch October 19, 2026 09:00
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