-
Notifications
You must be signed in to change notification settings - Fork 750
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
Run the PR test after merge and report to channel if it fails #5962
Conversation
.github/workflows/sonarqube.yml
Outdated
needs: | ||
- sonarqube | ||
- codecov-units | ||
if: always() && needs.sonarqube.result != "success" and needs.codecov-units.result != "success" |
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.
For this condition, I would have expect something like:
if: always() && (needs.sonarqube.result != "success" || needs.codecov-units.result != "success")
I guess we should notify in case either the sonarqube job or the code coverage job fails. And also I am not sure we can use and
instead of &&
? What do you think?
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.
Argh, yes; I made this fix in post-pr.yml but not here - good catch.
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.
LGTM but I see there are some conflicts to be resolved.
4ea18d4
to
5cc0b86
Compare
* Fork sonarqube run into a nightly build, report failures back to channel. * Each PR triggers a build after merge, report failures back to channel.
…t-hq#5962) * Fork sonarqube run into a nightly build, report failures back to channel. * Each PR triggers a build after merge, report failures back to channel.
Additionally move sonarqube as the only nightly run; and again report to the channel only if it fails.
This should reduce noise in the channel and also provide feedback on who merged a PR with a failing test in it.