-
Notifications
You must be signed in to change notification settings - Fork 374
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
[Question] Keeps processing same set of issues #329
Comments
Nope and I am not sure that this is a good idea to filter any issue/PR because it could cause unexpected behaviour with the stale workflow.
Yes, but at the cost to have GitHub API rate limits to be reached causing issues. If you have the time, you could change the configuration to enable the debug and explore the logs. On the other hand, I really think that this issue with the API is pretty inconvenient for everyone and the option is often mislead. I see a room for improvement by either:
I saw that GitHub provide a way to know this information and in that case I am wondering if we would just call it, get the remaining and change the |
Hi @C0ZEN thanks for your insight!
If my understanding is correct, setting the following:
Would not incur actual API calls - is this correct?
I think this behavior would be a great option to have for projects that have a large number of issues that cannot be automatically closed (for a variety of reasons). In any case, I will play around wit the debug mode some more and hopefully can come to a solution that works for my project. Thanks! |
@worldomonation yes,
|
@worldomonation any update? In which project are you using it? |
Sorry about that!
I am using this Action in I've tweaked the parameters somewhat to make sure it can catch most of the stale issues, starting from oldest first. I found ~500 actions per run to process enough issues, but because closing issues is done manually in the repository, new issues being marked as stale has slowed to a trickle. |
@worldomonation you have probot to stale and this action 😲 |
probot/stale is what we used to use, but I have deprecated it in favor of this action since probot/stale did not seem to do anything for some time. As soon as I enabled this action, it started marking issues that probot/stale had not done anything on for over half a year. |
@worldomonation I will provide a small PR to improve a little bit the logs to have a better understanding of what is going on for consumers so they don't need to dive in the code and it's always helpful anyway. Regarding this part especially: if (!issue.isStale && shouldBeStale && shouldMarkAsStale) {
issueLogger.info(
`Marking $$type stale because it was last updated on ${issue.updated_at} and it does not have a stale label`
);
await this._markStale(issue, staleMessage, staleLabel, skipMessage);
issue.isStale = true; // this issue is now considered stale
} else if (!issue.isStale) {
issueLogger.info(
`Not marking as stale: shouldBeStale=${shouldBeStale}, shouldMarkAsStale=${shouldMarkAsStale}`
);
} Also I think that it can be good to have some logs regarding the consumption of the infamous "operations per run" for each issue. It gave me once again a reason to improve this option and I saw the other day that potentially we could fetch this information from the GitHub API to know exactly how many operations are possible so maybe providing a small PR just to log the result of this endpoint can be a good lead for the next improvements. Finally, if you are not aware soon there will be a new release and it will include some statistics at the end of the logs to sums up basically the mains actions (counter form). I am very interested to see that in the action for such a huge project. |
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 |
@worldomonation FYI it was released in https://github.com/actions/stale/releases/tag/v3.0.19 |
I appreciate your continued work on this! I must say, barring my own mistake (accidentally un-labeling all issues that stale marked), I am finding |
@worldomonation nice to hear! If you want to be sure that the stale action process thoroughly everything you can just check for the last line of the script. |
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 |
@worldomonation do you think it can be closed now? |
I think we can close this. Thanks for all your support on this! |
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 |
Hi 👋 first off, thank you for this project - it runs much better than what my org has been using in the past.
I have a question regarding the bot's behavior.
With the following parameters:
operations-per-run
: 30ascending
: truedays-before-issue-stale
: 180days-before-close
: -1exempt-issue-labels
: '[Pri] High,[Pri] BLOCKER,[Status] Keep Open'In the first week or so of execution the bot managed to identify and apply the stale label to a good number of issues.
However, for the last few days the bot appears to be processing the same set of issues, starting from oldest open issue on file.
The old issues get repeatedly processed are actually alive or recently had the stale label applied.
My question would be:
a) is there a way to exclude the previously processed issues from re-processing in the subsequent days?
and
b) if the above behavior cannot be accomplished with the bot as-is, would increasing the
operations-per-run
to a much higher value eg. 2000 be enough to deal with the issue?The total issues for the particular repository number about ~2300 and while a good chunk of them are stale, a lot of new issues continue to pile in so realistically only about 1/2 meet the
s>180 days without activity
threshold.The text was updated successfully, but these errors were encountered: