Skip to content

feat: git backup tests and fixes#1219

Merged
perber merged 5 commits into
mainfrom
feat/git-backup-tests-and-fixes
Jun 28, 2026
Merged

feat: git backup tests and fixes#1219
perber merged 5 commits into
mainfrom
feat/git-backup-tests-and-fixes

Conversation

@perber

@perber perber commented Jun 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

perber added 5 commits June 27, 2026 18:59
…ests

- Pull from remote before each backup cycle to keep push fast-forward
- NeedsIntervention flag + /api/backup/alert endpoint for UI warning
- ForcePush config option
- Structured LocalizedError responses in backup routes
- GC subsystem (pack loose objects every ~500 objects)
- Network timeout (2 min) on pull and push
- Test suite: unit, init/runbackup, conflict, SSH auth scenarios
- Code review fixes: gc safety, error chain, nil guard, sticky flag
Check returned errors in backup tests so errcheck passes and setup failures are reported clearly.

Remove unused backup HTTP error helpers that were no longer referenced to satisfy unused checks without changing route behavior.
Check returned errors in backup tests so errcheck passes and setup failures are reported clearly.

Remove unused backup HTTP error helpers that were no longer referenced to satisfy unused checks without changing route behavior.
Handle filesystem and RunBackup errors in backup tests so errcheck passes in CI without changing production behavior.
@perber
perber merged commit 58f7944 into main Jun 28, 2026
9 checks passed
@perber
perber deleted the feat/git-backup-tests-and-fixes branch June 28, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant