Mirror Eric's OC PQG to R2 with immutable cache + drift-check script#132
Merged
rdhyee merged 1 commit intoisamplesorg:mainfrom Apr 17, 2026
Merged
Conversation
Eric Kansa's OpenContext PQG files (the ones with 48K populated thumbnails, see isamplesorg#131) were only served from his GCS bucket. Mirrored to R2 under oc_pqg/ with date-versioned filenames + per-file manifests + a latest.json pointer so we: 1. Have a stable source-of-truth input for the PQG pipeline rebuild. 2. Can detect drift when Eric re-uploads. 3. Get free Cloudflare edge caching via the existing Worker. Worker change: expand the immutable Cache-Control regex from a single isamples_YYYYMM_* pattern to an array that also covers oc_pqg/oc_isamples_pqg*_YYYYMMDD.parquet. Non-versioned files under oc_pqg/ (manifests, latest.json) fall through to the 5-minute default. scripts/check_oc_pqg_drift.py fetches latest.json + per-file manifests from R2, HEADs GCS, and compares etags. Exit 0 = in sync, 1 = drift, 2 = probe failure. Run manually for now; later wire to GitHub Actions cron. Mirror contents (2026-04-17): oc_pqg/oc_isamples_pqg_20251107.parquet (727 MB, narrow) oc_pqg/oc_isamples_pqg_wide_20251116.parquet (289 MB, wide) oc_pqg/*.manifest.json (per-file provenance) oc_pqg/latest.json (flavor -> current version) Verified live: cache-control on the parquets is public, max-age=31536000, immutable. Drift check passes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced Apr 17, 2026
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.
Addresses the mirror-planning part of #131. Files uploaded to R2, Worker regex expanded, drift-check script landed.
Mirror verified live —
curl -sI data.isamples.org/oc_pqg/oc_isamples_pqg_20251107.parquetshowscache-control: public, max-age=31536000, immutable. Drift check exits 0 (in sync).