-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
avoid duplicated workflow invocations for pushes in PRs made from root repository branches #5377
Conversation
…t repository branches
With these changes branches in your repo will no longer trigger CI builds if you were leveraging that. It is possible there is a different approach but I didn't find any. I was thinking about checking if the PR branch is the same as the push branch and then dropping the |
@firewave Related question.. |
I don't think we need to pay for speed - it would mainly help with the build times but those aren't our bottleneck ( There's several jobs we can shed and things still to speed up:
MinGW (#4400), Cygwin and clang-tidy are the big outliers. I will try to file tickets about those. |
Thanks. This might just be temporarily. I will monitor it and check if things are actually working as expected. I will also do some tests over the next days and try to find a more targeted approach. But give it a few days as I am still not well and will be out a bit over the weekend. |
Starting around this time frame, actions are no longer triggered if I push changes to a branch of my fork. Is anyone else seeing that? |
Yes, that is what this does. I was fearing people were using that in their forks (I don't)... I was looking for a more targeted solution but it does not seems possible. I am quite baffled by that as this behavior would render repos with very long-running CI jobs totally unusable (not to speak about the extra costs we would encounter if you would pay for the runners). |
Is it possible to trigger the actions manually? Or do I need to create a PR just to see if the CI passes? |
Only individually (also a thing I don't understand - which is a pain if you want to test things manually or need to cancel them) and if they are configured to ( The only way is to revert the change. That would be fine with me. I made this change because if someone works on the main repo or files a PR from there the CI is basically clogged up for hours because each individual push as well as the pull request itself will trigger the workflows. Which is very disruptive to say the least but no one's fault. I was looking into a different approach which would detect in the |
How do I trigger an action for a specific branch of mine? |
My fork is up to date, but still no actions after the revert: https://github.com/chrchr-github/cppcheck/actions |
This was only reverted in the |
This will prevent duplicated workflows from being invoked for pushes into pull requests made from branches in the root (
danmar
) repository branches.