-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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/workflows/periodic-merge: generalize from merge-staging #128300
Conversation
0c412a9
to
57af4e7
Compare
57af4e7
to
429e087
Compare
429e087
to
4db429f
Compare
4db429f
to
5bd2d4f
Compare
5bd2d4f
to
4ca16a5
Compare
I was talking about this with @maralorn on Matrix, but maybe it makes sense to post it here as well. Making this run every 6 hours means that it will run 4 times a day. This means that people subscribed to these PRs could potentially get pinged an additional 4 times a day. This seems a little excessive, since these updates are mostly non-actionable and not interesting. Is there any way to work around this, or possibly drop the frequency to once per day? This affects me personally in the |
@cdepillabout or just accept the avalanche >:) |
Does this not only trigger a notification if the merge failed? |
You get one email per commit, usually. |
Being a code-owner for > 4.3k python "modules" doesn't sound like a sensible thing to begin with. Maybe drop that and things will get back to normal? You can still filter for |
Maybe unsubbing from "Pull Request Pushes" helps? |
If this gets merged in as-is, that might be what I'll have to do. Although, in general, I do want to see pull request pushes. However, the ones triggered from this PR would be both very(?) frequent and mostly uninteresting / non-actionable. I sent another message about this on Matrix, but I guess I should post it here as well. I want to be clear that I'm not opposed to this automatic merging workflow at all, just the amount of notifications that would be triggered by the frequency of the merging. Is there some sort of argument for doing the merges 4 times a day? It seems somewhat arbitrary to me, and I can't think of a reason why we wouldn't instead go with, for example, 6 times per day (more frequent), twice per day (slightly less frequent), or once per day (less frequent). Is 4 times a day a sweet spot? In the case of |
When I was most active, I was actually able to stay on top of the 100-200 notifications I would get a day. Obviously that's not the case anymore ;) |
Likely has something to do with staging-next being evalued every 12 hours. I don't have an idea how we would be able to cover multiple different cron jobs without creating multiple separate workflows. |
The Haskell Team has finished it’s timezone spreading discussion and we have found a conclusion. We would like master -> haskell-updates merges to happen every 24h. Now I see a few ways forward: I am okay with either of those. |
Instead of domain specific files, what about just having different files which are denoted by their frequency (e.g. |
By generalizing the previous merge-staging action we can support a large number of branch pairs that need to be merged periodically. Provide two intervals, daily and every six hours, to accomodate different needs. Co-Authored-By: Malte Brandy <[email protected]>
4ca16a5
to
3f40ca4
Compare
Updated. |
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
Motivation for this change
By generalizing the previous merge-staging action we can support a large
number of branch pairs that need to be merged periodically.
Tested over here:
https://github.com/mweinelt/nixpkgs/actions/workflows/periodic-merge.yml
mweinelt#6
I only created
haskell-updates
to test that merging still works, I don't have any of thestaging-next
branches, so they obviously fail.https://github.com/mweinelt/nixpkgs/actions/runs/976153168
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)