Skip to content

Publish the CDN snapshot daily; drop the cdn-snapshot workflow - #29

Merged
Psycomy merged 2 commits into
mainfrom
cdn-snapshot-published
Nov 4, 2026
Merged

Psycomy merged 2 commits into
mainfrom
cdn-snapshot-published

Conversation

@Psycomy

@Psycomy Psycomy commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Summary

The weekly cdn-snapshot check opened an issue and a manual PR every time Amazon added a range. This PR removes that manual work with no new permissions: Actions still never write to main.

  • Daily cdn-snapshot.txt on lists. The build already downloads the live CDN lists (Cloudflare, Fastly, CloudFront). It now also publishes them in the snapshot format, as one more file on the lists branch.
    • Live blocks are dated today.
    • A fallback block keeps its original date, so its age keeps growing.
  • New fallback chain, per provider: live → published, yesterday's copy from lists (--previous-cdn URL, fetched lazily at most once and validated like the live lists) → committed snapshot, now only a last resort → missing. fetch_cdn still never raises.
  • .github/workflows/cdn-snapshot.yml removed. The python -m mbl cdn-snapshot CLI stays, for the occasional manual refresh of the committed copy.
  • Health check: it now tells "used yesterday's published copy" apart from "used the committed snapshot".
  • Docs: README (EN/ES) gets the CDN section and cdn-snapshot.txt in the published files. docs/maintenance.md and docs/security.md (EN/ES) and the CHANGELOG [Unreleased] entry are updated.

Test plan

  • python3 -m unittest discover: 258 tests OK
  • node --test site/js/*.test.mjs: 29 tests OK
  • Real local build with --previous-cdn: it writes cdn-snapshot.txt with the 3 providers dated today, and all sources are live.
  • CI test + e2e
  • After merge: the next build publishes lists/cdn-snapshot.txt.

🤖 Generated with Claude Code

Psycomy and others added 2 commits November 4, 2026 16:06
The build now writes cdn-snapshot.txt into dist/ (published on the lists
branch): live blocks dated today, fallback blocks keep their header date.
A rejected live list falls back to that published copy first (fetched
lazily, at most once, via --previous-cdn), then to the committed
allowlist-cdn.snapshot.txt, then is left out. stats.json and build-health
report the new "published" source. The weekly cdn-snapshot workflow is
removed; the cdn-snapshot CLI stays for manual refreshes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Psycomy
Psycomy merged commit e724110 into main Nov 4, 2026
5 checks passed
@Psycomy
Psycomy deleted the cdn-snapshot-published branch November 4, 2026 15:27
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