googleapis / googleapis/google-cloud-cpp

renovate.sh ignores real failures in `generate-libraries.sh`

未关闭
#14,099 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

cpp: operator type: cleanup
主要语言
C++
星标
659
派生
463
平均合并
1 天 2 小时
30 天内合并 PR
89

描述

We use renovate.sh to update the googleapis SHA. It automatically updates the generated code too:

https://github.com/googleapis/google-cloud-cpp/blob/682e0657e270533675163dca54a722526aaae145/external/googleapis/renovate.sh#L72-L75

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

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