Repository navigation
fix: 接通维护分支依赖与工具链更新 - #324
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🔵 Needs a closer look
静态审查无法确认 Dependabot/Renovate 合并后是否正确读取默认分支配置、识别维护基线并生成预期的更新与锁文件事务,仍需维护者通过真实托管作业及后续 PR 端到端验收。
No open issues 🎉
What changed in this PR
本 PR 为仍承担共享职责的维护分支 maintenance/legacy-runtime-e990eda 接通 Dependabot 与 Renovate 的持续依赖及 Node/npm 工具链更新,同时保持默认分支现有更新职责不变。
Changes:
- 为维护分支新增根目录 npm 与 GitHub Actions 的 Dependabot 更新入口,并忽略 npm 工具包。
- 为 Renovate 限定维护分支的
.node-version、engines.node、packageManager和devDependencies.npm工具链更新。 - 关闭独立 npm lock maintenance,避免与其他更新职责重复写入。
| File | Description |
|---|---|
| .github/renovate.json | 增加维护分支 base 扫描、Node/npm 工具链匹配规则及 npm lock maintenance 控制。 |
| .github/dependabot.yml | 增加面向维护分支根目录 npm 与 GitHub Actions 的 Dependabot 更新配置。 |
Review effort: Lite
axiomoth
added a commit
that referenced
this pull request
Nov 11, 2026
## 摘要 修复维护 npm 工具链更新在托管端缺少配套锁文件的问题。真实 PR #341 更新两项 npm 声明到 12.2.2,但 `npm install --package-lock-only` 报 EALLOWREMOTE,随后维护 CI 正确拒绝清单与锁不一致。 ## 变更原因 npm 12.2.2 在完整 ideal tree 检查 bundled dependencies 时,将 registry 自身 tarball 当作 remote 处理;准确 Node 24.22.0/npm 12.2.2 隔离复现与 Mend job `af5b9cae-0d6a-40ca-b33b-b7bd36b7c4c6` 一致。官方 [npm/cli#9800](npm/cli#9800) 已记录 package-lock-only 路径,[修复 #9818](npm/cli#9818) 当前尚未合并发布。 ## 主要改动 仅为现有准确维护 npm 工具组增加 `skipInstalls: false`,采用 Renovate [官方支持的安装模式](https://docs.renovatebot.com/configuration-options/#skipinstalls),生成锁时运行普通安装。范围保持 `maintenance/legacy-runtime-e990eda`、npm manager、根 package.json、npm 的 packageManager/devDependencies 两字段。 ## 关联事项 关联 #324、#341。正式目标 npm 12.2.2 来自实际 registry 与托管发现,不固定旧 major,也不手工填写 #341 的锁来替代托管事务。 ## 验证结果 - 准确 Node 24.22.0/npm 12.2.2:lock-only 原命令复现 EALLOWREMOTE;普通 `install --no-audit --ignore-scripts` 成功,90 项锁变化仅根/npm 子树,根声明与实际包版本均为 12.2.2。 - 新锁在同一准确版本下 `npm ci --ignore-scripts --no-audit --no-fund` 成功。 - 官方 Renovate 有效规则 18 个针对性案例通过,仅准确维护 npm 两字段命中;strict schema 通过,Windows已有 RE2 回落警告保留,未修改任何正则。 - 官方 Renovate 44.222.5 源码确认普通安装与 ignoreScripts 独立;全局 ignoreScripts=true 保持。 - 本 PR 最终 head 的 CI/AI 按实际结果验收;采用后仍须观察真实 Mend 对 #341 的重建、锁一致性、artifacts 和 required 终态。 ## 影响分析 普通安装会在该组托管临时目录安装整个锁对应的依赖树,增加下载与磁盘工作。安装脚本仍禁用,npm 默认 allow-remote 限制保持;其他分组、默认分支行为、版本发现和原有限流保持。 ## 发布与迁移 通过最终检查和审查后按中央协调窗口正常采用。随后对既有 #341 通过 Mend 原生重试/重建核查实际结果;人工请求来源单独记录。配置采用不等于 npm 托管事务通过。 ## 回退方式 通过正常 PR 撤回这一属性,恢复原安装策略;原失败事务与检查记录保留。 ## AI 使用声明 本次由 AI 编程助手在已授权 R1 范围内实施与验证。服务部署、维护版本合并不属于本配置修正操作。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
为仍承担共享职责的维护分支接通持续依赖与工具链更新。配置由默认分支读取,更新 PR 指向
maintenance/legacy-runtime-e990eda;此前只有默认分支更新入口。变更原因
#321 已采用可信维护 CI,后续普通维护 PR 具备准确来源验证路径。现补齐维护树的更新发现配置,避免将仍在使用的代码误当纯历史快照。
主要改动
.node-version、engines.node、packageManager、devDependencies.npm四字段。Node/npm 各两字段分别同组,major/minor/patch 均可更新;npm 工具由 Renovate 独占,独立 npm lock maintenance 关闭。useBaseBranchConfig合并。关联事项
相关 #321、#320。配置采用与真实托管更新事务分别验收;服务交接仍独立进行。
验证结果
c1dda9574b50cd84eb66a3d582f6f3bfcdd171e7;维护输入7dbe75db54cbab785089836c343117c205837b7d,Node24.22.0/npm11.21.2。影响分析
仅修改两个更新配置文件。main既有更新职责不变;维护普通npm/Action与工具链更新者分工避免重复写入。未修改runtime、维护源码、状态、Environment、保护规则或服务。
发布与迁移
通过最终审查与CI后按协调窗口正常合并。随后核实托管作业读取已采用配置、扫描准确维护base,并对真实发现的版本验收声明/锁或Action/锁事务。无真实后继时记录无更新,不制造版本事件。配置合并不代表托管消费已完成,也不授权部署。
回退方式
通过正常受保护PR撤回新增维护条目,保留默认分支既有配置和历史证据。
AI 使用声明
本次贡献由AI编程助手代理实施,人类已授权本范围;最终检查与审查按实际记录判定。
采用后实测(2026-11-11)
已正常采用为
8bf7688fb38597dc5b810d0d3f0933804cb67338;main Native 42987430778 与自动 Promotion 42989185793 均成功。两条固定来源规则及受保护来源均为该提交,14条完整保护读回仅有预期两处 SHA 变化。Mend 44.222.5 job
5419372f-1f9a-4a38-b0d1-560f7041d6c7已实际读取配置和准确维护 base,将 Node 两字段、npm 两字段分别归组;真实 Node/npm 更新事务受原有每小时上限限制,尚未观察,不标记全部托管验收完成。Dependabot 两个维护作业成功,实际生成普通 npm 清单/锁与 Action/workflow/锁变更。代表 #325 的工作流固定约束测试失败,#332 需同步重建 runner/dist;配套生成证据成立,但采用验收未通过。后续采用须在各自最终 head 修正并验证,不扩大为全部 bot PR 合并。服务仍未部署。