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
[RFC] Stale issues/pulls action #36657
Comments
this looks like a bug to me. The github API shows it was updated after the stale label was added (it's the time paper added their review comments):
|
indeed, but here is what the action tell us (on runs after the marking)
the important lines are
fast reference in the source of the action, _processStaleIssue -> _hasCommentsSince -> listIssueComments it checks only for comments, and if we check what the API gives us, we can confirm $ gh pr view --json comments 34884
{
"comments": [
{
"author": {
"login": "ericonr"
},
"authorAssociation": "MEMBER",
"body": "Please mention in the commit that you're switching upstream to the version that has the newest releases.",
"createdAt": "2022-01-06T04:39:54Z",
"includesCreatedEdit": false,
"isMinimized": false,
"minimizedReason": "",
"reactionGroups": [
{
"content": "THUMBS_UP",
"users": {
"totalCount": 1
}
}
]
},
{
"author": {
"login": "github-actions"
},
"authorAssociation": "NONE",
"body": "Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.",
"createdAt": "2022-04-10T02:05:36Z",
"includesCreatedEdit": false,
"isMinimized": false,
"minimizedReason": "",
"reactionGroups": []
}
]
} so it is not exactly a bug (as in code mistake/error), it just not a feature that the action offers |
The documentation states:
The action not acting like the documentation says it should is a bug Edit: adding those relevant lines
(no message removed between them)
|
Found the code where it doesn't do the checks it should do, and reported the bug actions/stale#715. |
My bad, I only checked the table in the action documentation; that didn't mention |
I was able to come up with a fix so I made a PR in the stale repo actions/stale#717 |
As of few hours ago, @0x5c fix was merged in upstream; with that, I think all point are covered now and we just have to wait for a new release of the action. So, maybe we can close this issue or convert it into a tracking one for the supposed action update? |
There are more bugs that weren't mentioned here, but are much harder to fix in stalebot without a refactor. For example issues/PRs being in eternal stale limbo if assigned to someone after they got the stale label since the stale/unstale logic is after the "is this assigned" check skips the issue. The workflow will still need to be updated to the |
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it. |
Related to: #36253 #36399 #36462
My believe is that with the current action and settings, the backlog won't disappear.
The action tries to consume all open issues and PRs, on every run.
Even with the max hourly limit of 1000 operation, the action can't check and label all currently open items.
(can be seen in the debug runs from @maldridge)
As of now ~210 issues and ~418 PRs are supposed to be Stale.
(taking into account the change from #36609, https://github.com/void-linux/void-packages/issues?q=is%3Aopen+updated%3A%3C%3D2022-01-11+no%3Aassignee+-label%3Arequest)
At the current rates of new new issues/PRs, I believe they will never be marked, only very few (the newest of the oldest) items will get marked.
Also there seems is another issue with the action - it doesn't count PR review comments as updates for the action, example #34884. That PR got marked Stale, received a review, and the next day the action saw the changes, but didn't count them as comments and left the Stale label. Thus it seems, only real comments are counted.
I am suggesting to raise the operation limit to something like 400 (which should result in roughly 50-60, newly marked items per run), so there can be at least some progress. The other actions, are not doing many requests, so for the one random hour in the middle of the night this should be okay.
Multiple runs a day, can also be an option - but they will mark one or two new items, as currently the bulk of the operations is spent on fetching brand new items and checking current stale ones.
Of course an option will be to find or write a smarter action
P.S. There seems to be a v5 of the action, but it doesn't address any of the concerned topics.
P.P.S https://github.com/Sonia-corporation/stale may be a solution, but I haven't looked too much into it.
The text was updated successfully, but these errors were encountered: