Skip the chmod-based unreadable-sidecar tests when running as root
CI / shell (shellcheck + syntax) (push) Successful in 8s
CI / python 3.12 (push) Successful in 13s
CI / python 3.11 (push) Successful in 20s
CI / python 3.13 (push) Successful in 17s

The Gitea runner image executes jobs as root, and chmod(0) cannot make a file
unreadable for root (CAP_DAC_OVERRIDE) — the two tests failed there while
passing on GitHub's non-root runner. Skipping as root keeps the scenario
exercised everywhere it is constructible.
This commit is contained in:
2026-08-03 20:28:37 +00:00
parent ea00bd0685
commit 827c4358fd
2 changed files with 14 additions and 5 deletions
+8 -5
View File
@@ -9,11 +9,14 @@ worse than no alert, because one day it carries a security fix.
## Unreleased
### Changed
- **CI's python matrix now uses uv-managed interpreters instead of
`actions/setup-python`**, which failed at environment setup on the self-hosted
Gitea runner (GitHub Actions was unaffected — same file, both green now). Ruff is
pinned to 0.16.1 in the same job so an upstream ruff release can't turn `main`
red without a code change.
- **CI's python matrix is green on the self-hosted Gitea runner again.** The real
failure was that the Gitea runner image executes jobs as root, and the two
unreadable-sidecar tests build their scenario with `chmod(0)` — which cannot make
a file unreadable for root (`CAP_DAC_OVERRIDE`). Those two tests now skip as root
with that reason; GitHub's non-root runner still exercises them. The matrix also
moved to uv-managed interpreters (one toolchain across both runners) and ruff is
pinned to 0.16.1 so an upstream ruff release can't turn `main` red without a code
change.
- **README badges point at the public GitHub mirror** (workflow status and
releases) instead of the private forge. The release badge had also been reading
the stale Gitea v0.6.1 release instead of the current v0.7.0 on GitHub.