-
Notifications
You must be signed in to change notification settings - Fork 373
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
Feature request: option to limit mutations per run #495
Comments
I agree with the first statement however I don't see the usefulness of this option (I know it's weird because we already talked about it but rethinking this again makes me wonder). Let's say that you have one option to define the queries and one that define the mutations. Also, I don't get the second point because one operation per run would make the action completely useless. |
Sorry: "1 mutation per run (hourly)" is what I intended, not "operation". This would allow all issues & PRs to be inspected, but only one of them to be updated. This would prevent a bad configuration or a bug in the stale bot from potentially impacting every issue/PR in our repo.
The idea would be to set "operations" very high but "mutations" to something very low to provide a safety net for the issues & PRs in the repo. On average, in steady-state, if done hourly, most runs should need to update zero or one issue. |
@dfawley oh yeah it totally makes sense to me now, thanks! |
Even with a daily run, it's almost always the case that there are many more issues that need to be inspected than need actions. If we had to run only once per day, I'd set operations to a very high value but limit mutations to 5 or so. 2-3 issues touched per day is the max I'd actually expect to happen, so this would allow for that while also limiting on the damage the action could cause based on a typo in my config, etc. |
I started to work on a PR and I will finish the work this week. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
up |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
up |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
up |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
up |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Forked from #466.
There is an option today that limits the number of operations per run, which limits all github API operations, including reads. However, I would like an option to limit the number of mutations.
Justification:
setting the current option to anything other than "unlimited" (or 9999999) means potentially never making it through checking all the issues/PRs, even if no mutations have been performed. This means if an issue appears late in the list that does require an action, it may never be updated.
allowing the tool to make unlimited changes is problematic in the event of a bug or misconfiguration. For http://github.com/grpc/grpc-go, we very much would like to limit it to something like one
operationmutation per hour or so.cc @C0ZEN
The text was updated successfully, but these errors were encountered: