Thanks for this discussion. I hope this email answers/explains most of the questions here.
Right now, as we are using jenkins, we use
Jenkins github pull request builder plugin. This is the easiest way for us how to trigger PR checks and report back to the issue the result or anything else we can (like the image used for testing, URL's to the "try it now" workspaces on
che.openshift.io, ...).
This plugin unfortunately (AFAIK) has some limitations in the reporting back to the issue:
1/ First way is putting a comment when the job succeeds/fails. There are basically no limitations here and we can put as much info there as required. It seems, this approach is not desirable as it could generate a lot of notifications, if the PR is still WIP/in active development.
2/ Second way the plugin is using to report back to the commit is
Github statuses API. This just puts this line (screenshot below) to the PR. But the amount of info we can put there is very limited. The message we can put there must be shorter than 140chars. Name of the status and the "details" link is automatically generated by the plugin.
Yesterday I was looking and experimenting with
GitHub checks API (
result of my experiments). I think this would allow us to solve all the problems in nice manner, as it allows us to utilize the "Checks" tab Angel was talking about. But it would be relatively hard (or time consuming), as we would need to implement the reporting from jobs to PRs from scratch (and for every job we are using), instead of just reusing the Jenkins plugin capabilities (Or implement this functionality in the jenkins plugin itself of course 😀)
Another concern/idea was to keep editing one comment. Again - if we were to reimplement the reporting back to PR by ourselves, this would be possible, but the plugin we are using right now doesn't allow this.
I was also trying to find if the plugin is capable of not triggering the job, if the PR is in draft/WIP state, or if it has some label. Unfortunately I wasn't able to find anything in this regards, so I assume it doesn't have such capability.
As a conclusion I would like to propose plano to lower the comment¬ification clutter:
On che repo:
* Disable comments from job running selenium tests on codenvy ci - Only `ci-integration-tests` check will remain
* For job running Happy Path I would suggest to turn off the "successful run" comments and leave the failed ones.
On che-theia repo:
* It seems to me, that contributors to this repo likes the comments in general, so I'm not sure if any change is required here.
Radim