Skip to content

Be more specific about expected practices (rules) around PR creation - #282

Open
merks wants to merge 1 commit into
eclipse-platform:mainfrom
merks:pr-pull-request-best-practices
Open

merks wants to merge 1 commit into
eclipse-platform:mainfrom
merks:pr-pull-request-best-practices

Conversation

@merks

@merks merks commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@HeikoKlare HeikoKlare left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I understand the ongoing discussions and the need for improvements in the process. But I have to admit that I am not sure if the proposed rules really do more good than harm. More specific comments at the actual bullet points.

Comment thread CONTRIBUTING.md
Create a pull request only after you have personally verified the quality.
- Use your fork for drafting a pull request and for initial copilot reviews.
- Create a pull request only after you have personally verified the quality.
- Limit the number of concurrently open pull requests to ten.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will proactively limit possible progress, won't it? What's the exact purpose? I see that it's about reducing resource consumption and the necessity of rebasing/rebuilding for the new release stream anyway (eclipse-platform/eclipse.platform.ui#4590 (comment)), but why is limiting progress and the ability to prepare stuff during freeze period considered a reasonable solution for that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We've tried to ask people to self rate limit but that hasn't been working well. Personally I'd rather say please rate limit yourself a reasonable number of concurrent PRs. But maybe 100 is reasonable to someone.

Even just here we have 137 open PRs:

https://github.com/eclipse-platform/eclipse.platform.ui/pulls

How much is garbage? What needs rebasing and will that all cost another 1000 builds in sum total? Is this list manageable? It's certainly not managed. Do "we" actually care about PRs from other people or pretty much just our own? It looks like chaos to me. and I keep wondering why do so many PR needs to be pushed into the public all at the same time.

I would expect it's quite normal that we do something and then complete something in some reasonable sequence of events and that it's not really necessary to do 40 things at once. And I'm not exactly sure why one can't make progress in a fork but require in a public PR to the main repository for actual progress? To me it just seems mostly it's all overwhelming and things will just get merged because no one commented. How can one comment on the incoming flood?

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.

IMO the "Limit ..." should become "Make sure you finish your previosly opened PRs before opening new ones.". That is more in line with my view than any limit that there is no way to enforce.
It might be good time to restart the discussion about auto closing PRs opened for more than e.g. a year ( I personally would say 6 months or even 3 is more in line with current environments).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 for auto-closing old PRs and old GH issues

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 for auto-closing old PRs and old GH issues

Please don't do it and it does not solve anything. It just create more noise. If you are not certain you want to bring in your PR please simply don't open one!

I think it makes sense to ask for limit open PRs, it should be clear what a person focus on and what is expsected for others to look at.

One can always prepare stuff at the fork and open the next PR once things are done, the upstream repository is nothing where one should dump anything that one want to come back maybe later.

@laeubi laeubi Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I now proposed to include issue/pr review as an explicit task the IDE-WG might want to fund: https://gitlab.eclipse.org/eclipse-wg/ide-wg/ide-wg-dev-funded-efforts/ide-wg-dev-funded-program-planning-council-top-issues/-/work_items/33#note_8683925

I also plan to dedicate some time over the Christmas season here, even though I might be a bit slower as a usually auto-close bot 🥲

Comment thread CONTRIBUTING.md
- Create a pull request only after you have personally verified the quality.
- Limit the number of concurrently open pull requests to ten.
- Do not create a pull request that cannot reasonably be expected to complete quickly.
- Do not create a pull request during the freeze period that will need rebasing when the new stream opens.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I do not understand when a PR "needs" rebasing when the new stream opens. Actually, every PR needs rebasing to ensure version bumps are applied properly. So this effectively means that it is not allowed to create any PR during freeze period that will not be merged before freeze period ends, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If all PRs always need rebasing always this is all the more reason why having umpteen open at once is a really bad idea. I still have no clue why it's urgent to push all things into public PRs as soon as possible and as often as possible?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is more a technical question and how much "churn" we want for it to be automated or enforced.
e.g. we can possibly disable the automatic version increment during freezes, put automatically a blocking review on open PRs, rebase them automatically ... all possible.

I would formulate it maybe differently to not create more PRs (as they are likely need to wait any ways) and focus instead on stabilization and testing during such periods. For a PR that has not gotten into a release and created long before its done any ways ...

@vogella

vogella commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

I think the problem is the long freeze peroid. @iloveeclipse suggested that we split master after M3 which would allow to work more efficient see eclipse-platform/eclipse.platform.releng.aggregator#863

Also lot of people ask that PR stay open for a while to give a chance to review. Restricting the number of open PRs like this will IMHO harm the project as work can not be shared as easily.

@laeubi

laeubi commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

I agree that PRs need to stay open long enough to be reviewed, and that some concurrency makes sense.

My concern is a different one: review capacity is the bottleneck, and more open PRs don't increase it.
A second PR rarely makes the first one progress faster, because reviewers now have to split their attention.
It also makes it hard to see what is actually important to the author right now.

So a helpful question is: what matters most to you now?

If one PR is waiting for feedback, you can keep working on the next one in your fork and open it once there is room.
You can also use the waiting time to review other open PRs. A second opinion is always welcome, and it usually pays off, as people are more likely to look at your work when you looked at theirs.

So I'd read the number as a guideline for focus rather than a hard cap.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants