Skip to content

Test PR for autoclosing mechanism - #32743

Closed
lesteve wants to merge 1 commit into
scikit-learn:mainfrom
lesteve:test-autoclose
Closed

lesteve wants to merge 1 commit into
scikit-learn:mainfrom
lesteve:test-autoclose

Conversation

@lesteve

@lesteve lesteve commented Nov 19, 2025

Copy link
Copy Markdown
Member

This PR is to test #32504. In principle it should be closed two weeks after the label has been set.

@lesteve lesteve added the autoclose PR automatically closed 14 days after setting the label label Nov 19, 2025
@github-actions

Copy link
Copy Markdown

⏰ This pull request might be automatically closed in two weeks from now.

Thank you for your contribution to scikit-learn and for the effort you have put into this PR. This pull request does not yet meet the quality and clarity needed for an effective review. Reviewing time is limited, and our goal is to prioritize well-prepared contributions to keep scikit-learn maintainable. Unless this PR is improved, it will be automatically closed after two weeks.

To avoid autoclose and increase the chance of a productive review, please:

  • Ensure your contribution aligns with our contribution guide.
  • Include a clear motivation and concise explanation in the pull request description of why you chose this solution.
  • Make sure the code runs and passes tests locally (pytest) and in the CI.
  • Submit only code you can explain and maintain; reviewers will ask for clarifications and changes. Disclose any AI assistance per our Automated Contributions Policy.
  • Keep the changes minimal and directly relevant to the described issue or enhancement.

We cannot provide one-to-one guidance on every PR, though we encourage you to ask focused, actionable questions that show you have tried to explore the problem and are interested to engage with the project. 💬 Sometimes a maintainer or someone else from the community might be able to offer pointers.

If you improve your PR within the two-week window, the autoclose label can be removed by maintainers.

@github-actions

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: a3c875e. Link to the linter CI: here

@StefanieSenger

StefanieSenger commented Nov 19, 2025 •

Copy link
Copy Markdown
Member

I am starting to collect notes for possible future adjustments here (as we test this in practice and collect experience). I am sure there will be several issues, that we can collect for a few weeks and then address them all together.

  1. If a new contributor waits until the very last day to improve their PR, we might not be able to see this in time, because we might not check for the autoclose label every single day, especially on weekends. To win some breathing room, we could communicate there is a two-week window to improve, but actually set CUTOFF_DAYS=18 or higher.

(If you notice any issue with the autoclose functionality, please feel free to comment here.)

@lesteve

lesteve commented Nov 19, 2025 •

Copy link
Copy Markdown
Member Author

If a new contributor waits until the very last day to improve their PR, we might not be able to see this in time, because we might not check for the autoclose label every single day, especially on weekends.

I would say let's use this and collect some data before we decide to tweak things.

I don't expect that many PRs with autoclose and whoever feels like it (I include myself here) can use GitHub searches like https://github.com/scikit-learn/scikit-learn/issues?q=sort%3Aupdated-desc%20label%3Aautoclose to decide to remove autoclose labels or re-open closed PRs.

@lucyleeow

Copy link
Copy Markdown
Member

I was thinking of adding 'autoclose' to some PRs currently labelled 'closing candidate' (I had been using this label as a proxy for the new autoclose) but should we wait 2 weeks to check it works with this test first?

@lesteve

lesteve commented Nov 20, 2025

Copy link
Copy Markdown
Member Author

Feel free to try the autoclose label on any PR you want!

The auto-comment works and the auto-closing mechanism should work (it was tested on a fork) but we'll be 100% sure in two weeks. Worst-case scenario, the auto-closing has a bug and we have to close a few PRs manually, no big deal.

Personally, I would use the autoclose label on newish PRs where the first impression is not good enough but there is still a small chance that it goes somewhere. If the chance that it goes somewhere seems too low, I would close directly these days 😅.

@lesteve lesteve changed the title Test autoclose in PR Test PR for autoclosing mechanism Nov 22, 2025
@lesteve

lesteve commented Nov 26, 2025 •

Copy link
Copy Markdown
Member Author

As some kind of feed-back for better general awareness. I did not necessarily expect this but you know humans are creative 😅, so sometimes:

Footnotes

  1. which may actually work to be honest, you start afresh with another maintainer and have another chance to grab their attention, or maybe some agentic tools do that for them, who knows 🤔 ↩

@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown

Thank you for your interest in contributing to scikit-learn, but we cannot accept your contribution as this pull request does not meet our development standards.

Following our autoclose policy, we are closing this PR after allowing two weeks time for improvements.

Thank you for your understanding. If you think your PR has been closed by mistake, please comment below.

@github-actions github-actions Bot closed this Dec 4, 2025
@lesteve

lesteve commented Dec 4, 2025

Copy link
Copy Markdown
Member Author

So we now have the confirmation that the autoclose mechanism works 🎉

@AnneBeyer

Copy link
Copy Markdown
Member

I just got a notice that autoclose schedule failed on my fork (because it was trying to post on a PR in the main repo from my account). Is there any way to disable it in a fork (maybe by making the issue location relative to the repo containing the Action)?
@StefanieSenger

@lesteve

lesteve commented Dec 11, 2025 •

Copy link
Copy Markdown
Member Author

Yup I guess we can use the same pattern as in other places to not run in a fork, one way to find them is this git grep command:

git grep -P 'if.+scikit-learn' .github/

PR more than welcome of course 😉

@StefanieSenger

Copy link
Copy Markdown
Member

Oh, good to know, I had some minor changes on the comment text on mind anyways that we had spoken about with @lucyleeow. And a little formatting modification for @betatim s Action (#32660 (comment))

I will adjust all of these issues in the same time and add a condition to not autoclose on forks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autoclose PR automatically closed 14 days after setting the label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants