Skip to content
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

Change "/run-e2e" to use GitHub's Checks API #2567

Closed
tomkerkhove opened this issue Jan 27, 2022 · 7 comments · Fixed by #3071
Closed

Change "/run-e2e" to use GitHub's Checks API #2567

tomkerkhove opened this issue Jan 27, 2022 · 7 comments · Fixed by #3071
Assignees
Labels
automation enhancement New feature or request help wanted Looking for support from community stale-bot-ignore All issues that should not be automatically closed by our stale bot

Comments

@tomkerkhove
Copy link
Member

Change "/run-e2e" to use GitHub's Checks API instead of emojis so that PRs are blocked in case of failed tests.

There seem to be some GitHub Actions in the marketplace, for example this one: https://github.com/marketplace/actions/github-checks

@JorTurFer
Copy link
Member

JorTurFer commented Jan 27, 2022

I have been checking GitHub Checks API and I think that it doesn't match our requirements. This API allows dynamic checks creation with custom messages, reports, etc... the problem is that those checks are not considered part of the PR checks, I mean, we cannot block the PR with it.

Maybe I have missed something, but I think that GH is not ready for this... 😢

I have another option that could work, the workflow could add a label to the PR, and we could use that label to block the PR, I mean, the e2e workflow could add/remove a label in the PR with for example e2e failed (and another informative like e2e passed ) and we could add other check that monitors that label. With this approach, we could block the PR.
WDYT @tomkerkhove, @zroubalik ?

@tomkerkhove
Copy link
Member Author

the problem is that those checks are not considered part of the PR checks, I mean, we cannot block the PR with it.

Normally you can link them to the PR as per the docs above. Did you give this a try?

The alternative is another approach but feels a bit like a hack, ideally we rely on checks IMO. If we link the running workflow job to the PR it should also work imo.

@JorTurFer
Copy link
Member

Maybe I miss the part of the PR... Could you send me that link?

@JorTurFer
Copy link
Member

JorTurFer commented Jan 28, 2022

The closest thing that I found yesterday was this.
We can create a check for a specific commit hash, but despite that also having the commit is in the PR, the check is not attached to the PR checks.

Anyway, I'll take another look

@tomkerkhove
Copy link
Member Author

Creates a new check run for a specific commit in a repository. Your GitHub App must have the checks:write permission to create check runs.

Was this the case?

Let me ask around

@stale
Copy link

stale bot commented Mar 29, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Mar 29, 2022
@tomkerkhove tomkerkhove added help wanted Looking for support from community stale-bot-ignore All issues that should not be automatically closed by our stale bot labels Mar 29, 2022
@stale stale bot removed the stale All issues that are marked as stale due to inactivity label Mar 29, 2022
@tomkerkhove tomkerkhove self-assigned this Apr 29, 2022
Repository owner moved this from To Do to Ready To Ship in Roadmap - KEDA Core Jun 1, 2022
@tomkerkhove tomkerkhove moved this from Ready To Ship to Done in Roadmap - KEDA Core Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation enhancement New feature or request help wanted Looking for support from community stale-bot-ignore All issues that should not be automatically closed by our stale bot
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants