-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Automatically open an issue when a tool breaks #56951
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @kennytm |
This is awesome— can we make it be automatically |
I'm not sure if this is a good idea as RLS is known to sometimes fail spuriously (recent example: #56161 (comment) → "fixed" by #56461 (comment)). |
This probably would mention the wrong person/PR when a rollup caused breakage, right? |
For rollups it would mention the person who created the rollup (same as today), but since the rollupers are also Rust team members they could just edit the issue to point to the actual cause. What I worried is blaming new contributors over something not related to their code. |
due to the spurious case? We could just do this for rustfmt and clippy for now until rls isn't spurious anymore. |
@oli-obk Yes due to spurious cases. What if we submit the issue only if the state is degraded to |
I pushed some changes, not sure if they actually do what they're supposed to. Are we really using |
Yes 😛 |
I think that in terms of "blaming" contributors, we should just be careful with our wording, and make sure to cc enough folks from the team. Is the plan to ignore test failures and just focus on build failures? That seems "ok" to start. I would like to see the template be something a bit more friendly and perhaps include a bit more information. Maybe something like this? issue title: {TOOL} no longer builds after PR #{PR} Hello, this is your friendly neighborhood mergebot. After merging PR #{PR}, I observed that the tool {TOOL} no longer builds. A follow-up PR to the repository {TOOL_REPOSITORY} is needed to fix the fallout. cc @{PR_AUTHOR}, do you think you would have time to do the follow-up work? If so, that would be great! cc @{PR_REVIEWER}, the PR reviewer, and @rust-lang/compiler -- nominating for prioritization. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM, but I'd like to first go through an FCP after the holiday (next week).
@bors r=kennytm |
📌 Commit 6ed4401 has been approved by |
Automatically open an issue when a tool breaks cc @nikomatsakis fixes rust-lang-nursery/rust-toolstate#6 documentation about issue opening via the github api: https://developer.github.com/v3/issues/#create-an-issue
💔 Test failed - status-appveyor |
|
@bors retry |
⌛ Testing commit 6ed4401 with merge a7902ab0ad5d6cd149d02b5651dd387f4b9507c5... |
💔 Test failed - checks-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry 🤔 |
.format(tool, os, old, new) | ||
message += '{} (cc {}, @rust-lang/infra).\n' \ | ||
.format(title, MAINTAINERS.get(tool)) | ||
# only create issues for build failures. Other failures can be spurious |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far, at least for Miri, every single case of "test-fail" was a real failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to special-case miri in a follow-up PR?
Automatically open an issue when a tool breaks cc @nikomatsakis fixes rust-lang-nursery/rust-toolstate#6 documentation about issue opening via the github api: https://developer.github.com/v3/issues/#create-an-issue
☀️ Test successful - checks-travis, status-appveyor |
cc @nikomatsakis
fixes rust-lang-nursery/rust-toolstate#6
documentation about issue opening via the github api: https://developer.github.com/v3/issues/#create-an-issue