-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-30173][INFRA] Automatically close stale PRs #26877
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
|
@HyukjinKwon and @srowen - I've put in some dummy values and prose to give you something to look at. Let me know what you think the stale timeout and message should be. I've linked to the action doc in the PR description. |
|
Test build #115281 has finished for PR 26877 at commit
|
.github/workflows/stale.yml
Outdated
| a way of keeping the PR queue manageable. | ||
|
|
||
| If you'd like to revive this PR, please reopen it! | ||
| days-before-stale: 3650 |
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.
This would be 10 years? 6 months is OK, or maybe less. 1000 days? I also don't think it needs to warn.
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.
I also don't think it needs to warn.
Are you talking about days-before-close?
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.
Both. I think this number has to be lower. Oops, I meant 100 days not 1000 BTW. Also I don't think we have to warn before closing.
| days-before-stale: 100 | ||
| # Setting this to 0 is the same as setting it to 1. | ||
| # See: https://github.com/actions/stale/issues/28 | ||
| days-before-close: 0 |
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.
@srowen - I've set days-before-close to 0, which in theory means the PR will be closed immediately after it crosses the stale threshold. However, due to the linked issue, this will in practice close the PR 1 day after tagging it as stale and posting the message.
|
Test build #115308 has finished for PR 26877 at commit
|
|
Test build #115311 has finished for PR 26877 at commit
|
|
I also saw the dev email, but do we have a vote for this? |
|
Does it need a vote? Feel free to call one if so. |
|
I believe it's up to you, @nchammas . |
|
I don't particularly think this needs a vote. It's a minor point of process. |
|
I agree with Sean, but as a non-committer I don't feel I have the authority to make a call one way or the other. @dongjoon-hyun - Would it be sufficient to just update the original email thread on dev about this and point people to this PR? @srowen - Are you happy with the PR as it stands now? |
srowen
left a comment
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.
Looks good; is there any way to do a test run just to make sure it does what we think?
|
Unfortunately not. To be safe, we can merge this in with a more lax timeout, or comment out the stale message (which disables actually closing any PRs), and see how it works before reverting the settings to what we ultimately want them to be. |
|
Yeah, I guess I'm just concerned it might somehow close a bunch of new PRs. Well, I can make a list of them and if it all goes wrong can reopen them. I guess the default of operations-per-run = 30 helps limit what it will do per run. OK, I think we can give it a go. |
|
Agreed. The action will mark stale PRs with a tag, so they should be easy to find. |
|
Merge to master |
|
@srowen - Thanks for kicking off a run of this workflow. It looks like AMP Lab Jenkins underwent some kind of reboot on September 16 and updated many PRs with a perfunctory "Can one of the admins verify this patch?" comment. We'll have to wait until Christmas for the 100 day timeout to expire and the initial wave of PRs to be marked as stale and closed. |
|
Looks like the workflow is working. It's hitting the rate limit we set, but nonetheless working its way through our backlog of stale PRs. |
Follow-on to #26877. ### What changes were proposed in this pull request? This PR tweaks the stale PR message to [clarify](#24457 (comment)) the procedure for reopening a PR after it has been marked as stale. ### Why are the changes needed? This change should clarify the reopening process for contributors. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? N/A Closes #27114 from nchammas/SPARK-30173-stale-tweaks. Authored-by: Nicholas Chammas <nicholas.chammas@gmail.com> Signed-off-by: Sean Owen <srowen@gmail.com>
What changes were proposed in this pull request?
This PR adds a GitHub workflow to automatically close stale PRs.
Why are the changes needed?
This will help cut down the number of open but stale PRs and keep the PR queue manageable.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
I'm not sure how to test this PR without impacting real PRs on the repo.
See: actions/stale#32