Skip to content

GH-46903: [CI] Automatically flag stale issues #46904

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thisisnic
Copy link
Member

@thisisnic thisisnic commented Jun 25, 2025

Rationale for this change

We have lots of stale issues/PRs

What changes are included in this PR?

CI job to warn then close

Are these changes tested?

Nope

Are there any user-facing changes?

No

@github-actions github-actions bot added the awaiting committer review Awaiting committer review label Jun 25, 2025
stale-issue-message: "This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this usage question has evolved into a feature request or docs update, please remove the 'Type: usage' label and add the 'Type: enhancement' label instead."
stale-issue-label: "Status: stale-warning"
days-before-issue-stale: 365
days-before-issue-close: 14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would personally suggest not closing issues even if they are stale because then it becomes harder to find them (if you search for just closed issues you'll also see the ones that were actually fixed)

Maybe you could mark the issues as stale but leave them open. That way they still show up in searches but you can easily filter them out with -label:stale if you want 🤔

I suspect simply by marking / commenting on an issue that it is stale will encourage some number of the initial filters to close them manually

(same comment applies below)

Suggested change
days-before-issue-close: 14
days-before-issue-close: -1

Copy link
Member Author

@thisisnic thisisnic Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your input here Andrew!

I see what you mean, though the issues we're talking about here are user questions - in a lot of cases, the conversation has trailed off awaiting a reply from the user, or has been resolved but the ticket left open and it's creating more noise in the repo when searching. The message here has the suggestion to convert them to enhancements if we need to update the docs or if the conversation has surfaced a feature request.

Just to check, what benefits do you see to keeping these open?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Folks on the mailing list seemed broadly supportive earlier, but if this is going to be contentious, it seems perhaps I'd be better off writing something up to vote on or some other mechanism - I don't want to just decide on this unilaterally if it's going to be controversial.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I don't really spend much time in this repo, I think you should defer to the mailing list consensus

Just to check, what benefits do you see to keeping these open?

The benefits in my mind are that random external users who come to search if there is a ticket about the issue they are having will be more likely to find a pre existing one.

If we close all old tickets, it will be more likely that new issues are opened that duplicated old ones, and the old context may be lost / forgotten

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, I don't oppose this PR, but I since I don't work in this repo much I don't think feel comfortable approving it either.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries re approval; I'm going to check in with a few more folks before I mark it ready for review. Thanks again for sharing; you've helped me get a bit more clarity on things to consider around how users get help.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We recommend usage type issues to be asked on GitHub discussion / mailing list and this is something we prompt when opening those:
https://github.com/apache/arrow/blob/3f95bc18828d3649fe0c4a437bd70150819952cb/.github/ISSUE_TEMPLATE/usage_question.yaml

we might want to update those templates to suggest that long inactivity on those issues might close them but doesn't seem necessary to me.

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Jun 25, 2025
Comment on lines 57 to 74
close-stale-issues-enhancement:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
# exclude PRs
days-before-pr-stale: -1
days-before-pr-close: -1
only-issue-labels: "Type: enhancement"
exempt-issue-labels: "Status: needs champion"
stale-issue-message: "This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label."
stale-issue-label: "Status: stale-warning"
days-before-issue-stale: 365
days-before-issue-close: 14
repo-token: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member Author

@thisisnic thisisnic Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rationale here is again about improving signal-to-noise ratio and so we can better identify enhancements to prioritise.

issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are trying to use the pinned sha for security reasons on the new actions, let's use it here:

Suggested change
- uses: actions/stale@v9
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 #v9.1.0

If we want v9.0 is this one: 28ca1036281a5e5922ead5184a1bbf96e5fc984e See here:
https://github.com/actions/stale/releases

On the other occurrences too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@github-actions github-actions bot added awaiting change review Awaiting change review awaiting changes Awaiting changes and removed awaiting changes Awaiting changes awaiting change review Awaiting change review labels Jul 7, 2025
@thisisnic thisisnic marked this pull request as ready for review July 7, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting changes Awaiting changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants