Lint (86s) and Build (50s) install OS packages, the pinned Python tools and every pre-commit hook environment on each run. The ci image (images/ci, published by image.yml) has all of that baked in.
Change
lint.yml and build.yml: container.image is git.rkdr.net/mortis/ci:0.1.0@sha256:f8925ce9024cb317f052545da6fc90369218962be636e683b6969e0779847d6a (tag for the release, digest is what is enforced; bump both together when image.yml publishes a new version). The OS-package and venv steps are gone; PRE_COMMIT_HOME=/opt/pre-commit.
New step after the checkout, in both: sha256sum --quiet -c /opt/ci-pins.sha256. If this change touches requirements-dev.txt or .pre-commit-config.yaml the check fails, the job warns and runs pip install -r requirements-dev.txt into /opt/venv (pre-commit builds the hook environments it is missing on demand): slower, same result as before.
The secret scan finds gitleaks under $PRE_COMMIT_HOME.
image.yml: wrap the registry Accept header (yamllint line-length failed Lint on main after #7: 168 > 160).
What this run will show
Workflow files of a pull request come from its head, so this PR's own Lint and Build runs already use the new container. They show: that the runner can pull the image anonymously (the package is under the public org; if the pull is refused the job fails at startup and the runner needs registry credentials), the time saved (compare with 86s / 50s), and that ansible-test sanity now also runs on Python 3.11 and 3.13.
Not covered
ansible-test sanity --requirements still installs its per-test virtualenvs each run (about 25s of Build): a prewarm against a stub collection is a separate change.
## Why
Lint (86s) and Build (50s) install OS packages, the pinned Python tools and every pre-commit hook environment on each run. The `ci` image (`images/ci`, published by `image.yml`) has all of that baked in.
## Change
- `lint.yml` and `build.yml`: `container.image` is `git.rkdr.net/mortis/ci:0.1.0@sha256:f8925ce9024cb317f052545da6fc90369218962be636e683b6969e0779847d6a` (tag for the release, digest is what is enforced; bump both together when `image.yml` publishes a new version). The OS-package and venv steps are gone; `PRE_COMMIT_HOME=/opt/pre-commit`.
- New step after the checkout, in both: `sha256sum --quiet -c /opt/ci-pins.sha256`. If this change touches `requirements-dev.txt` or `.pre-commit-config.yaml` the check fails, the job warns and runs `pip install -r requirements-dev.txt` into `/opt/venv` (pre-commit builds the hook environments it is missing on demand): slower, same result as before.
- The secret scan finds gitleaks under `$PRE_COMMIT_HOME`.
- `image.yml`: wrap the registry `Accept` header (yamllint `line-length` failed Lint on `main` after #7: 168 > 160).
## What this run will show
Workflow files of a pull request come from its head, so this PR's own Lint and Build runs already use the new container. They show: that the runner can pull the image anonymously (the package is under the public org; if the pull is refused the job fails at startup and the runner needs registry credentials), the time saved (compare with 86s / 50s), and that `ansible-test sanity` now also runs on Python 3.11 and 3.13.
## Not covered
`ansible-test sanity --requirements` still installs its per-test virtualenvs each run (about 25s of Build): a prewarm against a stub collection is a separate change.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The job container is git.rkdr.net/mortis/ci:0.1.0, pinned by tag and digest. It
carries git, shellcheck, the pinned Python tools (/opt/venv) and every
pre-commit hook environment (/opt/pre-commit). After the checkout the job
compares the pin files with the checksums recorded in the image; on a
mismatch (a PR that changes a pin) it installs the pinned tools for this run,
as before, and pre-commit builds the hook environments it is missing.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
Lint (86s) and Build (50s) install OS packages, the pinned Python tools and every pre-commit hook environment on each run. The
ciimage (images/ci, published byimage.yml) has all of that baked in.Change
lint.ymlandbuild.yml:container.imageisgit.rkdr.net/mortis/ci:0.1.0@sha256:f8925ce9024cb317f052545da6fc90369218962be636e683b6969e0779847d6a(tag for the release, digest is what is enforced; bump both together whenimage.ymlpublishes a new version). The OS-package and venv steps are gone;PRE_COMMIT_HOME=/opt/pre-commit.sha256sum --quiet -c /opt/ci-pins.sha256. If this change touchesrequirements-dev.txtor.pre-commit-config.yamlthe check fails, the job warns and runspip install -r requirements-dev.txtinto/opt/venv(pre-commit builds the hook environments it is missing on demand): slower, same result as before.$PRE_COMMIT_HOME.image.yml: wrap the registryAcceptheader (yamllintline-lengthfailed Lint onmainafter #7: 168 > 160).What this run will show
Workflow files of a pull request come from its head, so this PR's own Lint and Build runs already use the new container. They show: that the runner can pull the image anonymously (the package is under the public org; if the pull is refused the job fails at startup and the runner needs registry credentials), the time saved (compare with 86s / 50s), and that
ansible-test sanitynow also runs on Python 3.11 and 3.13.Not covered
ansible-test sanity --requirementsstill installs its per-test virtualenvs each run (about 25s of Build): a prewarm against a stub collection is a separate change.🤖 Generated with Claude Code