Commit d3b8c10
committed
feat(renovate): add coverage check for Bazel http_archive deps
Adds a CI lint that fails any PR introducing or modifying an
`http_archive(...)` block in `deps/repos.MODULE.bazel` without a
corresponding `customManager` entry in `renovate.json`.
Without this check, native deps (openssl, krb5, libxml2, …) drift silently
behind upstream — Renovate's `bazel-module` manager only covers
`bazel_dep(...)` declarations from the BCR registry, not the
`http_archive(...)` calls used for natives. None of the 29 such deps in
the repo are tracked today.
Pieces:
- `tasks/renovate.py::check_bazel_coverage` — invoke task that diffs the
set of `http_archive(name=...)` entries in the bazel module file
against `customManagers[].depNameTemplate` in `renovate.json`, minus
an explicit allowlist. Writes a markdown report to
`$GITHUB_STEP_SUMMARY` on failure.
- `deps/.renovate-untracked.json` — typed allowlist with non-empty
rationale strings. Currently lists all 29 deps as pending tracking;
follow-up PRs will move each entry from this file into a
customManager in `renovate.json`.
- `.github/workflows/validate-renovate-deps.yml` — runs the task on
PRs touching `deps/`, `renovate.json`, or the task itself.
Run locally with `dda inv -- renovate.check-bazel-coverage`.
fix(renovate): replace regex with block parser for http_archive names
The previous regex required `name` to be the first argument after the
opening paren, silently skipping archives where a comment or another
keyword preceded it. The new parser tracks parenthesis depth and string
boundaries, then searches for `name = "..."` anywhere within each block.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(renovate): scan all *.MODULE.bazel files in deps/, not just repos.MODULE.bazel
Previously only deps/repos.MODULE.bazel was scanned, so http_archive
calls in per-dep MODULE.bazel files (e.g. deps/cpython/, deps/curl/)
were invisible to the coverage check.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(renovate): extend coverage check to http_file in addition to http_archive
deps/repos.MODULE.bazel already uses http_file (e.g. sqlite3_license,
cacerts). These were invisible to the check because only http_archive
was parsed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat(renovate): add bazel run //tasks:check_renovate_bazel_coverage target
Adds a py_binary so the coverage check can be invoked via Bazel without
needing dda/invoke. BUILD_WORKSPACE_DIRECTORY (set by `bazel run`) is
used to locate the repo root; direct `python tasks/renovate.py`
invocation falls back to the file's parent path.
Updates the validate-renovate-deps.yml workflow to use the new Bazel
target via the existing bazel-cache action, removing the dda dependency
from that workflow.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
code review1 parent b1af316 commit d3b8c10
5 files changed
Lines changed: 400 additions & 0 deletions
File tree
- .github/workflows
- deps
- tasks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
0 commit comments