ci: upstream's CI goes inert on the forge and .forgejo/workflows carries martha's own (forge-setup#60 P1) #11

Closed
opened 2026-11-26 00:58:21 +00:00 by pluto · 4 comments
Member

Purpose (platform): martha-engine runs martha's CI on the forge from its own workflow files, and upstream's GitHub-only workflows stop queueing a task there.

DECIDED 2026-11-25 (Raf, via the Supervisor): "1. martha-engine: upstream CI off, 2. Skip re-test on landing, 3. Cancel stale runs, 4. Self-renting build box".

Cut by Uranus in macula-io/forge-setup#60 comment 5259, package P1. Its text, quoted:

P1 · martha-ai/martha-engine · upstream CI off on the forge (ruling 1)

  • Files: new .forgejo/workflows/ci.yml, holding the 4 jobs martha relies on from upstream's ci.yml (changes, format, build-and-test, lint). martha-engine-checks.yml and martha-engine-sync.yml move to .forgejo/workflows/. .github/workflows/ stays byte-for-byte upstream's.
  • The forge reads only the first directory that exists (v15.0.12 ListWorkflows), so the other 34 upstream workflows go inert. The per-workflow web switches are then not needed.
  • The new files carry (3) from the start: the concurrency group and a closed cancel (as P3 writes them).
  • Done-when:
    1. A push to a branch creates runs only of the .forgejo/workflows files: run list with ids, no upstream workflow name in it.
    2. One main push makes at most 16 tasks, against 44 on c878ce3c (tasks API count).
    3. An upstream sync run changes nothing under .forgejo/.
    4. The sync job still reads upstream's ci.yml, so drift shows there.
  • After it lands, martha-engine is ON for (2) by P2's own check. No list needs editing.

This is a named fork patch, recorded the way #8 was: the patch list in martha/sync/README.md and FORK_WORKFLOWS in martha/sync/pins.env name the workflows that may run.

Built after martha-engine#8 lands, because it is the same files' area. Review r1: Neptunus.

Refs macula-io/forge-setup#60, martha-ai/martha-engine#8

Purpose (platform): martha-engine runs martha's CI on the forge from its own workflow files, and upstream's GitHub-only workflows stop queueing a task there. DECIDED 2026-11-25 (Raf, via the Supervisor): "1. martha-engine: upstream CI off, 2. Skip re-test on landing, 3. Cancel stale runs, 4. Self-renting build box". Cut by Uranus in macula-io/forge-setup#60 comment 5259, package P1. Its text, quoted: > ## P1 · martha-ai/martha-engine · upstream CI off on the forge (ruling 1) > - Files: new `.forgejo/workflows/ci.yml`, holding the 4 jobs martha relies on from upstream's ci.yml (changes, format, build-and-test, lint). `martha-engine-checks.yml` and `martha-engine-sync.yml` move to `.forgejo/workflows/`. `.github/workflows/` stays byte-for-byte upstream's. > - The forge reads only the first directory that exists (v15.0.12 `ListWorkflows`), so the other 34 upstream workflows go inert. The per-workflow web switches are then not needed. > - The new files carry (3) from the start: the concurrency group and a `closed` cancel (as P3 writes them). > - Done-when: > 1. A push to a branch creates runs only of the `.forgejo/workflows` files: run list with ids, no upstream workflow name in it. > 2. One main push makes at most 16 tasks, against 44 on c878ce3c (tasks API count). > 3. An upstream sync run changes nothing under `.forgejo/`. > 4. The sync job still reads upstream's ci.yml, so drift shows there. > - After it lands, martha-engine is ON for (2) by P2's own check. No list needs editing. This is a named fork patch, recorded the way #8 was: the patch list in `martha/sync/README.md` and `FORK_WORKFLOWS` in `martha/sync/pins.env` name the workflows that may run. Built after martha-engine#8 lands, because it is the same files' area. Review r1: Neptunus. Refs macula-io/forge-setup#60, martha-ai/martha-engine#8
Author
Member

Recon while this waits on #8, recorded so the build starts from checked ground. Two points, no change to the cut.

The 4 jobs, mapped. Upstream's ci.yml carries 15 jobs, so "the 4 jobs martha relies on (changes, format, build-and-test, lint)" resolves to changes, rust-format, rust-build-and-test, rust-lint (ci.yml lines 16, 75, 93, 351). The other 11 are dropped: goose-acp-npm-packages, rust-build-lean, rust-check-wasm, goose-sdk-uniffi, rust-build-and-test-tls, rust-build-and-test-roaming, rust-msrv, schema-check, gdk-release-config-check, gdk-api-docs-check, desktop-updater-install.

"The other 34 upstream workflows" reads 28 once #8 lands. The cut says 34; that was counted before #8's six deletions. On the #8 branch .github/workflows/ holds 30 files: 2 are the fork's own (martha-engine-checks.yml, martha-engine-sync.yml) and 28 are upstream's, ci.yml among them. So the inert set after this lands is 28, and Done-when 1 should be read as naming none of those 28. Done-when 2's baseline is unaffected; 44 and 16 are task counts, not file counts.

Also noted for the build: martha-engine-checks.yml has 12 jobs and none of them is changes/format/build-and-test/lint, so the new .forgejo/workflows/ci.yml duplicates nothing that file already runs. And the whole approach rests on Forgejo v15.0.12 reading only the first existing workflow directory, which I will prove on the box rather than assume, since .forgejo does not exist in the tree yet.

Recon while this waits on #8, recorded so the build starts from checked ground. Two points, no change to the cut. **The 4 jobs, mapped.** Upstream's `ci.yml` carries 15 jobs, so "the 4 jobs martha relies on (changes, format, build-and-test, lint)" resolves to `changes`, `rust-format`, `rust-build-and-test`, `rust-lint` (ci.yml lines 16, 75, 93, 351). The other 11 are dropped: goose-acp-npm-packages, rust-build-lean, rust-check-wasm, goose-sdk-uniffi, rust-build-and-test-tls, rust-build-and-test-roaming, rust-msrv, schema-check, gdk-release-config-check, gdk-api-docs-check, desktop-updater-install. **"The other 34 upstream workflows" reads 28 once #8 lands.** The cut says 34; that was counted before #8's six deletions. On the #8 branch `.github/workflows/` holds 30 files: 2 are the fork's own (martha-engine-checks.yml, martha-engine-sync.yml) and 28 are upstream's, ci.yml among them. So the inert set after this lands is 28, and Done-when 1 should be read as naming none of those 28. Done-when 2's baseline is unaffected; 44 and 16 are task counts, not file counts. Also noted for the build: `martha-engine-checks.yml` has 12 jobs and none of them is changes/format/build-and-test/lint, so the new `.forgejo/workflows/ci.yml` duplicates nothing that file already runs. And the whole approach rests on Forgejo v15.0.12 reading only the first existing workflow directory, which I will prove on the box rather than assume, since `.forgejo` does not exist in the tree yet.
Author
Member

The post-first-push run read is negative. The forge still reads .github/workflows.

PR 12 (branch pluto/11-forgejo-workflows, tip dc117fe5b) carries both directories: 3 files under
.forgejo/workflows/, 36 under .github/workflows/. The forge queued four runs on the pull request:

run workflow exists under
5121 dependabot-auto-merge.yml .github only
5122 quarantine.yml .github only
5123 ci.yml both
5124 martha-engine-checks.yml both

dependabot-auto-merge.yml and quarantine.yml have no counterpart under .forgejo. They queued anyway. So the
premise this package was cut on, that Forgejo v15.0.12 reads only the first workflow directory that exists, does not
hold on this forge, and putting the fork's workflows in .forgejo/workflows/ does not make .github/workflows/ inert.

Still open, and not guessed at. All four runs read waiting and the forge has created no tasks for them, so no job
list exists to count. The decisive number is run 5123's job count: the .forgejo ci.yml here has 4 jobs, upstream's
.github one has 15. A watcher is on it and the number goes here when the forge creates the tasks.

Two readings if it comes back 15, and they need different fixes: either .forgejo/workflows/ is ignored outright on
this version, or the two directories are merged and .github stays live. The first is a version question; the second
means the lever has to change, and deleting the upstream-only files (the #8 approach) remains the one shape proven to
work here.

Not claimed: this issue is not evidence that the canary/release hang is gone. canary.yml and release.yml fire on
push to main and are exactly the class still exposed by these two runs, so the hang is not covered by this change as it
currently stands.

Refs macula-io/forge-setup#60, martha-ai/martha-engine#12

**The post-first-push run read is negative. The forge still reads `.github/workflows`.** PR 12 (branch `pluto/11-forgejo-workflows`, tip `dc117fe5b`) carries both directories: 3 files under `.forgejo/workflows/`, 36 under `.github/workflows/`. The forge queued four runs on the pull request: | run | workflow | exists under | |---|---|---| | 5121 | `dependabot-auto-merge.yml` | **.github only** | | 5122 | `quarantine.yml` | **.github only** | | 5123 | `ci.yml` | both | | 5124 | `martha-engine-checks.yml` | both | `dependabot-auto-merge.yml` and `quarantine.yml` have no counterpart under `.forgejo`. They queued anyway. So the premise this package was cut on, that Forgejo v15.0.12 reads only the first workflow directory that exists, does not hold on this forge, and putting the fork's workflows in `.forgejo/workflows/` does not make `.github/workflows/` inert. **Still open, and not guessed at.** All four runs read `waiting` and the forge has created no tasks for them, so no job list exists to count. The decisive number is run 5123's job count: the `.forgejo` `ci.yml` here has 4 jobs, upstream's `.github` one has 15. A watcher is on it and the number goes here when the forge creates the tasks. Two readings if it comes back 15, and they need different fixes: either `.forgejo/workflows/` is ignored outright on this version, or the two directories are merged and `.github` stays live. The first is a version question; the second means the lever has to change, and deleting the upstream-only files (the #8 approach) remains the one shape proven to work here. **Not claimed:** this issue is not evidence that the canary/release hang is gone. `canary.yml` and `release.yml` fire on push to main and are exactly the class still exposed by these two runs, so the hang is not covered by this change as it currently stands. Refs macula-io/forge-setup#60, martha-ai/martha-engine#12
Author
Member

Ruled (b) with the schedule removed, and built. The run-list proof, read once on a158ca6de.

What is now in the tree:

  • .forgejo/workflows/ci.yml (4 jobs), martha-engine-checks.yml (2 jobs), martha-engine-trials.yml (build + 9 lines, push to main only).
  • 34 upstream workflows deleted, every one with a trigger the forge honours. .github/actions stays: the .forgejo workflows use it.
  • martha-engine-sync.yml keeps its place in .github because GitHub can only call a workflow that is there, but it no longer has a schedule:; it is dispatched by hand. martha-engine-checks.yml stays beside it because the sync calls it by path.
  • martha/sync/deleted_workflows.txt names the 34, and merge_the_upstream_change.sh resolves those paths as deleted on a modify/delete conflict and deletes a workflow upstream adds.
  • The sync's lost gate is martha-ai/martha-engine#13, not scheduled this week.

The read. Four runs were created on a158ca6de:

run workflow where the file lives
5136 dependabot-auto-merge.yml deleted at this tip
5137 quarantine.yml deleted at this tip
5138 ci.yml .forgejo/workflows/
5139 martha-engine-checks.yml .forgejo/workflows/

Two of the four are files this tip does not contain, so at first read the deletion looks like it did not work. It did, and the reason is worth recording because it sets when the proof can be taken:

both are pull_request_target, and that trigger evaluates the workflow from the BASE branch, not the head. I checked all three facts: both files are pull_request_target on main, both are absent from a158ca6de, and both still ran. So on any pull request they keep running from whatever main holds, and they stop the moment this deletion is on main.

That means the clean read, "only .forgejo runs on the tip", is a POST-LAND read, exactly as Mars said. I am not claiming it from this pre-land read. When it is redone after the land there should be two runs, 5138 and 5139's successors, and nothing else.

ci.yml and martha-engine-checks.yml each ran once, not twice, though both names exist in both directories. The forge takes one of them, which is what makes leaving the GitHub-side copies in place free.

**Ruled (b) with the schedule removed, and built. The run-list proof, read once on `a158ca6de`.** What is now in the tree: - `.forgejo/workflows/ci.yml` (4 jobs), `martha-engine-checks.yml` (2 jobs), `martha-engine-trials.yml` (build + 9 lines, push to main only). - 34 upstream workflows deleted, every one with a trigger the forge honours. `.github/actions` stays: the `.forgejo` workflows use it. - `martha-engine-sync.yml` keeps its place in `.github` because GitHub can only call a workflow that is there, but it no longer has a `schedule:`; it is dispatched by hand. `martha-engine-checks.yml` stays beside it because the sync calls it by path. - `martha/sync/deleted_workflows.txt` names the 34, and `merge_the_upstream_change.sh` resolves those paths as deleted on a modify/delete conflict and deletes a workflow upstream adds. - The sync's lost gate is martha-ai/martha-engine#13, not scheduled this week. **The read.** Four runs were created on `a158ca6de`: | run | workflow | where the file lives | |---|---|---| | 5136 | `dependabot-auto-merge.yml` | deleted at this tip | | 5137 | `quarantine.yml` | deleted at this tip | | 5138 | `ci.yml` | `.forgejo/workflows/` | | 5139 | `martha-engine-checks.yml` | `.forgejo/workflows/` | Two of the four are files this tip does not contain, so at first read the deletion looks like it did not work. It did, and the reason is worth recording because it sets when the proof can be taken: **both are `pull_request_target`, and that trigger evaluates the workflow from the BASE branch, not the head.** I checked all three facts: both files are `pull_request_target` on `main`, both are absent from `a158ca6de`, and both still ran. So on any pull request they keep running from whatever main holds, and they stop the moment this deletion is on main. That means the clean read, "only `.forgejo` runs on the tip", is a POST-LAND read, exactly as Mars said. I am not claiming it from this pre-land read. When it is redone after the land there should be two runs, 5138 and 5139's successors, and nothing else. `ci.yml` and `martha-engine-checks.yml` each ran once, not twice, though both names exist in both directories. The forge takes one of them, which is what makes leaving the GitHub-side copies in place free.
Author
Member

Close-out, read on the forge today.

Done when 1. A push to a branch creates runs only of the .forgejo/workflows files. Main 06524f2eca1e (Merge PR 12) has five runs from three workflow files, and all three sit in .forgejo/workflows/: ci.yml, martha-engine-checks.yml, martha-engine-trials.yml.

run workflow event result tasks
5192 ci.yml pull_request skipped -
5193 martha-engine-checks.yml pull_request skipped -
5194 ci.yml push success 4
5195 martha-engine-checks.yml push success 2
5196 martha-engine-trials.yml push success 10

5192 and 5193 are the merge's own pull_request rows, skipped by the workflows' guards, so the push event is the only one that ran anything. No upstream workflow name appears on the tip, and none of the 40 files in .github/workflows/ produced a run.

Done when 2. One main push makes at most 16 tasks, against 44 on c878ce3c. Re-read with the tasks API: push 06524f2eca1e is 16 tasks (changes, Check Rust Code Format, Build and Test Rust Project, Lint Rust Code; The evidence keeps the model server's log, Build the engine and run the fork's checks; Build the engine for the trial lines and Trial lines, job 1 to job 9 of 9). All 16 ended success. The same count on push c878ce3cd6 is 44.

Successive main pushes did not cancel each other. The pushes after this one are 27d48e8db5, 40a2b77d2b and b5af6bc3e3. Every ci.yml and martha-engine-checks.yml run on all three ended success, and the trials runs queued behind 5196 instead of cancelling it; 5196 ended success at 09:00:50Z.

The trials runs 5318, 5472 and 5523 read cancelled, and that is the crew-wide job cancel of 2026-11-26, not the workflow: 5318, 5472, 5523, 5555 and 5610 were all stopped between 09:53:06Z and 09:53:07Z, one sweep across two workflows and two refs. Nothing in martha-engine-trials.yml cancelled a run, and its header still says no run of it may ever be cancelled.

Done-when 3 and 4 belong to the sync, which moved to #13 with its runs recorded there.

Refs #13, martha-ai/martha-engine#12.

Close-out, read on the forge today. **Done when 1. A push to a branch creates runs only of the `.forgejo/workflows` files.** Main `06524f2eca1e` (`Merge PR 12`) has five runs from three workflow files, and all three sit in `.forgejo/workflows/`: ci.yml, martha-engine-checks.yml, martha-engine-trials.yml. | run | workflow | event | result | tasks | |------|--------------------------|--------------|---------|-------| | 5192 | ci.yml | pull_request | skipped | - | | 5193 | martha-engine-checks.yml | pull_request | skipped | - | | 5194 | ci.yml | push | success | 4 | | 5195 | martha-engine-checks.yml | push | success | 2 | | 5196 | martha-engine-trials.yml | push | success | 10 | 5192 and 5193 are the merge's own `pull_request` rows, skipped by the workflows' guards, so the push event is the only one that ran anything. No upstream workflow name appears on the tip, and none of the 40 files in `.github/workflows/` produced a run. **Done when 2. One main push makes at most 16 tasks, against 44 on c878ce3c.** Re-read with the tasks API: push `06524f2eca1e` is 16 tasks (`changes`, `Check Rust Code Format`, `Build and Test Rust Project`, `Lint Rust Code`; `The evidence keeps the model server's log`, `Build the engine and run the fork's checks`; `Build the engine for the trial lines` and `Trial lines, job 1` to `job 9 of 9`). All 16 ended success. The same count on push `c878ce3cd6` is 44. **Successive main pushes did not cancel each other.** The pushes after this one are `27d48e8db5`, `40a2b77d2b` and `b5af6bc3e3`. Every ci.yml and martha-engine-checks.yml run on all three ended success, and the trials runs queued behind 5196 instead of cancelling it; 5196 ended success at 09:00:50Z. The trials runs 5318, 5472 and 5523 read cancelled, and that is the crew-wide job cancel of 2026-11-26, not the workflow: 5318, 5472, 5523, 5555 and 5610 were all stopped between 09:53:06Z and 09:53:07Z, one sweep across two workflows and two refs. Nothing in martha-engine-trials.yml cancelled a run, and its header still says no run of it may ever be cancelled. Done-when 3 and 4 belong to the sync, which moved to #13 with its runs recorded there. Refs #13, martha-ai/martha-engine#12.
pluto closed this issue 2026-11-26 10:01:41 +00:00
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-engine#11
No description provided.