#50307 closed enhancement (wontfix)
Disable Slack notifications for non-version branch builds
Reported by: | desrosj | Owned by: | desrosj |
---|---|---|---|
Milestone: | Priority: | lowest | |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
Currently, failed pull request builds are posted into the #core Slack room.
It looks like the configuration is set correctly to disable these based on the documentation, but they still seem to be coming through.
GitHub pull requests are often used to try out potential solutions or work through problems over time, and are also a newly embraced way to contribute to Trac tickets.
This will cause quite a bit of noise as more and more contributors use GitHub PRs to contribute, and also raises false alarms.
Attachments (4)
Change History (21)
#2
in reply to:
↑ 1
@
4 years ago
Replying to ocean90:
I'm assuming you created the ticket based on these notifications? There are a few open and closed PRs with a failed build status which didn't generate a notification so I guess it was just a temporary glitch.
Correct. It did seem weird, but wanted to have a ticket in case to track. I'll do some testing to try and trigger the notifications.
#3
@
4 years ago
Some other proejects such as https://github.com/apache/openwhisk/blob/master/.travis.yml#L37-L39
have the order different. I wonder if travis is encountering the on_failures: always and following that and never seeing the pull request part. My patch changes that. Worth a try?
#4
@
4 years ago
- Keywords has-patch added; close removed
@jorbin that crossed my mind as a possibility as well. I don't think it hurts to try it.
#5
@
4 years ago
I think that only happens on pull requests that are from a branch on the repository itself, not from a different repository.
#6
@
4 years ago
@TimothyBlynJacobs Good catch! So it was the notification for the branch and not the PR.
50307.diff doesn't make a difference in that case.
#9
@
4 years ago
We should make sure to send the notifications also for the release branches (and tags?).
#10
@
4 years ago
- Owner set to desrosj
- Status changed from new to reviewing
- Summary changed from Disable Slack notifications for pull request builds to Disable Slack notifications for non-version branch builds
#11
@
4 years ago
Whoops, I didn't mean to assign as reviewing. But since I did, this looks OK to try to me. I'll commit it and test.
I'm also thinking of ways to advise committers to not push branches directly on the mirror because they will disappear. We can start with mentioning it in the handbook and go from there.
#12
@
4 years ago
Updated the regex a bit. See https://regex101.com/r/ba8tB2/1 as examples
#14
@
4 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
[47901] doesn't appear to have worked: https://wordpress.slack.com/archives/C02RQBWTW/p1591206682316400
#16
@
4 years ago
- Milestone WordPress.org deleted
I'm going to close this out as a wontfix
. The regex in [47901] didn't work as expected. Thinking about it more, the chance this happens is relatively small.
Only committers can cause this to happen by pushing directly to the mirror. When this does happen, it could be a good red flag to the committer that they should be pushing to their fork instead. If they do not notice, another contributor can reach out with the suggestion. They won't actually lose their work because they should still retain a local copy of the branch.
If anyone feels strongly and has another idea for a solution, feel free to reopen and try it out.
I'm assuming you created the ticket based on these notifications? There are a few open and closed PRs with a failed build status which didn't generate a notification so I guess it was just a temporary glitch.