googleapis / googleapis/google-cloud-cpp
renovate.sh ignores real failures in `generate-libraries.sh`
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 659
- 派生
- 463
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 89
描述
We use renovate.sh to update the googleapis SHA. It automatically updates the generated code too:
The || true is needed because generate-libraries.sh is intended as a CI script. It is supposed to fail if the code does not match what would happen if we generated the code, and in this case we always generate new code.
It seems we need a way to tell generate-libraries.sh to expect code diffs. Or maybe we should refactor the code such that both renovate.sh and generate-libraries.sh call some shell functions.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先阅读 renovate.sh 第72-75行附近的内容,然后检查 generate-libraries.sh,以了解其 CI 失败状态是如何生成的。复现生成流程,并确保生成代码中预期的差异不会掩盖无关的失败,同时保持 CI 验证行为不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, shell
- 领域
- build-system, ci-cd
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100