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

failurechecker: reports release-please failure when there is none #4032

Closed
codyoss opened this issue Jun 29, 2022 · 4 comments
Closed

failurechecker: reports release-please failure when there is none #4032

codyoss opened this issue Jun 29, 2022 · 4 comments
Assignees
Labels
bot: failurechecker priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@codyoss
Copy link
Member

codyoss commented Jun 29, 2022

It seems like the logic in this bot is not working properly for our Go repos. Go repos don't have a publish check so the terminal state should be tagged.

Example release reported as failure: googleapis/google-cloud-go#6206
Config for that release: https://github.com/googleapis/google-cloud-go/blob/a01723055cb7604047c4fddd7d00213d800e4122/bigquery/release-please-config.json#L2
Issue opened: googleapis/google-cloud-go#5964

There is some code in the bot that should be accounting for this:

@codyoss codyoss added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Jun 29, 2022
@chingor13
Copy link
Contributor

This is looking at the release-please.yml config and not the manifest config. We need to extend this bot's functionality to consider the config files.

Another alternative is that we can change the the label that release-please sets on the PR when we create the release to autorelease: published directly

@codyoss
Copy link
Member Author

codyoss commented Jun 30, 2022

Thank you for the guidance, I will add releaseType to the bot config as a workaround for now.

codyoss added a commit to googleapis/google-cloud-go that referenced this issue Jun 30, 2022
This setting is not read from the manifest config today so it is best for us to set it here for now as well. This guidance was given in googleapis/repo-automation-bots#4032

Fixes: #5964
codyoss added a commit to googleapis/google-cloud-go that referenced this issue Jun 30, 2022
This setting is not read from the manifest config today so it is best for us to set it here for now as well. This guidance was given in googleapis/repo-automation-bots#4032

Fixes: #5964
@chingor13 chingor13 assigned chingor13 and unassigned tmatsuo Jul 6, 2022
@chingor13
Copy link
Contributor

As I'm trying to implement making failurechecker smarter, I feel like it's the wrong approach to try and parse the release-please config to look up exceptions to the terminal label state. Instead, it's much more straight-forward (and already supported) to configure release-please to label the release PR as published when creating the GitHub releases.

@chingor13
Copy link
Contributor

For future reference, you can configure release-label to autorelease: published in your release please manifest config JSON. This will override the label(s) put on the release PR after it has tagged the GitHub release(s). This value defaults to autorelease: tagged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: failurechecker priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants