Skip to content

Comments

feat: schedule periodic full repacks via job scheduler#134

Merged
alecthomas merged 1 commit intomainfrom
aat/periodic-full-repack
Feb 20, 2026
Merged

feat: schedule periodic full repacks via job scheduler#134
alecthomas merged 1 commit intomainfrom
aat/periodic-full-repack

Conversation

@alecthomas
Copy link
Collaborator

Summary

  • Adds periodic full repack (git repack -adb --write-midx --write-bitmap-index) for mirror repos via the existing job scheduler
  • Configurable via repack-interval on the git strategy (default 0 = disabled)
  • Scheduled for both newly cloned and existing-on-startup repos, serialized per-repo with fetch/clone/snapshot jobs

Closes #126

Test plan

  • Unit test for Repository.Repack() verifying pack file and multi-pack-index creation
  • Strategy tests for enabled/disabled config and scheduling with existing repos on disk
  • All existing tests pass
  • Linter clean

🤖 Generated with Claude Code

Closes #126

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alecthomas alecthomas requested a review from a team as a code owner February 20, 2026 04:20
@alecthomas alecthomas requested review from js-murph and removed request for a team February 20, 2026 04:20
@alecthomas alecthomas merged commit b1e4637 into main Feb 20, 2026
5 checks passed
@alecthomas alecthomas deleted the aat/periodic-full-repack branch February 20, 2026 04:24
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.

Periodic full repack via job scheduler

1 participant