-
Notifications
You must be signed in to change notification settings - Fork 18
Invoke CI only on main branch #23
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
Conversation
I think this change makes sense. On the other hand, https://github.com/duckdb/extension-template/blob/main/.github/workflows/MainDistributionPipeline.yml also covers all branches, not just main. Maybe @samansmink or @carlopi can add more context? |
I think it makes more sense as is now, logic works as follow:
You could check for example: https://github.com/duckdb/duckdb-httpfs/blob/main/.github/workflows/MainDistributionPipeline.yml or https://github.com/duckdb/duckdb-spatial/blob/main/.github/workflows/MainDistributionPipeline.yml. Given this repository do not handle publications of extensions but only building and testing, to me it seems fine as is now. |
Do you really want to invoke GitHub Actions twice when you push to the branch that a pull request is based on...? |
I am not sure I see what is the better proposal / if you can make a concrete example of what's not working right now. Current setup we have for |
Okay. Sorry, I wasn't very clear about what's the problem. Let me explain. If a user wants to develop their own extension with pull request based development, this is what happens:
I feel this is waste of CI time. I bet it's very rare that the results of the checks differ between on the branch and on the pull request. By "rare", I mean it's sometime useful. I might choose the same setting, but it's a trade-off between safety and CI time. Considering the CI check on DuckDB extension takes a decent amount of time, I'd choose to run the CI check only on the main branch. Of course, it depends on the size of the development; |
So I think you would want to add
In that case CI is run once per push (on an non- Does this sound OK? |
Thanks, it makes sense to me! I usually add |
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
Can this get merged? If there's still anything I should address, please let me know. |
Thanks |
Thanks for merging! |
If I understand correctly, the current GitHub Actions setting invokes the check on all pushes to any branches. I think an ordinary user wants to run CI only on the main branch. (Is this configured so by some intension...?)