neurobagel / planning

MIT License
0 stars 0 forks source link

Turn on merge queues #143

Open surchs opened 2 months ago

surchs commented 2 months ago

The overhead of dependabot PRs is mainly having to wait for them to go back to green after the previous one merged. Github auto-merge can help, because it will automatically merge PRs once all requirements are met.

Tasks

Something to look into:

edit: old and incomplete view: That's what merge queues are for (and hopefully that works here to): https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue

So let's turn them on and let GitHub manage the merge sequence

surchs commented 2 months ago

I think I misunderstood this partly. What I am looking for is more "auto-merging": https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request

Merge queues are also nice, but they address a problem that we don't have yet: how to merge a lot of PRs one after the other, if the CI for each PR takes a lot of time.

I think we can still enable merge queues if we want to (we now have them in https://github.com/neurobagel/react-bagel) but this issue should be about whether we want auto-merges turned on.

For us auto-merge would mean:

For external contributors it would mean:

surchs commented 2 months ago

Some things we've learned already:

So for these things, you'd still want a merge queue

surchs commented 2 months ago

https://medium.com/@kojoru/how-to-set-up-merge-queues-in-github-actions-59381e5f435a

surchs commented 1 month ago

Shared workflows we want to run on merge queues:

Repo specific workflows we want to run on merge queues

surchs commented 1 month ago

moving this issue to tracked until we address the following workflows issues:

Addressing these issues will also implicitly resolve the merge_queue issue but by making one change instead of 4 or 5