Summary

Re-organise the compiler team:

Motivation

Compiler team contributors were introduced in 2019 with RFC 2689, the last significant change to the compiler team’s structure. A lot has changed in the project and compiler team since that time: we receive approximately twice as many pull requests each week, there are more responsibilities that team members choose to take on, and many members of the team are now employed to work on the project.

Given these increased demands on the team, it is important that the compiler team’s structure can grow while maintaining high-quality output and remaining sustainable for team members. Ensuring that team members aren’t assigned an untenable number of reviews each week requires that the team onboard new contributors and team members at a rate which keeps pace with project growth.

Furthermore, the day-to-day operations of the team are composed of more varied tasks than was the case when RFC 2689 was drafted, now including prioritisation and issue triage, performance triage, meeting agenda preparation, and review of major change proposals. Team members who choose to contribute to these efforts should have those additional activities recognised.

As the team gets larger, our processes need to remain efficient. Final comment periods (FCPs) have traditionally required sign-off from all team members, which can become onerous with more team members. As the number of compiler team members has grown from ~10 to ~15 since RFC 2689, the team has already noticed scaling issues with our FCP process.

Processes which scale poorly with team size have acted as a unconscious disincentive to promote compiler team contributors to compiler team members. Similarly, the team has found that nominations being the primary mechanism for promotion to compiler team contributor or member tends to result in contributors falling through the cracks and being considered team members in the minds of the team but not actually having been nominated for promotion.

Since RFC 2689, the compiler team contributor role’s purpose has become confused. It is often beneficial to be able to grant the infrastructure and merge permissions to trusted contributors quickly so they can work more efficiently. However, it is also desirable for the compiler team contributor role to act as recognition for those contributors who have shown staying power and that the team would like to recognise. These goals are in tension, adding new contributors early and regularly improves the efficiency of the compiler team while watering down the recognition and sense of achievement that the role would ideally confer.

In addition, as compiler team contributors and members increasingly leverage their contributions to gain employment/contracts to contribute to the project full-time (or otherwise), the naming of the compiler team contributor role can be confusing. An employer unfamiliar with the project may not realise that a compiler team contributor is a role within the project which recognises regular contribution and trust rather than just having made a handful of contributions and thus being a contributor.

Definitions

There are various permissions/privileges/responsibilities which will be referenced in later sections of this RFC, defined here:

Guide-level explanation

Contributors start without any particular privileges, permissions or responsibilities and can contribute whatever they’d like. Contributors can progress to Team Members and then Maintainers.

Team Members

Being able to grant permissions to trusted contributors quickly is beneficial to enable them to contribute to the project more efficiently and review and approve work of their collaborators.

Any contributor can request to become a team members by contacting the compiler team’s leads, or current maintainers and team members can nominate a contributor. Team leads will check for a reasonable contribution history, and will check if the current team have any serious concerns related to contributor conduct (waiting approximately one week).

When evaluating a candidate’s contribution history, length of time and consistency of contributions and interactions with other contributors and maintainers will be taken into account. It is important to note that many kinds of contributions will be considered such as code contributions, helping with issue triage and bisection, running meetings and creating minutes, documentation contributions for rustc internals or the Compiler Development Guide, etc.

Team member is a mix of RFC 2689’s “working group participant” and “compiler team contributor” roles. It is explicitly intended to be granted more liberally to contributors who have demonstrated competence and trustworthiness, for whom they would be able to work more effectively with these permissions and can be trusted to use them responsibly. Team members do not need to have experience with most of the compiler, and can be specialised to specific subsystems of the compiler.

Team members are granted r+, try, triagebot, rustc-perf, and crater permissions; organization membership; and dev desktop access. Team members can second major change proposals. Team members are considered members of the Rust project as a whole, and are automatically eligible for any benefits that incurs (e.g. invitations to meetups of project members). As representatives of the Rust project, team members are expected to obey not just the letter of the Code of Conduct but its spirit.

Team members can choose to take on additional maintenance activities, such as those listed in the maintenance activities section. Participating in the team’s review rotation is encouraged.

If a team member becomes inactive (the contributor’s prior contributions and other interactions with the project cease) for six months or more, the team member will be moved into alumni status. At any point in the future, they can ask to be re-instated at the team member level if they desire.

Maintainers

Team members are eligible to become maintainers after they have continued to contribute actively for a year. Team members can contact team leads or will be contacted by team leads to enquire about promotion to maintainership. Team members who are eligible for maintainership do not have to become maintainers.

Unlike team members, maintainers are a subset of the team expected to consider themselves as exactly that, maintainers, of the compiler - put otherwise, to be invested in the quality of the compiler codebase and overall health of the compiler team, independent of their own projects. Maintainership is primarily intended to recognise and encourage participation in activities which are vital to the success of the compiler team and broader project.

Maintainers are expected to participate in the ongoing maintenance tasks that the compiler team is responsible for (with all of the expected caveats for vacation time, mental health breaks, etc) - listed as maintenance activities below. However, not all maintainers need to participate in these responsibilities to an equal degree. Maintainers should participate in these tasks to the degree that they are able

Maintainers aren’t expected to make more contributions than team members or be more active, just participate in maintenance activities in addition to regular contributions.

Like team members, after inactivity for six months or more, a maintainer will be moved to alumni status. Maintainers who are no longer able to or are not helping to maintain the compiler but otherwise wish to continue contributing to the compiler can also be moved to alumni status and retain their team member status. Alumni can ask to be reinstated in the future.

Maintenance activities

There are various maintenance activities that a maintainer could take on to help the team.

Maintainers are expected to participate in maintenance activities - if they are unable to participate in at least one activity then it makes sense to step back from maintainership and just focus on their contribution. It isn’t possible to put a number on how many activities a maintainer should be involved in (and this isn’t an exhaustive list of activities), it depends on the contributor. Maintainers ideally wouldn’t be just-doing-the-minimum, but instead acting as a maintainer because they are genuinely invested in the health of the team and project. For most maintainers, it is anticipated that this will be a handful of activities that interest them, but that the specifics will vary with time.

Maintainers can get involved in any of these by contacting the team leads, by asking maintainers currently involved in these activities, or by asking in any venue where these activities are conducted (e.g. a Zulip stream). Team members can participate in activities too - these aren’t exclusively the purview of maintainers.

This list isn’t exhaustive, and this RFC shouldn’t be considered the canonical list of these activities. Similarly, this RFC isn’t intended to define how these activities are conducted (in meetings or asynchronously, etc), that should be decided and documented by those involved in each.

However activity participation is tracked, it should be easy for the team leads to have visibility into the participation in each to ensure that it is sustainable.

Team Leads

Team leads are defined in RFC 3262 and is unchanged by this RFC. It is not required but anticipated that those elected for team leads would be or have been maintainers.

Drawbacks

Rationale and alternatives

Prior art

Unresolved questions

None!

Future possibilities