fix(cdn): align repository routing across pull zones #165

Merged
pat-s merged 1 commit from t3code/investigate-cran-reindex-url into main 2026-08-13 14:08:11 +00:00
Owner

Motivation

cran.rpkgs.com and cran.allianceswisspass.devxy.io serve the same B2 repository through separate Bunny pull zones, but only the first zone was managed and purged after weekly reindexing.
This allowed the Alliance endpoint to retain stale repository metadata and left locked renv restores unable to retrieve versions whose binary archive object was absent.

Changes

  • Adopt the Alliance SwissPass pull zone 3265648 into OpenTofu and configure it with the shared B2 origin and middleware script.
  • Purge both Bunny pull zones after the weekly rebuild reindex.
  • Preserve the requested public hostname in middleware redirects.
  • Redirect missing archived binaries to the corresponding CRAN source package, checking whether the version is archived or still current.
  • Cover the existing archived-binary passthrough behavior in the edge routing matrix.

Verification

  • prek run -a
  • just edge-test
  • crow lint .crow/
  • tofu validate
  • bash -n scripts/purge_cdn_zone.sh

Deployment

Run tofu apply to adopt pull zone 3265648, publish the middleware release, and align both pull zones.
After the apply, rerun the Alliance SwissPass CI restore that requested cli 3.6.5 and AzureStor 3.7.1.

## Motivation `cran.rpkgs.com` and `cran.allianceswisspass.devxy.io` serve the same B2 repository through separate Bunny pull zones, but only the first zone was managed and purged after weekly reindexing. This allowed the Alliance endpoint to retain stale repository metadata and left locked `renv` restores unable to retrieve versions whose binary archive object was absent. ## Changes - Adopt the Alliance SwissPass pull zone `3265648` into OpenTofu and configure it with the shared B2 origin and middleware script. - Purge both Bunny pull zones after the weekly rebuild reindex. - Preserve the requested public hostname in middleware redirects. - Redirect missing archived binaries to the corresponding CRAN source package, checking whether the version is archived or still current. - Cover the existing archived-binary passthrough behavior in the edge routing matrix. ## Verification - `prek run -a` - `just edge-test` - `crow lint .crow/` - `tofu validate` - `bash -n scripts/purge_cdn_zone.sh` ## Deployment Run `tofu apply` to adopt pull zone `3265648`, publish the middleware release, and align both pull zones. After the apply, rerun the Alliance SwissPass CI restore that requested `cli 3.6.5` and `AzureStor 3.7.1`.
pat-s merged commit a1c1f5e78f into main 2026-08-13 14:08:11 +00:00
pat-s deleted branch t3code/investigate-cran-reindex-url 2026-08-13 14:08:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
devxy/build-cran-binaries!165
No description provided.