ci: the forge runs martha's own workflow directory (martha-engine#11) #12
Loading…
Reference in a new issue
No description provided.
Delete branch "pluto/11-forgejo-workflows"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The forge runs martha's own workflows from
.forgejo/workflows/, and upstream's.github/workflows/stays exactly as it is. Supervisor's ruling of 2026-11-26 (macula-io/forge-setup#60 P1), option (2).Why the directory switch is enough
The forge reads only the first workflow directory that exists on a branch, so once
.forgejo/workflows/is present none of upstream's files queues a run or a task on the forge. Measured ondc117fe5b, a tip carrying both directories with.github/workflows/still whole at 36 files:check-release-pr.yamlsits only under.github, triggers on a plainpull_request, and queued no run. The two.github-only names that did queue on that pull request,dependabot-auto-merge.ymlandquarantine.yml, arepull_request_target: the forge evaluates those from the base branch, where there is no.forgejo/to prefer. A name that sits in both directories queues one run, not two (ci.yml5123,martha-engine-checks.yml5124).So upstream's directory needs no deletion, and
martha-engine-sync.ymlkeeps itsschedule:and its place.What is here
.forgejo/workflows/ci.yml:changes,rust-format,rust-build-and-test,rust-lint, copied out of upstream'sci.yml..forgejo/workflows/martha-engine-checks.yml:checksandthe-evidence-keeps-the-model-log..forgejo/workflows/martha-engine-trials.yml: abuildjob and the nine trial lines, on push to main only, so a pull request never creates nine jobs that can only skip. They build the engine themselves becausedownload_the_artifact.shreads its own run's artifacts and a separate workflow is a separate run.${{ github.workflow }}-${{ github.head_ref || github.ref_name }}), as P3 writes it.cancel-in-progressis${{ github.ref != 'refs/heads/main' }}: a run on the default branch is never cancelled, which is the shape forge-setup#63's canary proved (5074, 5075, 5077 succeeded with two waiting at once, a PR push 5076 cancelled). All three fire on a push to main,martha-engine-checks.ymlincluded.martha/sync/README.mdandpins.envrecord the measurement above, and which files are the fork's on the forge..github/workflows/is byte-for-byte upstream's, so this diff is five added files and no deletions.Done-when
.forgejo/workflowsfiles. Before the land, two of the four runs a pull request carries arepull_request_targetfiles read from the base branch, which still has no.forgejo/. The clean read is post-land and is the proof to take then.c878ce3c. Expected 16: ci 4, checks 2, trials 10. Post-land, one read, and in that same read two main pushes must both conclude non-cancelled..forgejo/. Upstream has no.forgejo/; a merge cannot write there.ci.yml, so drift shows there. The file is in the tree and the sync runs it. Drift is the difference between it and.forgejo/workflows/ci.yml.The sync's lost upstream-CI gate is martha-ai/martha-engine#13, not scheduled this week. Upstream syncs pause until it is ruled.
Refs martha-ai/martha-engine#11, martha-ai/martha-engine#13, macula-io/forge-setup#60
Post-land read, 2026-11-26
06524f2eca1ecarries five runs from three workflow files, all three in.forgejo/workflows/: ci.yml (5194, 4 tasks), martha-engine-checks.yml (5195, 2 tasks), martha-engine-trials.yml (5196, 10 tasks), plus 5192 and 5193, the merge's ownpull_requestrows, skipped by the workflows' guards. No.github/workflows/name produced a run.06524f2eca1eand 44 on pushc878ce3cd6. 16 against 44, all 16 of them success.06524f2eca1econcluded non-cancelled: 5194, 5195 and 5196 all success. The pushes after it (27d48e8db5,40a2b77d2b,b5af6bc3e3) each had ci.yml and martha-engine-checks.yml conclude success, but each of their trials runs reads cancelled, because the crew-wide job cancel of 2026-11-26 stopped 5318, 5472, 5523, 5555 and 5610 in one sweep between 09:53:06Z and 09:53:07Z. No run was cancelled by the workflow or by a later push. So the second half of that line holds for ci.yml and martha-engine-checks.yml and is not claimed for martha-engine-trials.yml.