yihua opened a new pull request, #18749:
URL: https://github.com/apache/hudi/pull/18749
### Describe the issue this Pull Request addresses
During a release, the existing `scripts/release/validate_staged_bundles.sh`
could only be run **after** the staging repo on Apache Nexus had been closed,
because it hit the public URL (`/content/repositories/...`) which is not
populated until close.
Closing the staging repo is irreversible for that repo — once closed, you
cannot re-deploy artifacts to it; any missing bundle forces a brand new RC on a
new staging repo. The release manager therefore needs a way to programmatically
confirm all expected bundle artifacts are present **before** closing.
### Summary and Changelog
- `scripts/release/validate_staged_bundles.sh`:
- Added optional `--auth` flag that targets the private staging URL
(`/service/local/repositories/<id>/content/...`) and authenticates against
Nexus using the `apache.releases.https` credentials from `~/.m2/settings.xml`
(extracted via `xmllint`, with a `sed` fallback).
- Reworked output: parallel HEAD checks now collect misses into a temp
file and print a `Total | Present | Missing` summary plus a sorted list of
missing URLs at the end, instead of exiting on the first failure. This makes a
single run actionable when multiple artifacts are missing.
- Refreshed the `bundles` list to match the current set of published
bundles (adds `hudi-azure-bundle`, `hudi-flink2.1-bundle`).
- Added `[--auth]` usage / examples.
- `release/release_guide.md`:
- Added a new step before closing the staging repo to run
`validate_staged_bundles.sh --auth <repo-id> <version>` for programmatic
completeness verification.
- Renumbered the post-close validation step accordingly and kept the
existing public-URL invocation as the post-close check.
### Impact
Release-process tooling only — no runtime or user-facing code changes. The
script remains backwards compatible: omitting `--auth` preserves the original
public-URL behavior.
### Risk Level
none
### Documentation Update
Release guide is updated in this PR. No website changes needed.
### Contributor's checklist
- [x] Read through [contributor's
guide](https://hudi.apache.org/contribute/how-to-contribute)
- [x] Enough context is provided in the sections above
- [x] Adequate tests were added if applicable
--
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]