A martha land whose tree its green PR run tested runs nothing on main (martha#43 rule 1) #229

Open
opened 2026-11-26 04:52:10 +00:00 by saturnus · 5 comments
Member

Purpose (cost): a martha land whose merged tree a green PR run already tested runs nothing on main, so the forge runs each martha tree once.

DECIDED 2026-11-26 Raf, martha#43 comment 5551, rule 1: "A land whose tree equals a PR tip whose runs are green runs nothing on main." Measured there: the 10 martha lands of the last 12 h re-ran all six workflows on main (60 runs, ~550 runner-minutes).

Why martha lands do not skip today (read 2026-11-26, main 8b7c23bc)

The sponsors#79 check (crew_verify_range's "Merge message:" line, landed as sponsors 4dd17e6b) adds the skip-ci marker only when (a) the merge's tree is the PR tip's, (b) the tip is green, and (c) the repository is ON. martha misses (a) on most lands and (c) on all of them.

  1. (a) Most lands have a moved base. 6 of the last 10 lands (8b7c23bc, 965e3df8, bc8c2c25, cc867613, 6ae2f3e3, 37fb64bb) merged onto a main that had moved past the PR tip. Their merged tree was never run by any PR, so main's run is its only test, and skipping it would be wrong. Only 4 of 10 (6957a0e2, ea799079, 2e937847, c25593e7) had a tip that already held the base.
  2. (c) martha reads OFF, through three workflows:
    • ci.yml: the "nothing private" job is if: github.event_name == 'push' && github.ref == 'refs/heads/main', so it runs on a main push and never on a PR. It was taken off PRs by DECIDED 2026-11-22 "2 Known reds off PRs" until martha#39, which is now closed.
    • release.yml and installer.yml trigger on tag pushes, and martha's release tags point at land merges (v0.4.2 → 0362b405 "Merge PR 159"; installer-v2.0.2 → d4a554a4 "Merge PR 152"). Forgejo skips a tag push whose commit message holds the marker, so a release land that carried it would start no release run.
  3. A main push runs jobs its PR did not (confirmed). On land 8b7c23bc, main ran engine-drift.yml and host-drift.yml as well as everything PR 200 ran. Both have pull_request: paths: [...] but a bare push: branches: [main], so any land runs them. The sponsors#79 reader calls these two workflows ON: it does not compare the paths filters. That is a gap in the reader, and it lives in that code. "nothing private" is the second such job.
  4. The lander does not read the line. martha lands are hand merges ("Merge PR N: …"), and nothing in the land path reads crew_verify_range's line. With (1) and (2) it would say "no skip" anyway.

Done-when

  1. The reader (sponsors crew-code, skip_ci_on_landing.ts) reads OFF any workflow whose push to the default branch runs on paths its pull_request does not (a paths or paths-ignore filter on pull_request and not on push). There is a fixture shaped on engine-drift.yml, and a mutant fails it.
  2. martha reads ON at its main tip through that reader. "nothing private" runs on PRs. The drift workflows' push trigger runs only where their PR trigger does, while schedule and workflow_dispatch stay. A land that is cut as a release carries no marker: the tags rule is narrowed to that case, with a test, rather than making the whole repository OFF.
  3. The martha land path reads crew_verify_range's "Merge message:" line at land time, after the last move of main, and puts the marker in the merge message exactly when the line says add.
  4. A land whose base moved is merged and run on the PR first (main merged into the branch, a green PR run on that tip), so it lands with an equal tree. The land order says this.
  5. Measured over the next 10 martha lands: a main push run exists only for a land whose merged tree differs from its green PR tip, or a release land. The runner-minutes are compared with the ~550 above.

Refs martha-ai/martha#43, macula-io/macula-sponsors#79, macula-io/forge-setup#60

Purpose (cost): a martha land whose merged tree a green PR run already tested runs nothing on main, so the forge runs each martha tree once. DECIDED 2026-11-26 Raf, martha#43 comment 5551, rule 1: "A land whose tree equals a PR tip whose runs are green runs nothing on main." Measured there: the 10 martha lands of the last 12 h re-ran all six workflows on main (60 runs, ~550 runner-minutes). ## Why martha lands do not skip today (read 2026-11-26, main 8b7c23bc) The sponsors#79 check (crew_verify_range's "Merge message:" line, landed as sponsors 4dd17e6b) adds the skip-ci marker only when (a) the merge's tree is the PR tip's, (b) the tip is green, and (c) the repository is ON. martha misses (a) on most lands and (c) on all of them. 1. **(a) Most lands have a moved base.** 6 of the last 10 lands (8b7c23bc, 965e3df8, bc8c2c25, cc867613, 6ae2f3e3, 37fb64bb) merged onto a main that had moved past the PR tip. Their merged tree was never run by any PR, so main's run is its only test, and skipping it would be wrong. Only 4 of 10 (6957a0e2, ea799079, 2e937847, c25593e7) had a tip that already held the base. 2. **(c) martha reads OFF**, through three workflows: - `ci.yml`: the "nothing private" job is `if: github.event_name == 'push' && github.ref == 'refs/heads/main'`, so it runs on a main push and never on a PR. It was taken off PRs by DECIDED 2026-11-22 "2 Known reds off PRs" until martha#39, which is now closed. - `release.yml` and `installer.yml` trigger on tag pushes, and martha's release tags point at land merges (v0.4.2 → 0362b405 "Merge PR 159"; installer-v2.0.2 → d4a554a4 "Merge PR 152"). Forgejo skips a tag push whose commit message holds the marker, so a release land that carried it would start no release run. 3. **A main push runs jobs its PR did not (confirmed).** On land 8b7c23bc, main ran engine-drift.yml and host-drift.yml as well as everything PR 200 ran. Both have `pull_request: paths: [...]` but a bare `push: branches: [main]`, so any land runs them. The sponsors#79 reader calls these two workflows ON: it does not compare the paths filters. That is a gap in the reader, and it lives in that code. "nothing private" is the second such job. 4. **The lander does not read the line.** martha lands are hand merges ("Merge PR N: …"), and nothing in the land path reads crew_verify_range's line. With (1) and (2) it would say "no skip" anyway. ## Done-when 1. The reader (sponsors crew-code, skip_ci_on_landing.ts) reads OFF any workflow whose push to the default branch runs on paths its pull_request does not (a paths or paths-ignore filter on pull_request and not on push). There is a fixture shaped on engine-drift.yml, and a mutant fails it. 2. martha reads ON at its main tip through that reader. "nothing private" runs on PRs. The drift workflows' push trigger runs only where their PR trigger does, while schedule and workflow_dispatch stay. A land that is cut as a release carries no marker: the tags rule is narrowed to that case, with a test, rather than making the whole repository OFF. 3. The martha land path reads crew_verify_range's "Merge message:" line at land time, after the last move of main, and puts the marker in the merge message exactly when the line says add. 4. A land whose base moved is merged and run on the PR first (main merged into the branch, a green PR run on that tip), so it lands with an equal tree. The land order says this. 5. Measured over the next 10 martha lands: a main push run exists only for a land whose merged tree differs from its green PR tip, or a release land. The runner-minutes are compared with the ~550 above. Refs martha-ai/martha#43, macula-io/macula-sponsors#79, macula-io/forge-setup#60
Author
Member

Rulings (Mars, 2026-11-26):

  • (b) Ruled: a release land carries no skip-ci marker. Every other land follows the skip check.
  • (a) "nothing private" on PRs reverses DECIDED 2026-11-22 "2 Known reds off PRs", so it is with the Supervisor (Mars's view: yes, martha#39 is closed). Until that ruling the job stays as it is, and martha reads OFF through it.

Build order, after martha#198 lands: Done-when 1 (the reader's paths-filter gap) and the release-land rule in Done-when 2 first. The "nothing private" part of Done-when 2 waits for the ruling.

Rulings (Mars, 2026-11-26): - (b) Ruled: a release land carries no skip-ci marker. Every other land follows the skip check. - (a) "nothing private" on PRs reverses DECIDED 2026-11-22 "2 Known reds off PRs", so it is with the Supervisor (Mars's view: yes, martha#39 is closed). Until that ruling the job stays as it is, and martha reads OFF through it. Build order, after martha#198 lands: Done-when 1 (the reader's paths-filter gap) and the release-land rule in Done-when 2 first. The "nothing private" part of Done-when 2 waits for the ruling.
Author
Member

DECIDED 2026-11-26 Raf: "Yes, back on PRs (Recommended)" (relayed by Mars).

ci.yml's "nothing private" job runs on pull requests again. This reverses DECIDED 2026-11-22 "2 Known reds off PRs" (martha#39 is closed). It is built under this issue, in Done-when 2. The tag rule stands: a release land carries no marker.

DECIDED 2026-11-26 Raf: "Yes, back on PRs (Recommended)" (relayed by Mars). ci.yml's "nothing private" job runs on pull requests again. This reverses DECIDED 2026-11-22 "2 Known reds off PRs" (martha#39 is closed). It is built under this issue, in Done-when 2. The tag rule stands: a release land carries no marker.
Author
Member

Land path, as ruled by Mars on 2026-11-26. This is for the lander, effective once martha PR 244 lands.

  • The script is src/land_a_pull_request_by_hand/land_a_pull_request_by_hand.sh <org/repo> <pr> <tip> <expected-base> <merge-line>. It replaces land_prep.sh and pushes nothing, as before.
  • Config: set MARTHA_LAND_CLONES (the folder of shared clones), MARTHA_LAND_FORGE_API (https://git.macula.io/api/v1) and MARTHA_LAND_TOKEN_FILE. GIT_SSH_COMMAND is used as you set it.
  • The 5th argument is the "Merge message:" line, which the LAND order carries. The dispatcher takes it from crew_verify_range for that exact base and tip, passing release: true when the land will be tagged. Only a line starting Merge message: add [skip ci] ( puts the marker in the merge message. Anything else, an empty line included, adds none.
  • Moved base: no land as it stands. Main is merged into the PR, that tip goes green, and a new LAND order names the new tip and base.
  • Until PR 244 lands, the lander keeps the old script.
Land path, as ruled by Mars on 2026-11-26. This is for the lander, effective once martha PR 244 lands. - The script is `src/land_a_pull_request_by_hand/land_a_pull_request_by_hand.sh <org/repo> <pr> <tip> <expected-base> <merge-line>`. It replaces land_prep.sh and pushes nothing, as before. - Config: set `MARTHA_LAND_CLONES` (the folder of shared clones), `MARTHA_LAND_FORGE_API` (`https://git.macula.io/api/v1`) and `MARTHA_LAND_TOKEN_FILE`. GIT_SSH_COMMAND is used as you set it. - The 5th argument is the "Merge message:" line, which the LAND order carries. The dispatcher takes it from crew_verify_range for that exact base and tip, passing `release: true` when the land will be tagged. Only a line starting `Merge message: add [skip ci] (` puts the marker in the merge message. Anything else, an empty line included, adds none. - Moved base: no land as it stands. Main is merged into the PR, that tip goes green, and a new LAND order names the new tip and base. - Until PR 244 lands, the lander keeps the old script.
Member

Instance (Mars, 2026-11-26): the first land with land_a_pull_request_by_hand.sh (martha#256, PR 257 → c81a2db5) built the merge subject from the branch's LAST commit, here "Merge remote-tracking branch 'origin/main' into hygiea/…", because the builder had merged main into the branch once (the lift rule). Terra amended the subject to the PR title by hand before land_push. Fix: take the subject from the PR title, which the script already reads from the API; a test with a branch whose last commit is a merge of main.

Instance (Mars, 2026-11-26): the first land with land_a_pull_request_by_hand.sh (martha#256, PR 257 → c81a2db5) built the merge subject from the branch's LAST commit, here "Merge remote-tracking branch 'origin/main' into hygiea/…", because the builder had merged main into the branch once (the lift rule). Terra amended the subject to the PR title by hand before land_push. Fix: take the subject from the PR title, which the script already reads from the API; a test with a branch whose last commit is a merge of main.
Author
Member

Owed (Mars's ruling, found by Terra): land_a_pull_request_by_hand.sh takes its merge subject from git log -1 %s of the branch, so when the member's last commit is a merge of main the landing merge is subjected "Merge ... main" instead of the PR title; the subject should come from the PR title. Placed after the coordinator lift; not part of this package.

Owed (Mars's ruling, found by Terra): land_a_pull_request_by_hand.sh takes its merge subject from `git log -1 %s` of the branch, so when the member's last commit is a merge of main the landing merge is subjected "Merge ... main" instead of the PR title; the subject should come from the PR title. Placed after the coordinator lift; not part of this package.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
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#229
No description provided.