Repository navigation
reposync: Continue syncing remaining repositories after a failure - #3100
LUX-ETVERITAS wants to merge 1 commit into
Conversation
Handle sync errors at the repository boundary so a missing package or failed OpenPGP check does not prevent other repositories from syncing. Report the repository and underlying error and return failure after the last repository. Skip pruning after an incomplete download. Count cleanup errors toward the final status and still check package signatures. Treat a missing destination as already clean when no RPMs match the selected architectures. Fixes rpm-software-management#2775 Assisted-by: Codex
PR Summary by Qodoreposync: continue syncing remaining repositories after a failure
AI Description
Merge Risk
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can import rules and skills only from the repositories your team follows Powered by Qodo |
A missing RPM or a failed OpenPGP check could stop a mirror job before it reached the remaining repositories. Report each repository's sync error, continue the job, and return exit code 1 after the last repository if any sync failed.
An incomplete package download skips pruning for that repository. Cleanup failures now also contribute to the final exit status, and package signature checks still run after a cleanup error.
Verification
Built the reposync plugin and ran three new Behave scenarios against both the original and patched plugin. All three failed on the original and passed with the patch (29 steps). They cover package download failures across multiple repositories alongside a healthy repository, OpenPGP failures in two repositories, and a cleanup error that previously returned success.
Fixes #2775