cloudberry
cloudberry copied to clipboard
CI: add NOTICE year and binaries check to Apache RAT check
-
Add check for current year in NOTICE file copyright statement
- Ensure copyright year is up-to-date (eg, 2024-$currentyear)
-
Add binary files detection in source tree
- This check is inspired by Apache MADlib's rat-check script.
- Check for common binary extensions (class, jar, tar, tgz, zip, exe, dll, so)
-
Improve workflow output and reporting
- Add structured console output for both checks
- Include check results in GitHub Actions job summary
Fixes #ISSUE_Number
What does this PR do?
Type of Change
- [ ] Bug fix (non-breaking change)
- [ ] New feature (non-breaking change)
- [ ] Breaking change (fix or feature with breaking changes)
- [ ] Documentation update
Breaking Changes
Test Plan
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Passed
make installcheck - [ ] Passed
make -C src/test installcheck-cbdb-parallel
Impact
Performance:
User-facing changes:
Dependencies:
Checklist
- [ ] Followed contribution guide
- [ ] Added/updated documentation
- [ ] Reviewed code for security implications
- [ ] Requested review from cloudberry committers
Additional Context
CI Skip Instructions
We have a few files in the .gz format:
$ find . -name "*.gz"
./gpMgmt/demo/gppkg/sample-sources.tar.gz
./contrib/formatter_fixedwidth/data/fixedwidth_small_correct.tbl.gz
./src/bin/gpfdist/regress/data/gpfdist2/gz_multi_chunk_2.tbl.gz
./src/bin/gpfdist/regress/data/gpfdist2/lineitem.tbl.gz
./src/bin/gpfdist/regress/data/gpfdist2/gz_multi_chunk.tbl.gz
./src/bin/gpfdist/regress/data/exttab1/nation.tbl.gz
Should we delete them for better ASF compliance?