GeezerVison is showing github.com — Add scheduled five-copy freshness probe + Cloudflare rehost evaluation for #8584 by dezren39 · Pull Request #14287 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Task 22616, second half of the readout leg + the rehost leg's evaluation. Stacked on PR #14205 (the readout judge) — merge #14205 first, then retarget this PR to main.
What
Freshness probe (the readout's missing producer + schedule + auto-filing):
infra/github-backup/bin/freshness_probe.py — verifies all five copies and rewrites the status doc freshness_readout.py judges. turso_export/d1_copy verify against the D1 _fleet_queue_backup_meta record (the export succeeds only after D1 read-back counts match, so one record proves both); plain_mirror and r2_bundles verify by HEAD equality against the local backup mirrors; cloudflare_rehost is unverified by construction until a surface exists. A failed check never refreshes a stamp — the previous last_success carries forward and ages out. With --file-issues it keeps exactly one alert issue in this repo in sync: opened/updated while any copy is behind its 26h target, commented + closed on recovery.
systemd/run-freshness.sh + github-backup-freshness.service/.timer (daily 04:10 + 30m delay, after the copy jobs) + install-units.sh wiring. The wrapper fetches credentials by vault name at runtime only. Schedule-registry row added in this same PR.
- Hermetic tests: 14 in
tests/test_freshness_probe.py (oracle: the written doc round-trips through the real freshness_readout.judge; alert create/update/close exactly once per state change), plus systemd/test-freshness-arguments.sh.
Cloudflare rehost evaluation — infra/github-backup/docs/CLOUDFLARE-REHOST-EVALUATION.md: Cloudflare has no native git hosting; the four candidate surfaces are evaluated (R2 bundles as the copy — rejected, collapses two copies into one failure domain; Workers+R2 smart-HTTP server; Tunnel-fronted git server on the backup host — recommended; Pages — rejected). The provisioning step itself (Tunnel + DNS + Access policy, or Worker + bindings) is a production Cloudflare change and is recorded on #8584 as the exact step awaiting Drew's surface decision. No production state was changed by this PR.
Verification (remote, run 45370296439)
test_freshness_probe.py rc=0 (14/14), test_freshness_readout.py rc=0 (8/8).
- Full
infra/github-backup/tests/ pass: 20 files rc=0; the 3 deploy test files fail with FileNotFoundError: 'node' on the executor image — pre-existing, unrelated, filed as github-backup deploy tests hard-fail without node instead of skipping #14267.
- Both systemd argument-contract scripts pass.
- Live probe run from the sandbox seat against real state (2026-11-24T09:4xZ): turso_export/d1_copy PASS at 18.3h lag (D1 meta
exported_at 2026-11-23T15:27:30Z — the 02:40 CST scheduled export fire produced no new export); mirror/R2 checkers reported loudly unverified from the sandbox (no local mirrors/rclone there — the laptop is their venue).
Not in this PR
- Installing the freshness timer on the laptop (operator step; install-units.sh now includes it alongside the still-uninstalled R2/mirror timers).
- The rehost build itself (blocked on the surface decision above).
Refs #8584.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…evaluation (#8584)
Producer half of the #8584 freshness leg, stacked on the readout
(PR #14205): freshness_probe.py verifies all five copies (D1 export
meta for turso_export/d1_copy, HEAD equality for plain_mirror and
r2_bundles, cloudflare_rehost unverified by construction), rewrites
the status doc the readout judges, and keeps one alert issue in sync
with the verdict. Daily systemd timer + wrapper that fetches
credentials by vault name, schedule-registry row, runbook section,
and the Cloudflare rehost evaluation naming the decision Drew owns.
coderabbitai
Bot
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 17 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
3b64f721-9345-4096-b33e-376ba4dcca15
Commits
-
Reviewing files that changed from the base of the PR and between 0ed4d5c and 7ae7ddb.
Files selected for processing: 10
-
doc/fleet-schedule-registry.md
infra/github-backup/bin/freshness_probe.py
infra/github-backup/docs/CLOUDFLARE-REHOST-EVALUATION.md
infra/github-backup/docs/RUNBOOK.md
infra/github-backup/systemd/github-backup-freshness.service
infra/github-backup/systemd/github-backup-freshness.timer
infra/github-backup/systemd/install-units.sh
infra/github-backup/systemd/run-freshness.sh
infra/github-backup/systemd/test-freshness-arguments.sh
infra/github-backup/tests/test_freshness_probe.py
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|