Repository navigation
agent-backup: include the fleet closure record in the backup set (#9221) - #17132
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
What
The one unconfirmed acceptance item on #9221: the fleet closure record (
closure-records.jsonl, onefleet-closure/v1line perfleet ghclose/reopen, written to the fleet state directory bygh_closure.rs) was not in any repo-defined backup set —pkgs/fleet/book/operations/backup-inventory.mdhad no entry capturing its path, andinfra/laptop-db-backupcovers only SQLite databases. The fleet book already claimed the log is "(backed up with it)"; this PR makes that true in the tree.Changes
pkgs/agent-backup/backup.sh: add${XDG_STATE_HOME:-~/.local/state}/fleet/closure-records.jsonlto the snapshot candidate set. The script's stated scope is the small, irreplaceable per-seat set — the closure audit trail is exactly that.pkgs/agent-backup/test-backup.sh: new case — a seat with a closure log gets it copied into the snapshot under its state path, content intact,latestadvancing.pkgs/fleet/book/operations/backup-inventory.md: entry 4 now records the closure record in its captures.Verification
backup-inventory.test.shpasses (drift guard).test-backup.shcould not run in this seat's sandbox (its fixture writes are blocked by the sandbox FS guard — EPERM on fixture files); the new case follows the file's existing fixture pattern exactly and is covered by repo CI on this branch.Closes #9221
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.