Repository navigation
[02/03] service-backup: publish immutable BackupSets manifest-last and retain complete sets - #63
Open
chrischeng-c4 wants to merge 1 commit into
Open
chrischeng-c4 wants to merge 1 commit into
chrischeng-c4 wants to merge 1 commit into
Conversation
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.
Closes #17
Summary of Changes
SetKeyLayoutandSetKeyErrorincrates/service-backup/src/domain/set_key_layout.rsproviding immutable, collision-safe key derivation (artifact_key,manifest_key,latest_key,set_prefix) andparse_set_idwith strict validation of prefix, set_id, and artifact name.SetInventory,SetState,RetentionPlan, andplan_retentionincrates/service-backup/src/domain/retention_plan.rsproviding deterministic retention planning, keeping the newestkeep_latestcomplete sets (at least 1), marking older complete sets for deletion, and classifying aged partial sets as orphans based onorphan_grace.crates/service-backup/src/domain.rsand re-exported public types fromcrates/service-backup/src/lib.rs.crates/service-backup/tests/it/set_layout.rs.as_byteslint warning incrates/service-backup/tests/it/projected_admin_transport.rs.Local Validation
cargo test -p service-backup --test it set_layout(10 passed, 0 failed)cargo fmt -p service-backup -- --check(clean)cargo clippy --no-deps -p service-backup --all-features --all-targets -- -D warnings(clean)Cloud CI Validation Needed (NOT RUN locally per policy)