ci: every job runs in the ci-martha image, named once by digest (#63, #55 A3 step 2) #72

Closed
juno wants to merge 3 commits from juno/55-ci-martha-container into main
Member

One digest, nineteen times: every ci.yml job names git.macula.io/macula-io/macula-ci-martha@sha256:71c6a0f9…728 in its own container: block, because the forge's loader refuses the YAML alias this PR first used. DECIDED 2026-11-23 "19 literals, lint clean (Recommended)".

Why not one place. #63's probe (branch juno/63-pull-proof): container: *ci_martha fails with no job and never starts (run 2119 — and the same, twice, with a public image and no credentials), while two inline container jobs load and run (run 2121, both green). A workflow-level env with image: ${{ env.CI_MARTHA_IMAGE }} does run on the forge (run 2132, green), but our own actionlint gate refuses env in container.image — 19 findings, exit 1 — and linting stays whole.

The one command that bumps all 19 lines.

sed -i 's|71c6a0f92f116a3936ca62d8e3ac66ae3997a1b6b54b26fad7fbcf08e8b9b728|<new-digest>|g' .github/workflows/*.yml

Today the digest occurs 19 times, all of them in ci.yml; the glob covers every workflow, so a later move of the image is covered too.

The pull. A job's own run token cannot read a private org's registry (martha#61): #63's probe was refused with it, both as a job container and as a step login (run 2040). The read is a read:package-only account — the macula-io org variable as the username, the org secret as the token — handed to the runner by container.credentials. Run 2052 task 3515 is the proof that this form starts a job in the image on a forge runner; run 2052 task 3516 records that a step-level docker login cannot work, because a forge job has no container tool.

What goes, job by job.

  • All 19 jobs: the local a_runner_user_with_sudo step (the image ships martha-step and the ordinary user the workflow's default shell runs as) and setup-node/setup-go.
  • links: the lychee-action step and the /usr/local/bin link it needed; the image's lychee is run directly and held to its exit status, as before.
  • gate: the archive installs of bubblewrap and strace, and the tmux apt-get fallback; the bwrap proof, the AppArmor sysctl and the tmux floor check stay.
  • workflows: the go install actionlint; the image carries actionlint at the release its Containerfile pins.

What stays, and why. The archive retry's self-test (the action still installs through it in standalone.yml, engine-drift.yml and host-drift.yml, which move onto the image in a follow-up), the clean-install proof's own image pin (production), and the direnv and kitty fetches (they install into the runner's temp and move into the image in A3 step 3).

The checkout is handed to node. The container starts as root for actions/checkout, and martha-step runs every default-shell step as node, so each job now has one step straight after the checkout — shell: sh, so it runs as the container's root, chown -R node:node "$GITHUB_WORKSPACE" "$RUNNER_TEMP". That is the line the removed action's chown did, and without it the run is red for the reasons its own log gives: npm ci fails EACCES … mkdir '…/node_modules' (task 3935) and git refuses the tree as "dubious ownership" (task 3944), both on run 443.

Checked here, at this tip. The file parses as YAML with 19 jobs and 19 container: blocks, each carrying the same digest literal and none an anchor or alias, and each job's first step after the checkout is the plain-sh hand-over above; actionlint 1.7.12 — the version the image carries — exits 0 with no ignore in .github/actionlint.yaml, which is unchanged; check:every-check-runs-in-a-job (17 checks) and check:every-job-has-a-timeout (42 jobs) are green; check:restated-values over origin/main..HEAD is green.

Known reds this package does not fix: nothing private (the accepted red of #60), gate coverage (#755) and the clean-install proof (#3) are red on main too.

One consequence, stated plainly: on github.com these jobs no longer run, because the registry is the forge's.

Refs #63, #55.

One digest, nineteen times: every ci.yml job names `git.macula.io/macula-io/macula-ci-martha@sha256:71c6a0f9…728` in its own `container:` block, because the forge's loader refuses the YAML alias this PR first used. DECIDED 2026-11-23 "19 literals, lint clean (Recommended)". **Why not one place.** #63's probe (branch `juno/63-pull-proof`): `container: *ci_martha` fails with no job and never starts (run 2119 — and the same, twice, with a public image and no credentials), while two inline container jobs load and run (run 2121, both green). A workflow-level `env` with `image: ${{ env.CI_MARTHA_IMAGE }}` does run on the forge (run 2132, green), but our own actionlint gate refuses `env` in `container.image` — 19 findings, exit 1 — and linting stays whole. **The one command that bumps all 19 lines.** sed -i 's|71c6a0f92f116a3936ca62d8e3ac66ae3997a1b6b54b26fad7fbcf08e8b9b728|<new-digest>|g' .github/workflows/*.yml Today the digest occurs 19 times, all of them in `ci.yml`; the glob covers every workflow, so a later move of the image is covered too. **The pull.** A job's own run token cannot read a private org's registry (martha#61): #63's probe was refused with it, both as a job container and as a step login (run 2040). The read is a read:package-only account — the macula-io org variable as the username, the org secret as the token — handed to the runner by `container.credentials`. Run 2052 task 3515 is the proof that this form starts a job in the image on a forge runner; run 2052 task 3516 records that a step-level `docker login` cannot work, because a forge job has no container tool. **What goes, job by job.** - All 19 jobs: the local `a_runner_user_with_sudo` step (the image ships `martha-step` and the ordinary user the workflow's default shell runs as) and `setup-node`/`setup-go`. - `links`: the `lychee-action` step and the `/usr/local/bin` link it needed; the image's lychee is run directly and held to its exit status, as before. - `gate`: the archive installs of bubblewrap and strace, and the tmux `apt-get` fallback; the bwrap proof, the AppArmor sysctl and the tmux floor check stay. - `workflows`: the `go install actionlint`; the image carries actionlint at the release its Containerfile pins. **What stays, and why.** The archive retry's self-test (the action still installs through it in standalone.yml, engine-drift.yml and host-drift.yml, which move onto the image in a follow-up), the clean-install proof's own image pin (production), and the direnv and kitty fetches (they install into the runner's temp and move into the image in A3 step 3). **The checkout is handed to `node`.** The container starts as root for `actions/checkout`, and martha-step runs every default-shell step as `node`, so each job now has one step straight after the checkout — `shell: sh`, so it runs as the container's root, `chown -R node:node "$GITHUB_WORKSPACE" "$RUNNER_TEMP"`. That is the line the removed action's `chown` did, and without it the run is red for the reasons its own log gives: `npm ci` fails `EACCES … mkdir '…/node_modules'` (task 3935) and git refuses the tree as "dubious ownership" (task 3944), both on run 443. **Checked here, at this tip.** The file parses as YAML with 19 jobs and 19 `container:` blocks, each carrying the same digest literal and none an anchor or alias, and each job's first step after the checkout is the plain-`sh` hand-over above; `actionlint` 1.7.12 — the version the image carries — exits 0 with no ignore in `.github/actionlint.yaml`, which is unchanged; `check:every-check-runs-in-a-job` (17 checks) and `check:every-job-has-a-timeout` (42 jobs) are green; `check:restated-values` over `origin/main..HEAD` is green. **Known reds this package does not fix:** `nothing private` (the accepted red of #60), `gate coverage` (#755) and the clean-install proof (#3) are red on main too. **One consequence, stated plainly:** on github.com these jobs no longer run, because the registry is the forge's. Refs #63, #55.
ci: every job runs in the ci-martha image, named once by digest (macula-io/martha#63, #55 A3 step 2)
Some checks failed
ci.yml / ci: every job runs in the ci-martha image, named once by digest (macula-io/martha#63, #55 A3 step 2) (pull_request) Failing after 0s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 9s
dependency advisories / node in . (pull_request) Successful in 18s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 10s
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 8s
c4 model / c4-model (pull_request) Successful in 0s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 19s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 28s
e8ec3a0290
The pull is a read:package-only account whose token the runner hands the login: the
macula-io org variable as the username and the org secret as the token, by
`container.credentials`. Proved on a forge runner by #63's probe, run 2052 task 3515.
The digest appears once, on the first job, and every other job takes it through the
YAML alias `*ci_martha`.

What the image replaces: the local a_runner_user_with_sudo step (the image ships
martha-step and the ordinary user the workflow's default shell runs as) and
setup-node/setup-go in all 19 jobs; in `links`, the lychee-action step and the
/usr/local/bin link it needed, with the image's lychee read through its own exit
status; in `gate`, the archive installs of bubblewrap and strace and the tmux
apt-get fallback, keeping the bwrap proof, the AppArmor sysctl and the tmux floor
check; in `workflows`, the go install of actionlint.

Kept, and why: the archive retry's self-test, because the action still installs
through it in standalone.yml, engine-drift.yml and host-drift.yml, which move onto
the image in a follow-up; the clean-install proof's own image pin, which is what a
user gets; and the direnv and kitty fetches, which install into the runner's temp and
move into the image in A3 step 3.

On github.com these jobs no longer run: the registry is the forge's.
ci.yml: every job names the ci-martha image by its digest, no alias (macula-io/martha#63)
Some checks failed
dependency advisories / node in . (pull_request) Successful in 10s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 11s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 10s
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 4s
CI / structural floor (pull_request) Failing after 4s
CI / Martha's names are its own (pull_request) Failing after 3s
CI / no import cycle (pull_request) Failing after 4s
CI / the relay loads in the recorded host (pull_request) Failing after 4s
CI / the host drift check bites (pull_request) Failing after 4s
CI / the engine drift check bites (pull_request) Failing after 4s
CI / the posted text check bites (pull_request) Successful in 5s
CI / the clean-install proof removes its container (pull_request) Failing after 3s
CI / the ring reaches the owner on the live run's tmux (pull_request) Failing after 3s
CI / workflows are valid (pull_request) Successful in 3s
CI / installer (pull_request) Failing after 5s
CI / nothing private (pull_request) Failing after 5s
CI / no test the base passed goes missing (pull_request) Failing after 5s
CI / the pictures change only with the version (pull_request) Failing after 5s
CI / no literal restates a defined value (pull_request) Failing after 5s
CI / every check runs in a job (pull_request) Failing after 4s
CI / every job has a timeout (pull_request) Failing after 3s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 19s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 33s
CI / gate coverage (pull_request) Has been cancelled
abd4c8300c
ci.yml: hand the checkout to node after it, in every job (macula-io/martha#63)
Some checks failed
dependency advisories / node in . (pull_request) Successful in 13s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 14s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 12s
c4 model / c4-model-1 (pull_request) Successful in 3s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / Martha's names are its own (pull_request) Successful in 18s
CI / no import cycle (pull_request) Successful in 17s
CI / structural floor (pull_request) Successful in 56s
CI / the engine drift check bites (pull_request) Successful in 42s
CI / the host drift check bites (pull_request) Successful in 1m6s
CI / the posted text check bites (pull_request) Successful in 6s
CI / workflows are valid (pull_request) Successful in 4s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 8s
CI / nothing private (pull_request) Failing after 6s
CI / no test the base passed goes missing (pull_request) Successful in 25s
CI / the pictures change only with the version (pull_request) Successful in 9s
CI / installer (pull_request) Successful in 1m3s
CI / every check runs in a job (pull_request) Successful in 6s
CI / every job has a timeout (pull_request) Successful in 6s
CI / no literal restates a defined value (pull_request) Successful in 45s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 17s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 29s
CI / the relay loads in the recorded host (pull_request) Successful in 15m32s
CI / the clean-install proof removes its container (pull_request) Failing after 24m41s
CI / gate coverage (pull_request) Failing after 11m47s
8c5df25807
Author
Member

Superseded by #54: on main a1dab83e the ci-martha job in links names its digest by literal, and the checkout-to-node chown lives once in .github/actions/a_runner_user_with_sudo; actionlint 1.7.12 exits 0. Refs #63.

Superseded by #54: on main a1dab83e the ci-martha job in `links` names its digest by literal, and the checkout-to-node chown lives once in `.github/actions/a_runner_user_with_sudo`; actionlint 1.7.12 exits 0. Refs #63.
juno closed this pull request 2026-11-23 04:21:52 +00:00
Some checks failed
dependency advisories / node in . (pull_request) Successful in 13s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 14s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 12s
c4 model / c4-model-1 (pull_request) Successful in 3s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / Martha's names are its own (pull_request) Successful in 18s
CI / no import cycle (pull_request) Successful in 17s
CI / structural floor (pull_request) Successful in 56s
CI / the engine drift check bites (pull_request) Successful in 42s
CI / the host drift check bites (pull_request) Successful in 1m6s
CI / the posted text check bites (pull_request) Successful in 6s
CI / workflows are valid (pull_request) Successful in 4s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 8s
CI / nothing private (pull_request) Failing after 6s
CI / no test the base passed goes missing (pull_request) Successful in 25s
CI / the pictures change only with the version (pull_request) Successful in 9s
CI / installer (pull_request) Successful in 1m3s
CI / every check runs in a job (pull_request) Successful in 6s
CI / every job has a timeout (pull_request) Successful in 6s
CI / no literal restates a defined value (pull_request) Successful in 45s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 17s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 29s
CI / the relay loads in the recorded host (pull_request) Successful in 15m32s
CI / the clean-install proof removes its container (pull_request) Failing after 24m41s
CI / gate coverage (pull_request) Failing after 11m47s

Pull request closed

Sign in to join this conversation.
No reviewers
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!72
No description provided.