-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
reconsider posting CI comments on every test failure #3621
Comments
yes please +1 to test drive this in test-infra. |
+1 if only to get folks off my back that it's the welcome message that's at fault 😝 |
A few thoughts:
|
Those workflows are likely broken to begin with, as we do not post a comment when tests pass. You can only know that they failed at some point.
You get a notification for each of these comments because the comments are deleted and a new one posted, which was the intention of the example. Refreshing and seeing less comments visibly is correct though, but you were still notified for each of these.
Breaking that down..
This is in the status contexts
You should be able to see the commit in the link, or we could put it in the description.
Log links are in the status contexts.
We post a welcome comment with instructions for the other commands. Telling users how to rerun something should not require a comment for every failure. Note that the comment table values are also often misleading with stale results.
Desktop view works on mobile, github even suggests it now at the bottom of the page. |
Personally I get some use from the notifications - IMHO it would be nice to get a single comment, such as "1 test failed and more an ongoing" without comment followup, or "here's the complete status report". But I'd rather axe them all than keep getting hammered by prow as-is. :| |
We post the specific tests, and the specific retest comments (e.g.
It's still a valid criticism of doing away with the comment table. The desktop view isn't great on mobile. As I said previously, it's an edge case.. but it's still a valid one. |
IMHO this is still exactly what the welcome bot should be for, or we can put the copy paste command on the spyglass page. This does not have to be a repetitive comment.
We have friends at GitHub, IMHO we should not "fix" their mobile UX by spamming inboxes 😞 |
I would also like to point out that roughly "GitHub notifications are a tire fire" is frequent complaint of Kubernetes project members, such that many of them simply don't use GitHub notifications in any form. I think this is detrimental to the project. More specifically Prow contributes a very large number of those comments in ways that would be unusual in other projects, a major one being commenting after every individual test failure which notifies everyone on the PR. On nearly any other project I would just check the status contexts if I'm concerned with the test results, without it sending any comments to the whole thread. I've personally resorted to specifically blocking Prow comments to the extent possible but I think this UX is bad for everyone. kubernetes/test-infra#12488 (comment) We've also found that even highly experienced contributors don't notice the retest commands in these comments. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
asking some questions about this on the contributor survey #3969 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I just got pointed to this after asking if notifications could be reduced which is especially hard to work with since the GitHub mobile app. It should not be necessary to disable notifications for GitHub just to stay sane working on any single project. |
Another related issue over this (it aged out) kubernetes/test-infra#1723 It mentioned kubernetes/test-infra#11341 was an attempt to address? But was reverted in kubernetes/test-infra#11472 due to "lack of consensus" |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle rotten cc @kubernetes/sig-contributor-experience @kubernetes/sig-testing |
re-looking at this data, I don't think there's a question clearly about test failure notifications. |
At the very least what I would really like to see is not keeping references to jobs that ran on outdated revisions in the comment, that is tremendously confusing: #3621 (comment) |
+1, there's a similar problem with removing jobs and even though the github statuses go away correctly the failure comment will keep existing failures forever if there is no pass. EDIT: we're likely to have many of these issues as long as we report jobs to contributors in two distinct ways, one of which involves an API we can do on the fly per-job in a reliable fashion (given an actual github API for this), the other involves racily editing a comment to try to bring it closer in-line with the status we're reporting. The comment system is much more brittle. |
A few months ago a UX designer was looking at this issue -- did anything come of that in Contribex? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle rotten |
/remove-kind design |
/assign @MadhavJivrajani |
@MadhavJivrajani is this issue still relevant? If not, can you close it? Thanks. |
Currently Kubernetes PRs get a lot of comments from @k8s-ci-robot, many of which are to notify of failing tests. This tends to drown out actual human interactions.
I know this came up at some point in the past, but I'm having difficulty finding why we do this and I'd like to revisit it.
Right now prow deletes it's job-results comment every time results change, and posts a new comment if there are any failures. This can be very spammy (see below), and punishes reviewers and approvers for being subscribed to PRs with tons of excess notifications.
Most (all?) other CI on GitHub merely post to the "status" or "checks" APIs (https://help.github.com/en/articles/about-status-checks) which Prow / @k8s-ci-robot also does. We should consider only doing this instead of posting comments on every failure to reduce pressure on developers's notifications.
Additionally, the comments can be misleading with stale state in them kubernetes/test-infra#4602
If we agree that this is reasonable, it should be relatively straightforward to make it possible in test-infra.
The text was updated successfully, but these errors were encountered: