Skip to content

Discover first-push repositories for scheduled maintenance - #121

Merged
carsonfarmer merged 1 commit into
mainfrom
cf/git-maintenance-discovery
Sep 28, 2026
Merged

carsonfarmer merged 1 commit into
mainfrom
cf/git-maintenance-discovery

Conversation

@carsonfarmer

@carsonfarmer carsonfarmer commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Scheduled maintenance previously visited only named configuration entries, leaving repositories created under a wildcard policy outside automatic cleanup. Discover existing WAL log prefixes in batches of 32 and maintain them through an operator-only endpoint. A disposable local cursor resumes the next batch; each run has an absolute deadline.

The service authenticates existing heads and recovers their Git format. It also collects abandoned first pushes without publishing a Git repository. Worker exits clear ingress pauses while preserving the discovery cursor.

Validation: make check, Terraform validation, native SHA-1/SHA-256 clients, MinIO discovery, Caddy admission tests and real Linux worker stop/kill/timeout/restart tests pass. After maintenance, a cold mirror of object-log matched all 6,555 reachable objects and passed full fsck.

Closes #108

Visit existing WAL log prefixes in bounded batches and authenticate their heads
through an operator-only maintenance route. Preserve a disposable discovery
cursor across worker runs and clear ingress pauses on every worker exit.

Co-authored-by: Codex <noreply@openai.com>
@carsonfarmer
carsonfarmer merged commit c90e6e2 into main Sep 28, 2026
4 checks passed
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.

Include API-created repositories in scheduled maintenance

1 participant