[RFC: Process to become a core developer]
I'm working on a process to describe how a contributor becomes a core developer. The purpose is to be transparent, list "requirements" and responsibilities to the contributor, and have written rules to help to take a fair decision.
This document is a draft. I chose to post it on python-committers. I expect that we would have to iterate on it multiple times until we can reach a consensus to agree on the process.
While the process has many details, it must be seen more as a guideline than strict rules.
The overall goal is to get more active developers working on Python to better scale horizontally: get more reviews to get better changes. The code quality is expected to be enhanced: more eyes on reviews should help to catch bugs earlier. Another less important goal is to speed up the Python development
IMHO the current blocker issue is that it is too hard to become a core developer. While becoming a core developer is not required to contribute, in my experience, core developers feel more involved and better recognized for their work. Core developer first means becoming responsible for a change: maintain the code/documentation and handle any potential regression. Long-term commitment and good quality reviews are also expected from core developers.
The blocker issue can be explained by the very high step that should be climbed at once to become a core developer. The contributor responsibilities changes at once from "no power" to "can do anything on any part of the project". A promotion is decided by a vote. If a voter doesn't know the contributor, it can be very stressful to take a decision. Building a trust relationship takes time and is not currently formalized by a process. This process is trying to address these issues.
I propose to formalize a process to promote a contributor from the early newcomer step to the final core developer step. The process is made of multiple steps to help the contributor to estimate their own progress. Mentoring becomes required by the process and is a major part of the whole process. While the process explains how to "climb" steps, going backward now becomes part of the process, it is not seen as a failure but as a normal and expected change under certain conditions. The final vote to promote a contributor as a core developer is expected to become more natural and simpler. The voters are expected to know better the future candidate.
CPython isn't the easiest place to start. The development process is rather an enterprise with long release cycles (release every 18 months) and rigid backward compatibility policy. CPython also supports many different platforms and CPU architectures.
Are you sure that CPython itself is the best project for you? Depending on your interests and skills, you may enjoy better to contribute to another Python project with lower backward compatibility constraints and a faster release cycle.
Being a CPython core developer involves responsibilities and usually requires a lot of time. Long-term commitment is also a major expectation, even if it's not a strict requirement. Becoming a core developer should not be seen as a recognition of a contributor work, but more as a constraint :-) Merging a change implies becoming responsible regressions, backward compatibility, security, etc. of this code.
It is perfectly fine to contribute to CPython without being a core developer. In most cases, not being able to merge your own work is not a blocker issue.
I propose the following steps to become a core developer:
- CPython User
- Contributor
- Issue Triager
- Trainee
- Core Developer
The first step is to start as a newcomer. Usually, newcomers are following the Python development without actively contributing.
I consider that newcomers become automatically contributors as soon as they post their first comment on the bug tracker, comment on a pull a request, or a pull request.
There is no manual validation, nor additional privilege. It's just a a thin distinction with a newcomer.
At this step, it becomes interesting to start reading the Python Developer Guide.
Once a contributor becomes active enough, a core developer can propose to give the bug triage permission to the contributor. The contributors may ask themselves to give this permission. The level of activity is not strictly defined since it depends on the kind of contributions and their quality. The core developer is responsible to estimate this.
There is no formal vote to give the bug triage permission. The core developer becomes responsible for the promotion. In practice, core developers are free to discuss together ;-)
Getting the bug triage permission gives more responsibilities to the contributor: the bug tracker should not be misused to not lost useful information. Taking a decision on an issue requires a certain level of knowledge of Python development.
I propose that the contributor gets a mentor for one month. The role of the mentor is to answer any question of the mentoree and help them to take decisions if needed. The mentor is not expected to watch closely what the contributor does on the bug tracker.
If the contributor misuses the bug tracker, the mentor (or another core developer) should help the contributor to adjust their behavior. If the contributor continue to abuse the bug tracker or misbehaves, the permission is removed and the contributor moves back to the previous step.
This step is the opportunity to know each other, begin to create a trust relationship.
Required skills for the contributor:
- Be active on the Python project: bug tracker, pull requests and/or mailing lists like python-ideas and python-dev. There is no minimum number of contributions: it's not a matter of quantity, but more a matter of quality and the kind of contributions.
- Be nice, polite and respectful.
- Know what they are talking about, and explain their reasoning well.
Skills which are nice to have, but not required:
- Know how to triage bugs. If the contributor doesn't know that, I consider that the role of the mentor is to explain this (using the devguide documentation).
- Read the Python Developer Guide.
This step is also the first milestone to measure the contributor involvement in the Python project, to later be able to estimate their "longterm commitment".
Python project is big and has a long history. Contributors need a referrer to guide them in this wild and dangerous (!) project, and in the development workflow.
The role of the mentor is to answer to contributors questions and review their work. The role is not to become the single gatekeeper merging all contributions of one specific contributor. It's perfectly fine if the mentor is unable to review a pull request, just help to find an appropriate reviewer in this case.
This step is a second opportunity to build a trust relationship, maybe already started at the previous step with the same mentor.
Required contributor skills:
- To gain triage permission.
- Be active on the Python project: I would like to say "still" be active on the Python project, which is another proof of the contributor commitment to the project
- Sign the CLA: at some point, getting changes merged into Git becomes mandatory, and so the CLA must be signed.
- Find a mentor.
Required mentor skills:
- Be a core contributor.
- Be available at least during one whole month.
- Follow the contributor: must get an update at least once a week, especially if the contributor doesn't show up.
Obviously, it's better if the contributor interest areas match with the mentor interest areas ;-)
(... Maybe later we may change the process to allow non-core developers to become mentors, but I'm not sure about this yet ...)
The main goal is to learn how to produce "commit-ready" changes. A perfect pull request is a change that can be merged without any addition modification.
The duration of one month is not strict. Obviously, if the mentor and trainee are both available, it can be as long as the trainee know how to produce "commit-ready" changes.
If the contributor becomes unavailable, it's fine, it's just a small step backward, until they become available again.
If the mentor becomes unavailable, maybe a different mentor can continue the process, otherwise the contributor goes back to the previous step.
Once the mentor or another core developer consider that the contributor is mature enough to be promoted, a vote is organized on the python-committers mailing list. Contributor skills and contributions should be listed. Usually, any negative vote becomes a veto which blocks the promotion.
While a few votes were negative in the past, I hope that this new formalized process would make the vote more natural and limit the "risk" of negative votes.
Requirements to become a core developer:
- Be nice and respectful: Know to be nice and respectful to the others, at least to the extent they're nice and respectful to yourself :-) We don't have a rock-star (or "bro", "wizard", "ninja", whatever the hyperbole of the day is) culture here.
- Humility: Show a bit of humility towards existing work and try to understand the decisions behind something before deciding to change it all. That said, given Python's current position on the technical evolution and adoption curve, we get less and fewer proposals for sweeping changes (perhaps not enough, actually, since even when rejected, they help challenge the status quo).
- Long-term commitment: When someone lands a big chunk of code, we need someone to maintain it. Usually, a contributor must have been active since at least 6 months before being able to become a core developer.
- Reviews: Review patches and pull requests. While we don't require and do not expect newcomers to review, we expect that core developers dedicate a part of their time on reviews. What it means is that the core developers care about the quality of the whole code base (and also the non-code parts), not only their own contributions to it.
- CPython workflow: Know the CPython workflow. Be aware of the pre-commit and post-commits CIs. How ideas are discussed. It's not only about writing and pushing patches. This part is also required from regular contributors, at least the experienced ones.
- CPython lifecycle: Know the project's lifecycle: Python has multiple maintained branches, some of them accept bugfixes, others only security fixes. Deciding if a fix can or cannot be backported is a complex question.
- Python C API specific issues: For C developer: know CPython specific issues like reference leaks.
- Good quality patches: Good quality patches: proposed changes are good (or almost good) at the first iteration. Or, if the code isn't good at the first iteration, the author is able to figure it out by themselves and doesn't rush merge it. Of course, nobody is perfect, which is why non-trivial code was written by core developers ideally goes through a review phase anyway. But a general sense of what is "in a good state for review/merging" vs. "just a draft I'm working on" is indeed preferrable.
- Maintain pushed code: Pushing code means becoming responsible for this code. For regressions, backward compatibility, security, etc.
- Backward compatibility: CPython has a long history and many unwritten strict rules. For example, backward compatibility is taken very seriously. We don't remove public functions in a minor release (3.x), but start with a deprecation period. It's not only about removing features, but also changing the behavior. Even if Python has a wide test suite with good code coverage, some functions are still untested, or not fully tested.
Becoming a core developer involves getting more responsibilities:
- The core developer becomes the "owner" of a merged change: maintain the code and handle any potential regression
- Review pull requests
- Triage bugs
A core developer has to know how to handle tracker issues but does not have to make a career of it. Triage is database management, which is a different skill from programming.
The newly promoted core developer will be followed by a mentor for one month until they become comfortable enough. Obviously, mentoring can be extended if needed.
If the result of the promotion vote is negative, it's ok, move back to the previous step, and retry later. Usually, the vote can be retried 6 months later, time spent to address lacking skills (maybe with a mentor).
Hum, it seems like the contributor has been promoted: congratulations and welcome aboard!