ci(deps): make Renovate read the lock and look the hooks up without a token
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 8m7s

Dry run 3880 showed that since #124 Renovate proposed no bump at all:

- pip-compile: the manager refused the lock's header ("Option --newline=LF
  not supported (yet)"), extracted nothing and only logged a WARN, so the
  Python tools were never bumped. Drop --newline from
  scripts/lock-requirements.sh and the lock header (the 81 entries and
  hashes are unchanged); the manager now reads 81 dependencies. The lock is
  an image input: ci 0.2.19 -> 0.2.20.
- pre-commit: every hook was skipped (skipReason github-token-required, no
  GitHub token exists), and with the warning off the GitHub GraphQL lookup is
  refused at once (403 rate limit). Look the hooks up with git ls-remote
  (packageRule overrideDatasource git-tags, which needs
  RENOVATE_GITHUB_TOKEN_WARN=false because the token check runs before
  package rules apply). Renovate dereferences annotated tags, so the new rev
  is the commit (checked against git ls-remote for conventional-pre-commit
  v4.5.0). git-tags has no release timestamps, so hook bumps are not
  automerged.

Tested with [email protected].0 --platform=local against this checkout. Not
tested: the real job (renovate.json is read from main), the lock replay by
Renovate's pip-compile artifact step, and the ci 0.2.20 image build.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTRacjtXvmKxHr5TM5G
This commit is contained in:
Defame1297andClaude Sonnet 5.5 committed 2026-11-14 21:43:21 +00:00
1 parent 588ba2a3ea
commit 1c6a80d3d5
6 files changed
+34 -5

No files matched your search

+4 -1
View File
@@ -18,6 +18,9 @@
#
# Renovate runs the same command from the header of the lock (pip-compile manager, renovate.json),
# so keep the header: do not add --no-header, and keep the flags below in step with renovate.json.
# Renovate's pip-compile manager refuses a header with an option it does not know ("Option
# --newline=LF not supported (yet)", dry run 3880): it then extracts nothing and proposes no bump.
# So no --newline here: pip-compile keeps the lock's own line endings (LF on Linux) by default.
set -euo pipefail
pip_version="25.2"
@@ -44,6 +47,6 @@ trap 'rm -rf "$tmp"' EXIT
cd "$root"
# --allow-unsafe: setuptools is a dependency of a tool here, and pip refuses an unpinned
# requirement in a file that carries hashes.
"$tmp/venv/bin/pip-compile" --quiet --generate-hashes --strip-extras --allow-unsafe --newline lf \
"$tmp/venv/bin/pip-compile" --quiet --generate-hashes --strip-extras --allow-unsafe \
"${upgrade[@]}" --output-file requirements-dev.lock requirements-dev.txt
echo "requirements-dev.lock regenerated; commit it with requirements-dev.txt."