Purpose (fix): the gate runs on pull requests again, so a PR's green covers the suite #137

Open
opened 2026-11-24 07:39:05 +00:00 by pluto · 0 comments
Member

Purpose (fix): a pull request's CI runs the npm test suite again, so a package's green on its PR covers the suite, and a facts change that breaks a consumer goes red on the PR instead of on main after landing.

Why. The gate coverage job carries if: github.event_name == 'push' && github.ref == 'refs/heads/main' (.github/workflows/ci.yml:163). No pull request ever runs npm test, so a PR's green says nothing about the suite. That cost main a red on 2026-11-24: PR 126 (macula-io/martha#124) changed the store's recorded folder, its own touched files ran 79/79, and three stand-ins that build the store's path by hand went 8/25 red in start_an_engine_member.node-test.ts only after it landed; PR 136 fixed it.

Ruling. The Supervisor ruled on 2026-11-24 (relayed by Mars) that the gate job runs on pull requests again. Raf may overrule.

What changes. Drop the push-only condition on gate at ci.yml:163, and correct the comment above it to say why the job now runs on pull requests. The private job's identical condition at ci.yml:851 stays: the ruling names the gate only.

Accepted cost. martha-bwrap has capacity 1 and the gate takes about 24 minutes a run (1416 s at its longest in four green runs, measured 2026-11-20), so pull requests queue behind one another.

Done when. A pull request's own run carries a gate coverage task, and its green means the suite ran on that tip.

Refs macula-io/martha#43, macula-io/martha#124.

Purpose (fix): a pull request's CI runs the `npm test` suite again, so a package's green on its PR covers the suite, and a facts change that breaks a consumer goes red on the PR instead of on main after landing. **Why.** The `gate coverage` job carries `if: github.event_name == 'push' && github.ref == 'refs/heads/main'` (`.github/workflows/ci.yml:163`). No pull request ever runs `npm test`, so a PR's green says nothing about the suite. That cost main a red on 2026-11-24: PR 126 (macula-io/martha#124) changed the store's recorded folder, its own touched files ran 79/79, and three stand-ins that build the store's path by hand went 8/25 red in `start_an_engine_member.node-test.ts` only after it landed; PR 136 fixed it. **Ruling.** The Supervisor ruled on 2026-11-24 (relayed by Mars) that the `gate` job runs on pull requests again. Raf may overrule. **What changes.** Drop the push-only condition on `gate` at `ci.yml:163`, and correct the comment above it to say why the job now runs on pull requests. The `private` job's identical condition at `ci.yml:851` stays: the ruling names the gate only. **Accepted cost.** martha-bwrap has capacity 1 and the gate takes about 24 minutes a run (1416 s at its longest in four green runs, measured 2026-11-20), so pull requests queue behind one another. **Done when.** A pull request's own run carries a `gate coverage` task, and its green means the suite ran on that tip. Refs macula-io/martha#43, macula-io/martha#124.
Sign in to join this conversation.
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#137
No description provided.