dependency-updates does not know `.github/renovate.json5`

未关闭 适合新手
#245 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python, scala
领域
tooling

调研方向

Renovate 的位置是 checks/dependency_updates.py 第 7 行附近的一个元组;请在其中添加 .github/renovate.json5 以及其他列出的路径。Scala Steward 需要在同一检查中新增一个 .scala-steward.conf 条目,而该 issue 没有指定测试文件。完成标准是:仅包含 .github/renovate.json5(内容为 {})的仓库在依赖更新检查中得到 PASS,并且 Scala Steward 的情况也得到处理。

由索引模型根据 Issue 内容生成。

描述

prettier (whose CI runs renovate-config-validator on it), vite, okhttp, junit5 and opentelemetry-proto carry .github/renovate.json5 and get WARN "no automated dependency updates configured". checks/dependency_updates.py lists renovate.json5 and .github/renovate.json but not .github/renovate.json5. Also: Scala Steward (.scala-steward.conf, validated in CI by cats and http4s) is the Scala ecosystem's update bot.

Evidence from the corpus audit

prettier/prettier, vitejs/vite / dependency-updates
  • kind: FALSE_NEGATIVE
  • actual: WARN: no automated dependency updates configured
  • expected: PASS: both repositories carry a Renovate configuration at .github/renovate.json5 (prettier's CI even validates it).
  • evidence: prettier .github/renovate.json5:1-3: { / $schema: "https://docs.renovatebot.com/renovate-schema.json", / dependencyDashboardApproval: true,;
    prettier .github/workflows/lint.yml:71: run: yarn dlx --package renovate@latest renovate-config-validator; vite: .github/renovate.json5 exists.
    Validator checks/dependency_updates.py:7: ("Renovate", ("renovate.json", "renovate.json5", ".github/renovate.json", ".renovaterc", ".renovaterc.json"))
    — .github/renovate.json5 (and .renovaterc.json5, .gitlab/renovate.json*) are missing from Renovate's documented locations.
  • repro: a repo with only .github/renovate.json5 containing {}.
  • confidence: high
square/okhttp, junit-team/junit5 / dependency-updates
  • kind: FALSE_NEGATIVE
  • actual: WARN: no automated dependency updates configured (both)
  • expected: PASS: Renovate is configured
  • evidence: okhttp .github/renovate.json5 (file exists; .github/workflows/build.yml:52 even runs rinchsan/renovate-config-validator); junit5 .github/renovate.json5;
    validator project_validator/checks/dependency_updates.py:7: ("Renovate", ("renovate.json", "renovate.json5", ".github/renovate.json", ".renovaterc", ".renovaterc.json")) — .github/renovate.json5 (and .renovaterc.json5, .gitlab/renovate.json[5]) are missing from the list
  • repro: a repo with only .github/renovate.json5 containing {}
  • confidence: high
open-telemetry/opentelemetry-proto / dependency-updates
  • kind: FALSE_NEGATIVE
  • actual: WARN: no automated dependency updates configured
  • expected: PASS: a Renovate configuration exists at .github/renovate.json5 (the # renovate-friendly Dockerfile and helpers:pinGitHubActionDigestsToSemver show it is live).
  • evidence: .github/renovate.json5:1-5: "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:best-practices", ...]; validator project_validator/checks/dependency_updates.py:7: ("Renovate", ("renovate.json", "renovate.json5", ".github/renovate.json", ".renovaterc", ".renovaterc.json")) — .github/renovate.json5 is missing from the tuple (Renovate also accepts .github/renovate.json5, .gitlab/renovate.json5, .renovaterc.json5).
  • repro: a repo with only .github/renovate.json5 containing {"extends": ["config:recommended"]}.
  • confidence: high
typelevel/cats, http4s/http4s / dependency-updates
  • kind: UNSUPPORTED
  • actual: [WARN] dependency-updates: no automated dependency updates configured
  • expected: PASS: Scala Steward is the Scala ecosystem's update bot and both repos configure it and validate the config in CI.
  • evidence: .scala-steward.conf in cats, http4s (also metals and scalafmt, which PASS through Dependabot);
    cats .github/workflows/ci.yml:398: - run: scala-steward validate-repo-config .scala-steward.conf; http4s ci.yml:311 (same).
    Source: checks/dependency_updates.py:6-7 knows Dependabot and Renovate configurations only.
  • repro: an sbt project with a .scala-steward.conf.
  • confidence: high
clap-rs/clap, starship/starship, astral-sh/ruff / dependency-updates
  • kind: FALSE_NEGATIVE
  • actual: WARN: no automated dependency updates configured
  • expected: PASS: Renovate is configured in .github/renovate.json5, a location Renovate documents
  • evidence: clap-rs__clap/.github/renovate.json5, starship__starship/.github/renovate.json5, astral-sh__ruff/.github/renovate.json5 exist (ls .github);
    validator checks/dependency_updates.py:7: ("Renovate", ("renovate.json", "renovate.json5", ".github/renovate.json", ".renovaterc", ".renovaterc.json")) — .github/renovate.json5 missing
  • repro: a repo with only .github/renovate.json5 ({}) → WARN
  • confidence: high

Found by the regression-corpus audit (235 real repositories, one or more per ecosystem profile; corpus and expected results in corpus/). Evidence is quoted from the audited checkouts at the commits pinned in corpus/projects.toml; <checkouts>/<owner>__<repo> is such a checkout.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

主要语言
Python
星标
4
派生
1
平均合并
10 小时 41 分钟
30 天内合并 PR
79

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cpp-best-practices/project_validator 的其他 Issue

查看 cpp-best-practices/project_validator 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。