ci: the gates job checks out in plain shell, so it runs instead of dying at step 0 #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "juno/4-gates-plain-shell-checkout"
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?
Refs #4 — the
gatesjob runs the suite on the forge instead of dying in 2 s during job setup.What was wrong
gates (OTP 28.4.3 / Elixir 1.18.4)runs incontainer: ghcr.io/macula-io/macula-ci-pq:ex118-20261005-1119@sha256:f8b10b0c…— an image with git and the Elixir toolchain, and no node. Its first step wasactions/checkout@v4, a JavaScript action, so on the forge the job died at exitcode 127 before any step of its own: macula-io/martha#601, the defect the advisories job in this repository already carries the fix for. The image is not at fault: it pulls, and the runner's daemon already holds it.What changes
ci-images-dependency-advisories.yml(ci-images d42d37e6): same token handling, same refusal if the commit checked out is notgithub.sha.actions/cachesteps and thetested-mix-lockupload. They are JavaScript actions too, so on the forge each would have failed the same way. The upload feeds theimagejob, which is github.com-only already (it pushes to ghcr and is signed by an OIDC token), so the forge loses nothing but the cache: it builds cold, in minutes.container.options), not as the image's root: a root checkout lands root-owned in a self-hosted runner's persistent workspace, and the next job there then fails at its own checkout with EACCES, far from the cause. On github.com the workspace belongs to the job alone, so that path keeps the default user, as before.Proof
The forge run of
gateson this branch is the proof: the same image, no marketplace action left in the job, running format,compile --warnings-as-errors, credo, test and dialyzer.Before pushing, the same steps were run by hand in that image, as uid 1000 with the job's own
container.options, so neither the missing node nor the non-root user was left for CI to discover: deps, format, compile, credo, test and dialyzer all rc=0 (the log is in the handoff).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.