Repository navigation
Publish the CDN snapshot daily; drop the cdn-snapshot workflow - #29
Merged
Merged
Conversation
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]>
…t workflow Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The weekly
cdn-snapshotcheck 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 tomain.cdn-snapshot.txtonlists. 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 thelistsbranch.lists(--previous-cdn URL, fetched lazily at most once and validated like the live lists) → committed snapshot, now only a last resort → missing.fetch_cdnstill never raises..github/workflows/cdn-snapshot.ymlremoved. Thepython -m mbl cdn-snapshotCLI stays, for the occasional manual refresh of the committed copy.cdn-snapshot.txtin the published files.docs/maintenance.mdanddocs/security.md(EN/ES) and the CHANGELOG[Unreleased]entry are updated.Test plan
python3 -m unittest discover: 258 tests OKnode --test site/js/*.test.mjs: 29 tests OK--previous-cdn: it writescdn-snapshot.txtwith the 3 providers dated today, and all sources arelive.test+e2ebuildpublisheslists/cdn-snapshot.txt.🤖 Generated with Claude Code