Upstream CI off on the forge: the sync stops dispatching upstream's fifteen jobs, and the rustls-tls configuration Martha ships is tested by the fork's checks #18

Closed
opened 2026-11-27 03:04:07 +00:00 by pluto · 3 comments
Member

Refs martha-ai/martha-engine#13
Refs martha-ai/martha-engine#1
Refs martha-ai/martha-engine#15

Purpose (cost): a forge sync round queues the fork's own checks and nothing else, instead of upstream's sixteen-job gate, and the one engine configuration Martha's members run is still built and tested on the sync branch.

Ruling: Raf, 2026-11-25 (macula-io/forge-setup#60, "martha-engine: upstream CI off"). The forge sync should never have started upstream's CI: on 2026-11-27 the #13 sync run 5792 dispatched it as run 5793, sixteen jobs queued on the runners, and five of them were red (check 6235 on #13 names each one's kind). Twelve of those sixteen jobs are upstream-only surfaces, not what a martha-engine member runs on Linux x64.

What changes:

  • .forgejo/workflows/upstream-ci.yml goes. It is the fork's copy of upstream's ci.yml (#13's port); with the dispatch gone it has no trigger and no caller.
  • .forgejo/workflows/martha-engine-sync.yml loses its upstream-ci job and the two needs: entries that wait on it, so the gate is the fork's checks (martha-engine-checks.yml, called on the sync branch) and nothing else. A red check still stops the sync on the branch and name-the-patch still names what the merge changed.
  • martha/sync/dispatch_and_watch_the_run.sh and its case go with the dispatch they exist for; martha/sync/README.md says what the gate is now.
  • The one configuration Martha's members run stays tested: the ACP binary is built with --features rustls-tls,... (.github/workflows/build-acp.yml), portable-default carries rustls-tls, and martha-engine-checks.yml's checks job now runs the goose lib's tests in that configuration. The two cases whose premise is a read-only directory run as an unprivileged user, the shape ci.yml already uses on the forge, because the job container runs as root and root ignores file modes (goose_apps::cache::tests::missing_read_only_cache_entry_still_lists_compiled_default, assertion failed: !app_path.exists(), 2300 passed 1 failed in 5793).

.github/workflows stays upstream's byte for byte (#15); nothing of upstream's is edited, only switched off.

Done when: a sync run's tasks are merge, checks, pull-request (and name-the-patch only on a red) and no upstream job runs at all; upstream-ci.yml is gone from .forgejo/workflows; the checks job runs the goose lib's tests with portable-default (rustls-tls) and passes on the forge, the two read-only cases included, as an unprivileged user.

Refs martha-ai/martha-engine#13 Refs martha-ai/martha-engine#1 Refs martha-ai/martha-engine#15 Purpose (cost): a forge sync round queues the fork's own checks and nothing else, instead of upstream's sixteen-job gate, and the one engine configuration Martha's members run is still built and tested on the sync branch. Ruling: Raf, 2026-11-25 (macula-io/forge-setup#60, "martha-engine: upstream CI off"). The forge sync should never have started upstream's CI: on 2026-11-27 the #13 sync run 5792 dispatched it as run 5793, sixteen jobs queued on the runners, and five of them were red (`check` 6235 on #13 names each one's kind). Twelve of those sixteen jobs are upstream-only surfaces, not what a martha-engine member runs on Linux x64. What changes: - `.forgejo/workflows/upstream-ci.yml` goes. It is the fork's copy of upstream's `ci.yml` (#13's port); with the dispatch gone it has no trigger and no caller. - `.forgejo/workflows/martha-engine-sync.yml` loses its `upstream-ci` job and the two `needs:` entries that wait on it, so the gate is the fork's checks (`martha-engine-checks.yml`, called on the sync branch) and nothing else. A red check still stops the sync on the branch and `name-the-patch` still names what the merge changed. - `martha/sync/dispatch_and_watch_the_run.sh` and its case go with the dispatch they exist for; `martha/sync/README.md` says what the gate is now. - The one configuration Martha's members run stays tested: the ACP binary is built with `--features rustls-tls,...` (`.github/workflows/build-acp.yml`), `portable-default` carries `rustls-tls`, and `martha-engine-checks.yml`'s `checks` job now runs the goose lib's tests in that configuration. The two cases whose premise is a read-only directory run as an unprivileged user, the shape `ci.yml` already uses on the forge, because the job container runs as root and root ignores file modes (`goose_apps::cache::tests::missing_read_only_cache_entry_still_lists_compiled_default`, `assertion failed: !app_path.exists()`, 2300 passed 1 failed in 5793). `.github/workflows` stays upstream's byte for byte (#15); nothing of upstream's is edited, only switched off. Done when: a sync run's tasks are `merge`, `checks`, `pull-request` (and `name-the-patch` only on a red) and no upstream job runs at all; `upstream-ci.yml` is gone from `.forgejo/workflows`; the `checks` job runs the goose lib's tests with `portable-default` (rustls-tls) and passes on the forge, the two read-only cases included, as an unprivileged user.
Author
Member

Measured cost on the forge for the configuration Martha ships (run 5804, job 24638, tip 96b82a29):

  • The added step, "The rustls-tls configuration's tests", ran 03:16:37Z to 03:21:33Z, about 5 minutes. Most of that is the cargo build; the tests themselves take 65.46 s.
  • cargo test -p goose --lib --features portable-default: 2472 passed, 0 failed, 2 filtered out, 65.46 s, and the job prints rustls-tls in the feature list it compiled.
  • The two read-only cases then run alone, from a copied test binary under tini via setpriv as nobody: 1 passed each (0.05 s and 0.03 s), the same shape ci.yml already uses for them.
  • The whole checks job took 12m28s (03:09:49Z to 03:22:17Z) of its 35-minute timeout, so the step leaves about 22 minutes of headroom.

Both runs on this tip are green: 5803 (ci.yml) success with all four jobs, and 5804 (martha-engine-checks) success.

Refs #18

Measured cost on the forge for the configuration Martha ships (run 5804, job 24638, tip 96b82a29): - The added step, "The rustls-tls configuration's tests", ran 03:16:37Z to 03:21:33Z, about 5 minutes. Most of that is the cargo build; the tests themselves take 65.46 s. - `cargo test -p goose --lib --features portable-default`: 2472 passed, 0 failed, 2 filtered out, 65.46 s, and the job prints rustls-tls in the feature list it compiled. - The two read-only cases then run alone, from a copied test binary under tini via setpriv as nobody: 1 passed each (0.05 s and 0.03 s), the same shape ci.yml already uses for them. - The whole checks job took 12m28s (03:09:49Z to 03:22:17Z) of its 35-minute timeout, so the step leaves about 22 minutes of headroom. Both runs on this tip are green: 5803 (ci.yml) success with all four jobs, and 5804 (martha-engine-checks) success. Refs #18
Author
Member

Done-when checked against main 96b82a297a (the #18 land).

Met: upstream-ci.yml is gone from .forgejo/workflows (the directory now holds ci.yml, martha-engine-checks.yml, martha-engine-sync.yml, martha-engine-trials.yml).

Met: the checks job runs the goose lib's tests in the rustls-tls configuration and passes on the forge. Run 5818, job 24686 "Build the engine and run the fork's checks", success on the push to 96b82a29. Its "The rustls-tls configuration's tests" step runs cargo test -p goose --lib --no-default-features --features portable-default and then the two read-only cases from the same binary under setpriv --reuid=nobody, not skipped.

Not yet shown: a sync run's tasks are merge, checks, pull-request with name-the-patch only on a red, and no upstream job. No sync run has fired since the land. The last sync round was 5792 (failure) and 5793 (cancelled), started 04:00 UTC on 2026-11-27, before 96b82a29. The next scheduled run is 2026-11-28 04:00 UTC, or a workflow_dispatch. The workflow on main declares exactly those four jobs: checks needs merge, name-the-patch needs [merge, checks] under if: failure(), pull-request needs [merge, checks].

So #18 stays open until that sync run is read. The worktree is finished: /home/rl/work/worktrees/martha-engine-18-upstream-ci-off removed, branch pluto/18-upstream-ci-off removed locally and on the origin (its tip is main's 96b82a29).

Done-when checked against main 96b82a297a039e00492579c0c8547f7c28de6d74 (the #18 land). Met: `upstream-ci.yml` is gone from `.forgejo/workflows` (the directory now holds ci.yml, martha-engine-checks.yml, martha-engine-sync.yml, martha-engine-trials.yml). Met: the `checks` job runs the goose lib's tests in the rustls-tls configuration and passes on the forge. Run 5818, job 24686 "Build the engine and run the fork's checks", success on the push to 96b82a29. Its "The rustls-tls configuration's tests" step runs `cargo test -p goose --lib --no-default-features --features portable-default` and then the two read-only cases from the same binary under `setpriv --reuid=nobody`, not skipped. Not yet shown: a sync run's tasks are `merge`, `checks`, `pull-request` with `name-the-patch` only on a red, and no upstream job. No sync run has fired since the land. The last sync round was 5792 (failure) and 5793 (cancelled), started 04:00 UTC on 2026-11-27, before 96b82a29. The next scheduled run is 2026-11-28 04:00 UTC, or a `workflow_dispatch`. The workflow on main declares exactly those four jobs: `checks` needs `merge`, `name-the-patch` needs [merge, checks] under `if: failure()`, `pull-request` needs [merge, checks]. So #18 stays open until that sync run is read. The worktree is finished: /home/rl/work/worktrees/martha-engine-18-upstream-ci-off removed, branch pluto/18-upstream-ci-off removed locally and on the origin (its tip is main's 96b82a29).
Author
Member

Done-when 1, read on run 5828 (the scheduled sync, ScheduleID 406, created 2026-11-27T04:00:53Z on 96b82a29, success in 24 s).

What the run queued: merge (24719) success, checks (24736) success, name-the-patch (24721) skipped, pull-request's report job (24722) skipped, and no upstream job: the workflow no longer declares one and upstream-ci.yml is gone from .forgejo/workflows.

Why checks and pull-request did no work: the merge job's own log ends on pick_the_upstream_change: sync/51f875e66286 is not finished; a person finishes it first. The round stopped on yesterday's unfinished sync branch, so it had no fresh sync branch to check or report; the two inner jobs of the called checks workflow (24737, 24738) were skipped and job 24736's log is the empty placeholder. name-the-patch staying skipped is what a green round does.

So the tasks a sync round can queue are merge, checks, pull-request, with name-the-patch only on a red, and no upstream job at all. The checks and pull-request jobs executing on a green sync branch is what the next completed round shows; 5828 stopped before them.

Closing on that shape. The unfinished branch sync/51f875e66286 is separate from this issue: until a person finishes it and dispatches the sync with resume, no sync round gets past merge.

Done-when 1, read on run 5828 (the scheduled sync, ScheduleID 406, created 2026-11-27T04:00:53Z on 96b82a29, success in 24 s). What the run queued: `merge` (24719) success, `checks` (24736) success, `name-the-patch` (24721) skipped, `pull-request`'s report job (24722) skipped, and no upstream job: the workflow no longer declares one and `upstream-ci.yml` is gone from `.forgejo/workflows`. Why `checks` and `pull-request` did no work: the merge job's own log ends on `pick_the_upstream_change: sync/51f875e66286 is not finished; a person finishes it first`. The round stopped on yesterday's unfinished sync branch, so it had no fresh sync branch to check or report; the two inner jobs of the called checks workflow (24737, 24738) were skipped and job 24736's log is the empty placeholder. `name-the-patch` staying skipped is what a green round does. So the tasks a sync round can queue are `merge`, `checks`, `pull-request`, with `name-the-patch` only on a red, and no upstream job at all. The `checks` and `pull-request` jobs executing on a green sync branch is what the next completed round shows; 5828 stopped before them. Closing on that shape. The unfinished branch `sync/51f875e66286` is separate from this issue: until a person finishes it and dispatches the sync with `resume`, no sync round gets past `merge`.
pluto closed this issue 2026-11-27 04:47:42 +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#18
No description provided.