Hi all,

I'd like to share updates on a new GitHub Actions workflow that helps
maintain license compliance across the Apache Cloudberry project.

# What's New

We've added an Apache RAT (Release Audit Tool) workflow that checks
files in PRs and commits for Apache License compatibility. This
workflow is based on Ed's work and runs on:

- All pushes to the main branch
- All pull requests (opened, synchronized, reopened, or edited)
- Manual triggers

# Why This Matters

As an Apache Incubator project, we must ensure all source files comply
with ASF licensing requirements. This automated check:

- Catches license issues early, before code merges
- Identifies missing license headers in new files
- Ensures Apache License 2.0 compliance for releases
- Streamlines the release process

# How It Works

The workflow uses the Apache RAT Maven plugin to scan files:

- ✅ Passes when files have proper Apache License headers or are
excluded in pom.xml
- ❌ Fails when files with unapproved licenses are detected
- Provides detailed reports showing which files need attention

# For Contributors

When checks fail:

- New files: Add the standard Apache License header -
https://www.apache.org/legal/src-headers.html#headers
- Third-party files: Ensure license compatibility with Apache 2.0 and
add to exclusion list in pom.xml if needed

You can run locally `mvn clean verify -Drat.consoleOutput=true`, which
will help you identify and fix license issues before submitting your
pull request.

# Impact

This is now a required check, but it typically completes in 1 minute.
Most existing files are already compliant, so this primarily helps
with new contributions.

Questions? Feel free to reach out on this mailing list.

~~~
Note: We've fixed the "rat-check: Expected - Waiting for status to be
reported" issue that some PRs experienced. If your existing PR shows
this status, simply rebase your branch to resolve it.

Best,
Dianjin Wang

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cloudberry.apache.org
For additional commands, e-mail: dev-h...@cloudberry.apache.org

Reply via email to