A pull request's superseded runs and a landed PR's stragglers cancel themselves; a main push run never does (forge-setup#60 P4) #224

Manually merged
terra merged 3 commits from jupiter/60-p4-cancel-groups into main 2026-11-26 05:41:01 +00:00
Member

Refs macula-io/forge-setup#60 (P4). This applies the landed forge-setup step steps/run-cancel-groups.sh (main 4f7ba66) to martha's four PR workflows: c4-model, ci, engine-drift and host-drift.

  • Each of the four gets pull_request.types: [opened, synchronize, reopened, closed]. The closed event exists only so a landed PR's stragglers are cancelled.
  • Each gets a group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}.
  • Each gets cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}, so a main push run is never cancelled.
  • Every job carries if: ${{ github.event.action != 'closed' }}.
  • advisories.yml (workflow_call) and standalone.yml (its own concurrency) are left as they are.

Proof:

  • run-cancel-groups.sh --check names only those two as left.
  • actionlint passes.
  • The 29 workflow-reading test files give 500 pass, 0 fail, 33 skipped. The skips are the recorded-host-only cases.
  • check:private on the range finds nothing private.

Cost: each land adds 22 skipped tasks (ci.yml has 19 jobs, plus 3), and each one waits for a runner.

Done when:

  • --check is empty on main after the land (apart from the two above);
  • one PR's superseded tip shows a cancelled run;
  • a main push run is never cancelled.
Refs macula-io/forge-setup#60 (P4). This applies the landed forge-setup step `steps/run-cancel-groups.sh` (main 4f7ba66) to martha's four PR workflows: c4-model, ci, engine-drift and host-drift. - Each of the four gets `pull_request.types: [opened, synchronize, reopened, closed]`. The `closed` event exists only so a landed PR's stragglers are cancelled. - Each gets a group: `${{ github.workflow }}-${{ github.head_ref || github.ref_name }}`. - Each gets `cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}`, so a main push run is never cancelled. - Every job carries `if: ${{ github.event.action != 'closed' }}`. - advisories.yml (workflow_call) and standalone.yml (its own concurrency) are left as they are. Proof: - `run-cancel-groups.sh --check` names only those two as left. - actionlint passes. - The 29 workflow-reading test files give 500 pass, 0 fail, 33 skipped. The skips are the recorded-host-only cases. - `check:private` on the range finds nothing private. Cost: each land adds 22 skipped tasks (ci.yml has 19 jobs, plus 3), and each one waits for a runner. Done when: - `--check` is empty on main after the land (apart from the two above); - one PR's superseded tip shows a cancelled run; - a main push run is never cancelled.
macula-io/forge-setup's steps/run-cancel-groups.sh (main 4f7ba66), run on this repository's clone. In
c4-model, ci, engine-drift and host-drift:
- concurrency: the workflow and the branch, with cancel-in-progress except on main, so a newer push
  of a PR cancels its older runs and a main push run is never cancelled, waiting or running (#63);
- closed added to the pull_request types, so the lander's manually-merged mark starts one run in that
  group, which cancels what of the landed tip is still waiting;
- a closed guard on every job, ANDed with any if: the job already had (private keeps its main-only
  rule), so that run does nothing. Cost: one skipped task per job per land.
Kept as they are, by the step: advisories.yml (another workflow may call it) and standalone.yml (its
own concurrency).
Merge remote-tracking branch 'origin/main' into jupiter/60-p4-cancel-groups
Some checks failed
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Has been cancelled
dependency advisories / node in installer (pull_request) Has been cancelled
dependency advisories / node in . (container) (pull_request) Has been cancelled
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been cancelled
dependency advisories / node in installer (container) (pull_request) Has been cancelled
c4 model / c4-model (pull_request) Has been cancelled
c4 model / c4-model-1 (pull_request) Has been cancelled
CI / links resolve (pull_request) Has been cancelled
CI / gate coverage (pull_request) Has been cancelled
CI / structural floor (pull_request) Has been cancelled
CI / Martha's names are its own (pull_request) Has been cancelled
CI / no import cycle (pull_request) Has been cancelled
CI / the relay loads in the recorded host (pull_request) Has been cancelled
CI / the host drift check bites (pull_request) Has been cancelled
CI / the engine drift check bites (pull_request) Has been cancelled
CI / the posted text check bites (pull_request) Has been cancelled
CI / the clean-install proof removes its container (pull_request) Has been cancelled
CI / the ring reaches the owner on the live run's tmux (pull_request) Has been cancelled
CI / workflows are valid (pull_request) Has been cancelled
CI / installer (pull_request) Has been cancelled
CI / nothing private (pull_request) Has been cancelled
CI / no test the base passed goes missing (pull_request) Has been cancelled
CI / the pictures change only with the version (pull_request) Has been cancelled
CI / no literal restates a defined value (pull_request) Has been cancelled
CI / every check runs in a job (pull_request) Has been cancelled
CI / every job has a timeout (pull_request) Has been cancelled
engine drift / the recording says what the engine says (pull_request) Has been cancelled
host drift / the recording is of the host members run (pull_request) Has been cancelled
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Has been cancelled
standalone / the pinned Node is nodejs.org's (pull_request) Has been cancelled
6712f2bc23
A pull request's older run cancels when it moves; the closed trigger and its skips are dropped (forge-setup#60 P4)
All checks were successful
CI / the clean-install proof removes its container (pull_request) Successful in 20m33s
dependency advisories / node in . (pull_request) Successful in 12s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 10s
dependency advisories / node in installer (container) (pull_request) Has been skipped
c4 model / c4-model-1 (pull_request) Successful in 3s
CI / links resolve (pull_request) Successful in 5s
c4 model / c4-model (pull_request) Successful in 0s
dependency advisories / node in installer (pull_request) Successful in 12s
dependency advisories / advisories (pull_request) Successful in 0s
CI / the relay loads in the recorded host (pull_request) Successful in 16m3s
CI / structural floor (pull_request) Successful in 43s
CI / no import cycle (pull_request) Successful in 40s
CI / Martha's names are its own (pull_request) Successful in 43s
CI / the posted text check bites (pull_request) Successful in 10s
CI / the engine drift check bites (pull_request) Successful in 37s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 11s
CI / nothing private (pull_request) Has been skipped
CI / workflows are valid (pull_request) Successful in 11s
CI / the pictures change only with the version (pull_request) Successful in 15s
CI / no test the base passed goes missing (pull_request) Successful in 37s
CI / the host drift check bites (pull_request) Successful in 1m37s
CI / every check runs in a job (pull_request) Successful in 11s
CI / every job has a timeout (pull_request) Successful in 19s
CI / gate coverage (pull_request) Successful in 19m48s
engine drift / the recording says what the engine says (pull_request) Successful in 22s
CI / no literal restates a defined value (pull_request) Successful in 1m3s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 12s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 31s
CI / installer (pull_request) Successful in 3m10s
host drift / the recording is of the host members run (pull_request) Successful in 2m39s
e9778e81a7
Supervisor ruling: keep the four concurrency blocks; take out the
pull_request closed type and the 22 job guards it needed, so a land
adds no skipped tasks. Cancelling a closed or landed PR's leftover
runs moves to the lander by API once the forge is on Forgejo 17
(forge-setup#45).
Author
Member

Supervisor ruling (r2, e9778e81): the closed trigger and its 22 job guards are dropped; only the concurrency blocks stay, so a new push still cancels the PR's older run and a land adds no skipped tasks. Cancelling a closed or landed PR's leftover runs moves to the lander by API once the forge is on Forgejo 17 (macula-io/forge-setup#45).

Supervisor ruling (r2, e9778e81): the `closed` trigger and its 22 job guards are dropped; only the concurrency blocks stay, so a new push still cancels the PR's older run and a land adds no skipped tasks. Cancelling a closed or landed PR's leftover runs moves to the lander by API once the forge is on Forgejo 17 (macula-io/forge-setup#45).
Author
Member

Attempt 1 of run 5266 (ci.yml, e9778e81) failed on one job: 22072, "the clean-install proof removes its container", which ended 04:44:33Z, exit 1. The other 17 jobs were green; nothing-private was skipped.

Failing case: the self-test: a turn the host never took was not typed again, once. The builder's screen is empty, its transcript holds only the prompt ("its launch has ended; this is the copy Martha kept"), and then comes the self-test: a case failed, above. There is no docker error, and the image install succeeded on attempt 1.

This is the same family as #226: a member-end verdict that never shows, with an empty builder screen. The PR changes only four workflow concurrency blocks. Per the flake rule (DECIDED 2026-11-26), only job 22072 is rerun, by API. Refs #226.

Attempt 1 of run 5266 (ci.yml, e9778e81) failed on one job: 22072, "the clean-install proof removes its container", which ended 04:44:33Z, exit 1. The other 17 jobs were green; nothing-private was skipped. Failing case: `the self-test: a turn the host never took was not typed again, once`. The builder's screen is empty, its transcript holds only the prompt ("its launch has ended; this is the copy Martha kept"), and then comes `the self-test: a case failed, above`. There is no docker error, and the image install succeeded on attempt 1. This is the same family as #226: a member-end verdict that never shows, with an empty builder screen. The PR changes only four workflow concurrency blocks. Per the flake rule (DECIDED 2026-11-26), only job 22072 is rerun, by API. Refs #226.
terra manually merged commit d160bd41f7 into main 2026-11-26 05:41:01 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/martha!224
No description provided.