joseluisll opened a new pull request, #8985: URL: https://github.com/apache/hadoop/pull/8985
HADOOP-20078: https://issues.apache.org/jira/browse/HADOOP-20078 Adoption proposal and evidence package: see HADOOP-20078 (description and comments). ## What this PR does Makes the binary distribution's license files verifiable at release time: the RC build can now generate LICENSE-binary and the `licenses-binary/` text directory from what the archive actually ships, and verify the result fail-closed, on the exact tarballs being voted on. Four commits, each independently reviewable: 1. **`dev-support/licenses/` tooling + the opt-in `licenses` Maven profile.** Archive enumeration (every jar, including WAR-nested), the archive ground-truth gate, the manifest generator, the non-jar asset coverage checks, the version-controlled license-text store and its resolvers, and `run-release-checks.sh` — the release-time driver. Synthetic test suites cover each tool's passing and failing paths (`test-*.py`, all green). The Maven profile collects the aggregate third-party dependency report (THIRD-PARTY.txt) and is inert unless invoked. 2. **`create-release --license-check`** (opt-in; without the flag the release build is unchanged): after tarball assembly and before signing, the driver runs in release mode on the staged tarballs. RED stops the build with a fix list naming the exact entries and the configuration file where each change belongs — the fix is always a small reviewed configuration change, never a hand-edited license file. GREEN writes the RC license artifact set (THIRD-PARTY.txt, generated LICENSE-binary, `licenses-binary/`, sha512, RM checklist) to `target/artifacts/license-checks/` for staging with the RC. 3. **`hadoop-vote.sh`**: a sixth verification — the driver in `--verify-only` mode against the downloaded RC (re-enumerates each binary tarball, re-runs the full gate against the tarball's own shipped LICENSE-binary and the RC's THIRD-PARTY.txt, verifies checksums and signatures). RCs predating the tooling report this check as skipped. 4. **`dev-support/licenses/RELEASE-CHECKS.md`**: the release-day view — the RM's one added flag, the two extra RC artifacts and the vote-email line, the voter-side command, and the corresponding HowToRelease wiki text for adoption. ## What this PR deliberately does NOT do - No per-push or per-PR license gates in CI: the checks run at release time (in the RC build) and on the voter's machine. - No GitHub Actions workflows: the create-release hook runs wherever the RM builds today (docker host), and the vote check runs wherever the voter votes. - No NOTICE-binary generation: NOTICE-binary stays hand-written; the step checks its coverage but never rewrites it. - No change to any developer workflow or to any existing build path when the flag and profile are not used. ## Why trust it / measured evidence - On this trunk snapshot, the profile patch applies cleanly, the reactor builds, the dependency collection succeeds, and strict license-name resolution passes against the shipped text store with zero unmapped names; the dependency set is identical to the one the prototype validated end to end on the 3.6.0 line (303 group:artifact pairs, 0 additions / 0 removals). - The driver was exercised end to end against the real 3.6.0 release tarballs in release mode and verify mode (prototype on the project fork; links in HADOOP-20078), including the vote-script portion (sha512 + GPG verification). - Deterministic output; synthetic test suites cover every fail-closed path (unnameable jars, empty enumerations, malformed rows, missing inventory — each exits non-zero with a named entry). ## Notes for reviewers - Check identifiers in gate output (e.g. `jar-naming`, `coverage`, `drift`, `notice`) are stable tokens echoed by the scripts; `run-release-checks.sh` maps them to human-readable terms and to the configuration file where a fix belongs. - The curated files in `dev-support/licenses/` (jar-name mappings, exceptions, aliases, `manifest-assets.txt`) are the checked-in configuration the gates validate against; adapting a release line is a measured, bounded pass over exactly those files. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
