Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renovate.sh ignores real failures in generate-libraries.sh #14099

Open
coryan opened this issue May 1, 2024 · 1 comment
Open

renovate.sh ignores real failures in generate-libraries.sh #14099

coryan opened this issue May 1, 2024 · 1 comment
Labels
cpp: operator Good things for the operator to fix type: cleanup An internal cleanup or hygiene concern.

Comments

@coryan
Copy link
Member

coryan commented May 1, 2024

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

banner "Regenerating libraries"
# generate-libraries fails if it creates a diff, so ignore its status.
TRIGGER_TYPE='pr' ci/cloudbuild/build.sh \
--docker --trigger=generate-libraries-pr || true

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.

@coryan coryan added type: cleanup An internal cleanup or hygiene concern. cpp: operator Good things for the operator to fix labels May 1, 2024
@dbolduc
Copy link
Member

dbolduc commented May 1, 2024

I don't love this, but we could run ci/cloudbuild/build.sh -t generate-libraries-pr a second time before exiting the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp: operator Good things for the operator to fix type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

2 participants