This is a guide for the maintainers of the Bazel open source project.
If you are looking to contribute to Bazel, please read Contributing to Bazel instead.
The objectives of this page are to:
- Serve as the maintainers' source of truth for the project’s contribution process.
- Set expectations between the community contributors and the project maintainers.
Bazel's core group of contributors has dedicated subteams to manage aspects of the open source project. These are:
- Release Process: Manage Bazel's release process.
- Green Team: Grow a healthy ecosystem of rules and tools.
- Developer Experience Gardeners: Encourage external contributions, review issues and pull requests, and make our development workflow more open.
Releases
Continuous Integration
Read the Green team's guide to Bazel's CI infrastructure on the bazelbuild/continuous-integration repository.
Lifecycle of an Issue
- A user creates an issue by choosing one of the issue templates and it enters the pool of unreviewed open issues.
- A member on the Developer Experience (DevEx) subteam rotation reviews the
issue.
- If the issue is not a bug or a feature request, the DevEx member will usually close the issue and redirect the user to StackOverflow and bazel-discuss for higher visibility on the question.
- If the issue belongs in one of the rules repositories owned by the community, like rules_apple, the DevEx member will transfer this issue to the correct repository.
- If the issue is vague or has missing information, the DevEx member will assign the issue back to the user to request for more information before continuing. This usually occurs when the user does not choose the right issue template {: .external} or provides incomplete information.
- After reviewing the issue, the DevEx member decides if the issue requires immediate attention. If it does, they will assign the P0 priority label and an owner from the list of team leads.
- The DevEx member assigns the
untriaged
label and exactly one team label for routing. - The DevEx member also assigns exactly one
type:
label, such astype: bug
ortype: feature request
, according to the type of the issue. - For platform-specific issues, the DevEx member assigns one
platform:
label, such asplatform:apple
for Mac-specific issues. - If the issue is low priority and can be worked on by a new community
contributor, the DevEx member assigns the
good first issue
label. At this stage, the issue enters the pool of untriaged open issues.
Each Bazel subteam will triage all issues under labels they own, preferably on a weekly basis. The subteam will review and evaluate the issue and provide a resolution, if possible. If you are an owner of a team label, see this section for more information.
When an issue is resolved, it can be closed.
Lifecycle of a Pull Request
- A user creates a pull request.
- If you a member of a Bazel team and sending a PR against your own area, you are responsible for assigning your team label and finding the best reviewer.
- Otherwise, during daily triage, a DevEx member assigns one
team label and the team's technical lead (TL) for routing.
- The TL may optionally assign someone else to review the PR.
- The assigned reviewer reviews the PR and works with the author until it is approved or dropped.
- If approved, the reviewer imports the PR's commit(s) into Google's internal version control system for further tests. As Bazel is the same build system used internally at Google, we need to test all PR commits against the internal test suite. This is the reason why we do not merge PRs directly.
- If the imported commit passes all internal tests, the commit will be squashed and exported back out to GitHub.
- When the commit merges into master, GitHub automatically closes the PR.
My team owns a label. What should I do?
Subteams need to triage all issues in the labels they own, preferably on a weekly basis.
Issues
- Filter the list of issues by your team label and the
untriaged
label. - Review the issue.
- Identify a priority level and assign the label.
- The issue may have already been prioritized by the DevEx subteam if it's a P0. Re-prioritize if needed.
- Each issue needs to have exactly one priority label. If an issue is either P0 or P1 we assume that is actively worked on.
- Remove the
untriaged
label.
Note that you need to be in the bazelbuild organization to be able to add or remove labels.
Pull Requests
- Filter the list of pull requests by your team label.
- Review open pull requests.
- Optional: If you are assigned for the review but is not the right fit for it, re-assign the appropriate reviewer to perform a code review.
- Work with the pull request creator to complete a code review.
- Approve the PR.
- Ensure that all tests pass.
- Import the patch to the internal version control system and run the internal presubmits.
- Submit the internal patch. If the patch submits and exports successfully, the PR will be closed automatically by GitHub.
Priority
The following definitions for priority will be used by the maintainers to triage issues.
- P0 - Major broken functionality that causes a Bazel release (minus release candidates) to be unusable, or a downed service that severely impacts development of the Bazel project. This includes regressions introduced in a new release that blocks a significant number of users, or an incompatible breaking change that was not compliant to the Breaking Change policy. No practical workaround exists.
- P1 - Critical defect or feature which should be addressed in the next release, or a serious issue that impacts many users (including the development of the Bazel project), but a practical workaround exists. Typically does not require immediate action. In high demand and planned in the current quarter's roadmap.
- P2 - Defect or feature that should be addressed but we don't currently work on. Moderate live issue in a released Bazel version that is inconvenient for a user that needs to be addressed in an future release and/or an easy workaround exists.
- P3 - Desirable minor bug fix or enhancement with small impact. Not prioritized into Bazel roadmaps or any imminent release, however community contributions are encouraged.
- P4 - Low priority defect or feature request that is unlikely to get closed. Can also be kept open for a potential re-prioritization if more users are impacted.
- ice-box
- Issues that we currently don't have time to deal with nor the time to accept contributions. We will close these issues to indicate that nobody is working on them, but will continue to monitor their validity over time and revive them if enough people are impacted and if we happen to have resources to deal with them. As always, feel free to comment or add reactions to these issues even when closed.
Team labels
team-Android
: Issues for Android team- Contact: ahumesky
team-Bazel
: General Bazel product/strategy issues- Contact: meisterT
team-CLI
: Console UI- Contact: meisterT
team-Configurability
: Issues for Configurability team. Includes: Core build configuration and transition system. Does not include: Changes to new or existing flags- Contact: gregestren
team-Core
: Skyframe, bazel query, BEP, options parsing, bazelrc- Contact: haxorz
team-Documentation
: Issues for Documentation teamteam-ExternalDeps
: External dependency handling, Bzlmod, remote repositories, WORKSPACE file- Contact: meteorcloudy
team-Loading-API
: BUILD file and macro processing: labels, package(), visibility, glob- Contact: brandjon
team-Local-Exec
: Issues for Execution (Local) team- Contact: meisterT
team-OSS
: Issues for Bazel OSS team: installation, release process, Bazel packaging, website, docs infrastructure- Contact: meteorcloudy
team-Performance
: Issues for Bazel Performance team- Contact: meisterT
team-Remote-Exec
: Issues for Execution (Remote) team- Contact: coeuvre
team-Rules-API
: API for writing rules/aspects: providers, runfiles, actions, artifacts- Contact: comius
team-Rules-CPP
/team-Rules-ObjC
: Issues for C++/Objective-C rules, including native Apple rule logic- Contact: pzembrod
team-Rules-Java
: Issues for Java rules- Contact: hvadehra
team-Rules-Python
: Issues for the native Python rules- Contact: rickeylev
team-Rules-Server
: Issues for server-side rules included with Bazel- Contact: comius
team-Starlark-Integration
: Non-API Bazel + Starlark integration. Includes: how Bazel triggers the Starlark interpreter, Stardoc, builtins injection, character encoding. Does not include: BUILD or .bzl language issues.- Contact: brandjon
team-Starlark-Interpreter
: Issues for the Starlark interpreter (anything in java.net.starlark). BUILD and .bzl API issues (which represent Bazel's integration with Starlark) go inteam-Build-Language
.- Contact: brandjon
For new issues, we deprecated the category: *
labels in favor of the team
labels.
See the full list of labels here.