Contributing

From apache/beam · View interactive version

Contributing is an AI agent skill from the GitHub repository apache/beam. Guides the contribution workflow for Apache Beam, including creating PRs, issue management, code review process, release cycles, and rigorous evaluation rules for high-risk core component changes. Use when contributing code, creating PRs, or modifying core Beam components.

How to use this skill

Skill file

Contributing to Apache Beam

Getting Started

Prerequisites

Environment Setup Options

Local Setup (automated)
./local-env-setup.sh
Docker-based Setup
./start-build-env.sh

Contribution Workflow

1. Find or Create an Issue

2. Claim the Issue

.take-issue    # Assigns issue to you
.free-issue    # Unassigns issue from you
.close-issue   # Closes the issue

3. For Large Changes

4. Make Your Changes

Working on Core Components (High Risk — Heightened Scrutiny)

AGENT DIRECTIVE: modification to Core Components carries an inherently elevated risk of silent regression across distributed runners. Refer to .github/autolabeler.yml under the "core" label for the authoritative list of core component paths (including sdks/java/core, runners/core-*, model, sdks/python/apache_beam/transforms|coders, sdks/go/pkg/beam/core, FileIO, and GCS). If you are an AI agent modifying files matched by these paths, evaluate your changes with scrutiny.

5. Create Pull Request

6. Code Review

Code Review Best Practices

For Authors

For Reviewers

Testing Workflows

Pre-commit Tests

Run automatically on PRs. To run locally:

./gradlew javaPreCommit      # Java
./gradlew :sdks:python:test  # Python
./gradlew :sdks:go:test      # Go

Post-commit Tests

Run after merge. Trigger phrases in PR comments start specific test suites.

See trigger phrase catalog.

Formatting

Java

./gradlew spotlessApply

Python

# Uses yapf, isort, pylint
pre-commit run --all-files

CHANGES.md

./gradlew formatChanges
./gradlew validateChanges

Release Cycle

Stale PRs

Key Resources

Communication

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.