Dear Pulsar Community,

I propose that we limit the number of pull requests a contributor
without write access can have open at the same time in apache/pulsar
to 5. Committers are not affected.

Why

Review capacity is our bottleneck [1]. apache/pulsar has about 130
open PRs today. About 85 of them are from about 35 contributors
without write access, and more than 50 of those were opened in
November. Five contributors have more than 5 open PRs each, about 40
between them.

Some of these PRs appear to be created by automated tooling: they
arrive in batches, and new ones are opened while review feedback on
the earlier ones is still unanswered. The ASF's guidance on
generative tooling [2] expects a person to review and take
responsibility for every contribution.

A limit on work in progress addresses this without judging anyone's
tools. A contributor who is at the limit has to respond to the
review feedback and get a PR merged or closed before opening the
next one.

How

GitHub supports this limit for users without write access [3], and
ASF Infra exposes it in .asf.yaml [4]:

  github:
    pull_requests:
      creation_cap:
        enabled: true
        max_open_pull_requests: 5
        include_drafts: true

Apache Airflow enabled the same limit of 5 in September after a
lazy consensus on their dev list [5], and documented it for
contributors [6].

What it means for contributors

- With 5 open PRs, GitHub refuses a new one. A slot frees up when
  one of your PRs is merged or closed.
- It limits PRs open at the same time. There is no limit on how
  many PRs you contribute over time.
- You can keep working on branches in your fork and open the PR
  when a slot is free.
- Reviewing other contributors' PRs is welcome and is not limited.

Existing PRs

The limit does not close anything. I propose that we do not close
existing PRs either. The few contributors who are over the limit
cannot open new PRs until they are below it.

Exemptions

Contributors who need more than 5 open PRs can request an exemption
by sending an email to [email protected]. If there are no
objections, a committer adds their GitHub login to bypass_users in
.asf.yaml.

Questions

1. Is 5 the right number to start with? We can change it later.
2. Should draft PRs count? I propose yes, since otherwise drafts
   are a way around the limit.

If the discussion does not bring up objections, I will follow up
with a lazy consensus thread and a PR for .asf.yaml and
CONTRIBUTING.md.

[1] https://lists.apache.org/thread.html/qmb9x772j1b2843k8lom50x2lorz8wpl
[2] https://www.apache.org/legal/generative-tooling.html
[3] 
https://docs.github.com/en/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository#limiting-concurrent-open-pull-requests-for-users-without-write-access
[4] https://github.com/apache/infrastructure-asfyaml#pr_creation_cap
[5] https://lists.apache.org/thread/y0vzry5s55k2gy17rc93632zp0d5733o
[6] 
https://github.com/apache/airflow/blob/main/contributing-docs/32_open_pull_request_limit.rst

-Lari

Reply via email to