fix(packaging): regenerate RPM repodata from full local and S3 package set#6761
Draft
arvindcheru wants to merge 2 commits into
Draft
fix(packaging): regenerate RPM repodata from full local and S3 package set#6761arvindcheru wants to merge 2 commits into
arvindcheru wants to merge 2 commits into
Conversation
✅ All Checks Passed — Ready for Review
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🎉 All checks passed! This PR is ready for review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
This pull request introduces a comprehensive refactor and reliability improvement for RPM repository metadata regeneration in the
build_tools/packaging/linux/upload_package_repo.pytool. The changes ensure that repodata is always generated from the complete set of RPMs (both local and on S3), eliminating issues caused by deduplication and partial uploads. The update also adds robust validation and new unit tests to prevent incomplete metadata from being uploaded.Technical Details
primary.xml.gzindexes every.rpmfile in the repository, catching and preventing stale or incomplete repodata uploads. (upload_package_repo.py)upload_package_repo.py)upload_package_repo_test.py)These changes together ensure that the RPM repository is always consistent and correct, even when some packages are skipped for upload due to deduplication, and provide automated tests to catch regressions.
ISSUE ID: 6540
Test Plan
python3.12 build_tools/packaging/linux/tests/upload_package_repo_test.py -v
Build RPM packages (best — hits upload + repodata directly), or
Re-run all jobs / Re-run failed jobs (same run_id, attempt 2+)
Test Result
Submission Checklist