GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 24, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
felix
feat(github-backup): five-copy freshness probe, schedule, and rehost …
7ae7ddb
…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

coderabbitai Bot commented Nov 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 24, 2026
Fleet unification slice 6: backups — Turso into D1, repos to Cloudflare plus mirror plus R2 #8584
Closed
Add five-copy freshness readout for #8584 backups #14205
Merged
Base automatically changed from queue/22616-8584-freshness-readout to main November 24, 2026 10:18
@dezren39
dezren39 merged commit e16c245 into main Nov 24, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the felix/8584-freshness-probe branch November 24, 2026 10:18
@developing-today-fleet developing-today-fleet Bot added the audit:completed-later Gap completed by later merged PR label Nov 27, 2026
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:completed-later Gap completed by later merged PR

Projects

None yet

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.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.