-
-
Notifications
You must be signed in to change notification settings - Fork 773
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
GitHub Actions: smart run strategy #937
Conversation
Previously, every pull request was running actions twice, since two signas were fired - push commit in the PR and new PR itself.
Codecov Report
@@ Coverage Diff @@
## master #937 +/- ##
=======================================
Coverage 94.94% 94.94%
=======================================
Files 30 30
Lines 1423 1423
=======================================
Hits 1351 1351
Misses 72 72 Continue to review full report at Codecov.
|
CHANGELOG.md
Outdated
@@ -16,6 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
|
|||
## [unreleased] | |||
|
|||
### Fixed |
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.
Thanks for your contribution!
I don't believe this goes in the CHANGELOG though as it's not a user-visible change.
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.
Oh and please add yourself to AUTHORS
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.
Thank you, Alan, for a fast review!
I've added requested changes.
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.
Thanks for this speed up
@amureki Please be so kind and revert this change, the use of both events is deliberate to account for all kinds of state changes a pull request can have, such as pushes happening to branches in forked repos that a pull request has been opened against. @n2ygk Please let me know if other pull requests come in about the GitHub Actions configuration so I can do a review. Thank you! |
@jezdez hey Jannis! I am sorry for bringing some confusion here. ATM trying to understand which states are not covered by this configuration. After seeing green actions build, I dropped another commit to see if it will retrigger actions event, and it did: I am creating a revert PR in any case, to not possibly block anyone. |
Thanks for willing to dive into this, and you're right this seems to work. Sadly I don't have a working setup anymore where I was able to reproduce the edge cases with pull requests when I prepared the move from Travis to GitHub Actions. I appreciate your interest in figuring this out though! IIRC it was a combination of pull requests first being closed and reopened again and then not receiving push events anymore for changes in a fork branch. GitHub may have fixed it, or not, I can't really say without digging in again, their changelogs are not very detailed I'm afraid and last time the GitHub forum had a few people with similar issues. Personally I'm mostly concernd about consistency in running GitHub Actions for all Jazzband projects. Thank you for resurfacing this since if it turns out to be not reproducable anymore I can update all the other Jazzband projects as well, which obviously would be a really nice thing to do, ecologically speaking. I'd appreciate a roll-back in the meantime though. |
@jezdez thank you for the detailed explanation! ✨ Whenever you have some time and will digging into this, feel free to drop me a line here or on Update: from what I see in GitHub Actions webhooks documentation, adding
So, it might be that they fixed/added some time after the issues were appearing, but we'd still need to validate that. |
Description of the Change
Previously, every pull request was running actions twice, since two signals were fired - push commit in the PR and new PR itself.
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#webhook-events
Checklist
CHANGELOG.md
updated (only for user relevant changes)AUTHORS