-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Required status check not fulfilled randomly using this action to set the required check #27
Comments
Hi @alambike, I think an optional retry system would be pretty valuable for sure! |
We have same problem. Is there any option to make it more verbose to see what happens inside this action? |
@piotrekkr I think you should be able to use All GitHub API failures should be logged as the message of the failure though, so not sure there is more context to be gained? |
Regarding this, we finally took another path, recently indicated in the GitHub documentation, by using a fallback workflow that fulfills the required status check, in case the real job has not been triggered, because the necessary conditions have not been met (no changes of code for example). |
I wrote to GitHub Support and after few weeks I got answer and some help with this. In general they know that Checks API is not working properly with GitHub Action because GitHub Actions were not designed for this, GitHub apps are for this:
Then I explained my exact problem to them:
And as a workaround they suggested:
But this last job would fail a lot and this would make a lot of workflows as failed in GitHub Actions page. And this generated problems for devs:
So as a workaround for this they suggested to use
@alambike My problem was slightly different as you can see above but I had same problem as you with other workflow that was running only if one subdirectory was modified. I also used same solution you did and it worked fine. |
Look like this can be addressed through other ways, nice! |
Create the check using our own token
We are using this action to set to
neutral
a check that is marked as required in the branch protections, when there is no code change in the project.From time to time this setting fails (but the action completes correctly, without error), and the PRs gets stuck, waiting for that required status check to be fulfilled. Sometimes retrying is enough for the process to work properly.
Would it be possible to add a retry to validate that the check has been set correctly? Maybe as an input parameter, configurable by the user. This could be useful also for cases where the Github API returns an unexpected error, or some rate-limit has been reached.
The text was updated successfully, but these errors were encountered: