feat: /etc/ci-image-id marker for runtime validation #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/image-identity-marker"
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?
Adds an identity marker file to the CI image. Workflow guard steps check for this file to detect when the act_runner fell back to the default node:22-bookworm image (registry pull failure).
What it does
Writes /etc/ci-image-id at build time with image metadata (name, base, build date, tool versions). Guard steps in repo workflows check for this file as their first action — if missing, they emit an [INFRA] error annotation and exit 78, clearly signaling 'retry, don't fix code.'
Why
When the Forgejo registry has transient 525 SSL errors, the runner falls back to node:22-bookworm silently. Agents then see 'docker: command not found' or 'uv: command not found' and try to fix the code. This marker makes the failure self-diagnosing.
Deploy steps after merge