Welcome! We're excited that you're interested in contributing to Apache Auron. This document provides guidelines and information to help you contribute effectively to the project.
- Ways to Contribute
- Getting Started
- Development Environment Setup
- Building the Project
- Before Submitting a Pull Request
- Pull Request Guidelines
- Code Style and Formatting
- Testing
- Documentation
- Communication
- License
Contributions to Auron are not limited to code! Here are various ways you can help:
- Report bugs: File detailed bug reports with reproducible examples
- Suggest features: Propose new features or improvements via GitHub issues
- Write code: Fix bugs, implement features, or improve performance
- Review pull requests: Help review and test PRs from other contributors
- Improve documentation: Enhance README, API docs, or add examples
- Answer questions: Help other users on the mailing list or GitHub discussions
- Benchmark and test: Run benchmarks and report performance results
Before contributing, ensure you have:
- Rust (nightly): Install via rustup
- JDK: Version 8, 11, or 17 (set
JAVA_HOMEappropriately) - Maven: Version 3.9.11 or higher
- Git: For version control
- Fork the Apache Auron repository on GitHub
- Clone your fork locally:
git clone git@github.com:<your-username>/auron.git cd auron
- Add the upstream repository:
git remote add upstream git@github.com:apache/auron.git
Keep your fork up to date with upstream:
git fetch upstream
git checkout master
git merge upstream/masterAuron uses Rust nightly. The project includes a rust-toolchain.toml file that specifies the required version:
rustup show # Verify the correct toolchain is installedFor the best development experience:
- IntelliJ IDEA
- RustRover or VS Code with rust-analyzer
Auron provides a unified build script auron-build.sh that supports both local and Docker-based builds.
# Local build with Spark 3.5 and Scala 2.12
./auron-build.sh --pre --sparkver 3.5 --scalaver 2.12
# Skip native build (useful for Java/Scala-only changes)
./auron-build.sh --pre --sparkver 3.5 --scalaver 2.12 -DskipBuildNative# Build inside Docker container
./auron-build.sh --docker true --image centos7 --release \
--sparkver 3.5 --scalaver 2.12Run ./auron-build.sh --help to see all available options, including:
--preor--release: Build profile--sparkver: Spark version (3.0, 3.1, 3.2, 3.3, 3.4, 3.5)--scalaver: Scala version (2.12, 2.13)--celeborn,--uniffle,--paimon,--iceberg: Optional integrations--skiptests: Skip unit tests (default: true)--sparktests: Run Spark integration tests
By default, the build script skips unit tests (--skiptests true). To run them, you must explicitly set --skiptests false, as shown in the examples below:
# Run all tests
./auron-build.sh --pre --sparkver 3.5 --scalaver 2.12 --skiptests false
# Run Spark unit tests
./auron-build.sh --pre --sparkver 3.5 --scalaver 2.12 --sparktests trueBefore creating a PR, please:
-
Search for existing issues: Check if someone else is already working on this
-
Create a GitHub issue: All contributions (including major changes) require a GitHub issue to be created first. This allows the community to discuss the approach and provide feedback before you invest time in implementation.
-
For major changes, also create an AIP: If your change is substantial (new features, significant architectural changes, or changes affecting the public API), you must, in addition to the GitHub issue from step 2:
- Use the GitHub issue to describe the problem and proposed solution
- Create an Auron Improvement Plan (AIP) document and link it from that GitHub issue
- Discuss the AIP and high-level approach with the community in the GitHub issue
- Wait for community feedback and consensus before starting implementation
Example AIP: AIP-3: Introduce auron-it for Enhanced CI Integration Testing
-
Keep changes focused: Split large changes into multiple smaller PRs when possible
-
Write tests: Add unit tests for bug fixes and new features
-
Update documentation: Update relevant docs if your change affects user-facing behavior
-
Format your code: Run the code formatter (see Code Style)
Use a clear, descriptive title that follows this format:
[AURON #<issue-number>] Brief description of the change
Examples:
[AURON #1805] Add contributing guidelines[AURON #123] Fix memory leak in shuffle manager[AURON #456] Add support for new aggregate function
Note: Use the hash format [AURON #<issue-number>] consistently throughout your PR title and description.
We strongly prefer smaller, focused PRs over large ones because:
- Smaller PRs are reviewed more quickly
- Discussions remain focused and actionable
- Feedback is easier to incorporate early in the process
If you're working on a large feature, consider:
- Breaking it into multiple PRs
- Creating a draft PR to show the overall design
- Discussing the approach in a GitHub issue first
- PRs are merged using squash and merge
- At least one committer approval is required
- For significant changes, two committer approvals may be required
- Committers will ensure at least 24 hours pass for major changes to allow community review
Auron enforces consistent code style across Java, Scala, and Rust code.
Use the dev/reformat script to format all code:
# Format all code
./dev/reformat
# Check formatting without making changes
./dev/reformat --checkAll source files must include the Apache License 2.0 header. The build will fail if headers are missing or incorrect.
- Java/Scala tests: Use ScalaTest framework
- Rust tests: Use standard Rust test framework
# Run Scala tests
./build/mvn test -Pspark-3.5 -Pscala-2.12
# Run Rust tests
cargo testWhen adding new features or fixing bugs:
- Add unit tests to cover the new code paths
- If the feature is not covered by existing Spark tests, add integration tests
- Ensure all tests pass before submitting your PR
Update documentation when your changes:
- Add new features or APIs
- Change existing behavior
- Add new configuration options
- Affect how users build or deploy Auron
- README.md: High-level project overview and quick start
- Code comments: Inline documentation for complex logic
- Configuration: Update if adding new config properties
The primary communication channel for the Apache Auron community:
- dev@auron.apache.org: Development discussions
- Subscribe: dev-subscribe@auron.apache.org
- Unsubscribe: dev-unsubscribe@auron.apache.org
- Search existing issues before creating a new one
- Provide clear reproduction steps for bugs
- Include environment details (Spark version, Scala version, OS, etc.)
- Use issue templates when available
Use GitHub Discussions for:
- Questions about using Auron
- Feature proposals and design discussions
- General community discussions
By contributing to Apache Auron, you agree that your contributions will be licensed under the Apache License 2.0. Thank you for contributing to Apache Auron! Your efforts help make this project better for everyone. 🚀