-
Notifications
You must be signed in to change notification settings - Fork 61
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
trigger ci on pull_request #26
Conversation
The reasoning for the current concurrency setting is the following:
To be honest, I didn't attempt to understand your proposed changes to the concurrency settings (yet). Why would we need different concurrency rules for PRs? (Assuming we'd like to enable CI on GitHub PRs.) |
Yes, it preserve the current state, as it state in the second bullet.
I want to propose a change when doing a PR. - when you do a PR, many times you do mistakes. It not yet ready, and you want last result for your latest commit. Then for push (regular commits) it preserve the state as you write it down. This pattern taken from github action docs: |
Wouldn't users be able to run the action in their fork of the repository? Also, I don't think the concurrency would work like you described for pushes. Looking at the documentation you linked, |
It it multiple commit in the same push, it will only trigger on the last commit.
On a self PR, only after this change. You don't commit to master or default on your forked repo. you do self PRs, to check your code.
For my experience working and contributing in other repos and many PRs, it more convenient and faster to develop when you see the result on each PR. You can improve very fast. With the suggestion I am suggest for concurrency in PRs, changes can be made faster, and no need to wait waisted time for unfinished jobs in your PR, because your wrong commits, or changed commits. If you think otherwise, let me know. I will just add the pull_request without change the concurrency. |
No, it isn't. It is only unique to every branch of this repository.
I meant: Users can run the CI on the branch in their fork before or after they open a PR for said branch. They can do that now. (I do that semi-regularly.) We don't need this change for that. If you prefer to not wait for the results when iterating, you could cancel a running action and let the subsequent one start. You can do that on your fork without needing any special permissions for this repository. |
Now I understand you what you doing. I will change it back the concurrency policy. |
561a87a
to
642f1fe
Compare
I'm still not convinced this is a good idea. We are constantly running into GitHub cache limits (which makes the slow CI even slower). If we'd enable the CI on PRs, that would make the situation only worse. GitHub is just a mirror for Octave. We need to look at multiple places anyway. If contributors would like to run the CI before their changes are merged, they can do that in their fork of this repository, imho. I'll leave this open for some time in case another maintainer would like to chime in. But I personally are not in favor of this change. |
642f1fe
to
6937557
Compare
6937557
to
3d7a360
Compare
trigger ci on pull_request: