Skip to content

DOC Set expectations for contributors proposing significant work - #32660

Merged
lesteve merged 5 commits into
scikit-learn:mainfrom
betatim:maintainer-ingredient
Nov 17, 2025
Merged

lesteve merged 5 commits into
scikit-learn:mainfrom
betatim:maintainer-ingredient

Conversation

@betatim

@betatim betatim commented Nov 6, 2025 •

Copy link
Copy Markdown
Member

A maintainer who has the time and interest is an important ingredient in moving work forward. The goal of this PR is to make it easier to make people aware of this.

The idea is to provide a label ("Needs Decision") that can be applied to an issue that will trigger a comment to be added that explains that, based on past experience, work that has no maintainer to champion it is unlikely to be merged. The goal is to raise awareness about this fact to help set expectations. The goal is not to use this to discourage people or suggest that an issue is not interesting/important/useful. The goal is to explain why sometimes even very good ideas don't happen for a long time.

Why is this a label + bot? We could each have a message similar to this in our "saved messages" and post it. The downside to that is that everyone would have slightly different messages and that by posting in an issue you are marked as participating in it. This means you will receive notifications with a higher priority, it might also create the impression that you personally want to/don't want to participate in the discussion (instead of just making people aware of the fact).

A risk with this message is that contributors will start @-mentioning individual maintainers to attract their attention. If this starts happening we can address it then.

We discussed this topic at the Scientific Python Summit (@lesteve @StefanieSenger @glemaitre). What do others think?

xref scientific-python/summit-2025-nov#6

A maintainer is an important ingredient in moving work forward. Make
people aware of this.
@github-actions

github-actions Bot commented Nov 6, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: 6c4299b. Link to the linter CI: here

Comment thread .github/workflows/needs-champion.yml Resolved

@StefanieSenger StefanieSenger left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In essence a good idea, thanks, @betatim!

The message needs a bit more work, I think.

I think the focus on people hierarchy (you can be lucky/reputated enough to catch a maintainer's attention) instead of on structure that would also involve the contributor reads like we've given up trying to deliver a timely response. We could at least express our regret that deciding on a new feature takes more time than scikit-learn maintainers have at their hands. I bet many people are not aware of that.

For me it is still the first time that I have heard of the word "champion" in this context and I think we could also trigger this message with "Needs decision".

Comment thread .github/workflows/needs-champion.yml Resolved
Comment thread .github/workflows/needs-champion.yml Resolved
Comment thread .github/workflows/needs-champion.yml Resolved
Comment thread .github/workflows/needs-champion.yml Resolved
@betatim

betatim commented Nov 6, 2025

Copy link
Copy Markdown
Member Author

I read the review comments and decided to rewrite the text quite a bit. Trying to take into account the comments in the process

Comment thread .github/workflows/needs-decision.yml Resolved

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like the phrasing and the fact to trigger it with the label could be nice I think.

@StefanieSenger StefanieSenger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, @betatim! I like the more concise comment that starts on "thanks". I have only got some suggestions, but would be happy to have it as is, too.

Comment thread .github/workflows/needs-decision.yml Resolved
Comment thread .github/workflows/needs-decision.yml Resolved
Comment thread .github/workflows/needs-decision.yml Resolved
@StefanieSenger

Copy link
Copy Markdown
Member

@betatim, did you test this somewhere?

Co-authored-by: Stefanie Senger <[email protected]>
@betatim

betatim commented Nov 7, 2025

Copy link
Copy Markdown
Member Author

I've not tested this on my fork.

Comment thread .github/workflows/needs-decision.yml Resolved
@betatim

betatim commented Nov 14, 2025

Copy link
Copy Markdown
Member Author

What do you all think about merging this, starting to use it and then fine tuning based on what we learn?

@lucyleeow lucyleeow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm okay with merging it. I think it would be nice to add that we may 'never' make a decision (or takes so long it is not longer relevant), to really set expectations.

To make it sound 'nice' we could say something like; "for some issues, consensus is never reached".

@betatim

betatim commented Nov 17, 2025 •

Copy link
Copy Markdown
Member Author

Thanks for all the feedback and pragmatism. I'll merge this as it is now so we can try it out.

I'm thinking we should/could write a blog post about how the consensus finding process works and why it takes a lot of time. We could link to that from this comment. With the goal of having a fairly brief comment with a link to more reading material for those who want it (with more context).

Actually, I won't click merge myself. Maybe someone else can do that.

@lesteve
lesteve merged commit 71e3b9b into scikit-learn:main Nov 17, 2025
@lesteve

lesteve commented Nov 17, 2025

Copy link
Copy Markdown
Member

Let's merge this and see what happens 💪 😱

@betatim
betatim deleted the maintainer-ingredient branch November 17, 2025 14:05
@lesteve

lesteve commented Nov 17, 2025

Copy link
Copy Markdown
Member

The automated comment seems to work, I tested it in #32697 (comment).

@StefanieSenger

Copy link
Copy Markdown
Member

And it seems to only post the comment on issue, not PRs (tested in #32504) which is the desired behaviour. :)

@betatim

betatim commented Nov 17, 2025

Copy link
Copy Markdown
Member Author

I got worried for a moment that it would post every time a new label is added to an issue that includes the "needs decision" label (e.g. you add the "CI" label after the "needs decision") but that doesn't seem to happen. Which is good

@lesteve

lesteve commented Nov 18, 2025

Copy link
Copy Markdown
Member

As a follow-up:

  • the message does not mention the idea of having a champion. I kind of liked the idea, unless a maintainer shows up saying this is one of my top-priority mission to make this go forward, there is little chance that anything will happen.
  • I guess the same comment it should happen on "Needs Decision - Include" and "Needs Decision - Close"?
  • Sometimes, we use "Needs Decision" for things we should decide on ourselves e.g. _safe_indexing being the only *private* thing listed in classes.rst #27439. It's a bit weird to have a automatic comment in this case.
  • the comment has newlines in weird places which looks a bit weird. Probably fixable although not sure how ...

@betatim

betatim commented Nov 18, 2025

Copy link
Copy Markdown
Member Author

Picking the easy ones:

  • Maybe if we end the lines with \ we don't get the weird newlines?
  • Fine for me to also add it on the other labels
  • For me it is fine to have the bot comment on the "internal" ones - it is a bit weird but I'm ok with a bit of entertainment in exchange for keeping the bot super simple (no hacky way of stopping it from commenting)

@lesteve

lesteve commented Nov 18, 2025 •

Copy link
Copy Markdown
Member

Maybe if we end the lines with \ we don't get the weird newlines?

maybe, I don't really know how the yaml + the bash quoting are going to play with each other here. The only way to be sure is testing this on your fork 😉. In other words

  • push your changes in betatim/scikit-learn main branch
  • set the "Needs Decision" label on one issue in your fork
  • keep iterating until it eventually works

@StefanieSenger

Copy link
Copy Markdown
Member

It seems the \ doesn't prevent the line breaks in the comment, though using yaml folded style BODY: > instead of BODY: | does.
(I have tested that here).

@betatim

betatim commented Nov 18, 2025

Copy link
Copy Markdown
Member Author

Do you want to make a PR fixing this?

TIL about > vs | in yaml!

@StefanieSenger

Copy link
Copy Markdown
Member

Do you want to make a PR fixing this?

Hehe, let's see what all breaks with #32504 and then fix issues together. 😆

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants