8000 DOC Detail superseded workflow for PRs by thomasjpfan · Pull Request #23220 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC Detail superseded workflow for PRs #23220

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

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Related to #14570 (comment)

What does this implement/fix? Explain your changes.

This adds a policy to close stalled PRs when they become superseded. To me, closing superseded PRs is similar to closing duplicate issues. If a superseded PRs is closed, we signal to contributors that all new discussions continue on the new PR.

An extreme example are these 5 PRs on the same issue: #13042, #12285, #10168, #18094, #22562 where 4 of them are superseded.

CC @scikit-learn/core-devs @scikit-learn/contributor-experience-team

Copy link
Member
@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

I am fine with this workflow.

@jeremiedbb
Copy link
Member

If we immediately close after having labelled the PR "superseded", is the label still necessary ?

@adrinjalali
Copy link
Member

I think the label would be nice, cause in some cases we may not want to close immediately. This gives us a way to go back to the ones we've labeled but not closed.

@@ -64,6 +64,10 @@ can do the following important tasks:
or needs help (this is typically very important in the context
of sprints, where the risk is to create many unfinished PRs)

- If a stalled PR is taken over by a newer PR, then label the stalled PR as
"Superseded", leave a comment on the stalled PR linking to the new PR, and
close the stalled PR.
Copy link
Member
@jeremiedbb jeremiedbb Apr 27, 2022

Choose a reason for hiding this comment

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

to leave some flexibility as mentioned in #23220 (comment)?

Suggested change
close the stalled PR.
possibly close the stalled PR.

Copy link
Member

Choose a reason for hiding this comment

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

We can say "likely" if we want to a nuance between the two.

@thomasjpfan
Copy link
Member Author

I think the label would be nice

I agree that the superseded label is still useful.

in some cases we may not want to close immediately.

@adrinjalali In what cases do you want to keep a superseded PR open? As long as the stalled PR and the newer PR reference each other, we can still go between them.

@adrinjalali
Copy link
Member

Sometimes he superseded PR is not directly superseded and rather as a biproduct of another PR. It's more like, if we manage to get that other PR in, it would also fix this PR, but we could still get this in if it gets done first.

Sorry, something went wrong.

Copy link
Member
@lorentzenchr lorentzenchr left a comment

Choose a reason for hiding this comment

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

LGTM

@jeremiedbb
Copy link
Member
jeremiedbb commented Apr 27, 2022

merging. 5 approvals should be enough :)

@jeremiedbb jeremiedbb merged commit 40f9460 into scikit-learn:main Apr 27, 2022
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request May 19, 2022
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
0