Follow-up to #345 (#225). Molecule on the ci pin pull request #346 failed in every scenario at create. The error was "Failed to create temporary directory", from mkdir -p "$(echo ~gitea-runner/.ansible/tmp)" on localhost.
Cause: the runner's uid has no passwd entry in the ci image, so ~gitea-runner does not expand and mkdir runs relative to the playbook directory.
In #345's run, molecule came from the PR's pins in a venv in the job tree, so that directory was writable.
On #346 it came from the image's /opt/venv, which is read-only for the runner user.
Fix: the job writes a two-line passwd file, root plus the runner user with its home set to the job-tree HOME. It mounts the file read-only over /etc/passwd, so ~<user> resolves to a writable directory.
Pin:CI_IMAGE in molecule.yml moves to ci:0.2.40, the digest #346 proposes. With the new pin, this pull request runs the image's own toolchain, which is the path that failed. Without it, this run would install its own pins first and miss the bug. Renovate then rebases #346 down to the lint.yml and build.yml pins.
No changelog fragment: CI only.
Verified
Commit hooks (yamllint, actionlint, zizmor) and pre-push ansible-test sanity pass.
The passwd lines the job writes have the right format (checked locally).
Cause: compared the logs of run 5302 (#345, passed, slow path) and run 5321 (#346, failed, baked path). ansible-core 2.22.0 and molecule 26.11.0 were the same in both; the only difference was where the driver's playbooks live.
Not verified
Molecule on this head: this pull request's run is the test.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Follow-up to #345 (#225). Molecule on the ci pin pull request #346 failed in every scenario at `create`. The error was "Failed to create temporary directory", from `mkdir -p "$(echo ~gitea-runner/.ansible/tmp)"` on localhost.
- **Cause:** the runner's uid has no passwd entry in the `ci` image, so `~gitea-runner` does not expand and `mkdir` runs relative to the playbook directory.
- In #345's run, molecule came from the PR's pins in a venv in the job tree, so that directory was writable.
- On #346 it came from the image's `/opt/venv`, which is read-only for the runner user.
- **Fix:** the job writes a two-line passwd file, `root` plus the runner user with its home set to the job-tree `HOME`. It mounts the file read-only over `/etc/passwd`, so `~<user>` resolves to a writable directory.
- **Pin:** `CI_IMAGE` in `molecule.yml` moves to `ci:0.2.40`, the digest #346 proposes. With the new pin, this pull request runs the image's own toolchain, which is the path that failed. Without it, this run would install its own pins first and miss the bug. Renovate then rebases #346 down to the `lint.yml` and `build.yml` pins.
No changelog fragment: CI only.
## Verified
- Commit hooks (yamllint, actionlint, zizmor) and pre-push `ansible-test sanity` pass.
- The passwd lines the job writes have the right format (checked locally).
- Cause: compared the logs of run 5302 (#345, passed, slow path) and run 5321 (#346, failed, baked path). ansible-core 2.22.0 and molecule 26.11.0 were the same in both; the only difference was where the driver's playbooks live.
## Not verified
- Molecule on this head: this pull request's run is the test.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
Claude
added this to the CI velocity (emergency) milestone 2026-11-24 08:48:45 +00:00
Defame1297
was assigned by Claude2026-11-24 08:48:45 +00:00
ansible makes its temp dir under ~<user>/.ansible/tmp. Without a passwd
entry the tilde does not expand and mkdir runs relative to the playbook's
directory, which is read-only under /opt/venv once the image's own
molecule is used. Move molecule.yml to ci 0.2.40 so this pull request
runs the baked toolchain that failed on the pin pull request.
Assisted-by: Claude Code
CODEOWNERS rules
requested review from Defame1297 2026-11-24 08:48:45 +00:00
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.
What and why
Follow-up to #345 (#225). Molecule on the ci pin pull request #346 failed in every scenario at
create. The error was "Failed to create temporary directory", frommkdir -p "$(echo ~gitea-runner/.ansible/tmp)"on localhost.ciimage, so~gitea-runnerdoes not expand andmkdirruns relative to the playbook directory./opt/venv, which is read-only for the runner user.rootplus the runner user with its home set to the job-treeHOME. It mounts the file read-only over/etc/passwd, so~<user>resolves to a writable directory.CI_IMAGEinmolecule.ymlmoves toci:0.2.40, the digest #346 proposes. With the new pin, this pull request runs the image's own toolchain, which is the path that failed. Without it, this run would install its own pins first and miss the bug. Renovate then rebases #346 down to thelint.ymlandbuild.ymlpins.No changelog fragment: CI only.
Verified
ansible-test sanitypass.Not verified
NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code