Repository navigation
fix: harden replication before v0.1.0 - #3
Merged
Merged
Conversation
This was referenced Oct 24, 2026
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.
Problem
Replicating releases newest-first left the destination's Latest pointing to an old version (v0.1.0 instead of v0.27.0 in the real fixture). Replication also modified global Git authentication and could partially push refs; HTTP requests had no explicit timeout.
Result
--dry-runand configurable--timeout(30 minutes per operation), Ctrl-C cancellation, atomic Git pushes and process-scoped credentials.Validation
All checks passed on
f6221023f3a90494ff4f8257f0f4a80ca43e8e4d:Regression tests use a fake HTTP server and local Git repositories for pagination, explicit Latest, dry-run without writes, label upserts, topic/tag rejection, bounded read-only retries, timeouts/cancellation, LFS detection, rejected atomic pushes, preservation of destination-only refs and download integrity failures without deleting existing assets.
Boundaries and follow-ups
No pruning or persistent state branch. Git pushes are atomic, but the entire Git/API replication is not a transaction. Asset replacement remains non-atomic after a validated download. Full release publishing will be exercised when a release is published.
Deferred enhancements: #4 (GHES), #5 (LFS transfer), #6 (recoverable asset replacement), #7 (assets without digests), #8 (component selection). Documented in README. Do not merge without owner approval.