Commit 0cb85b4
Mirror Eric's OC PQG to R2 with immutable cache + drift-check script (#132)
Eric Kansa's OpenContext PQG files (the ones with 48K populated thumbnails,
see #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>1 parent 3d20a80 commit 0cb85b4
2 files changed
Lines changed: 95 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
| |||
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
75 | | - | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
0 commit comments