feat(cdn): derive Ubuntu routes from codenames #174

Merged
pat-s merged 1 commit from t3code/add-dynamic-cran-binary-routing into main 2026-08-30 12:25:23 +00:00
Owner

Motivation

Ubuntu release codenames cannot be derived from version numbers, so the edge router currently needs a code change for every Ubuntu release.

The generic repository setup can already read VERSION_CODENAME from /etc/os-release and send it in the user agent.

Changes

  • Prefer a strictly validated codename=<name> token for Ubuntu slot routing.
  • Retain the existing version-to-codename table for clients using the previous user-agent format.
  • Add a future Ubuntu 28.04 regression case whose codename does not exist in the middleware table.

User-agent format

R/4.6.1 (Ubuntu 26.04; codename=resolute) (aarch64-unknown-linux-gnu)

Verification

  • just edge-test, 1 test with 16 steps passed.
  • git diff --check
## Motivation Ubuntu release codenames cannot be derived from version numbers, so the edge router currently needs a code change for every Ubuntu release. The generic repository setup can already read `VERSION_CODENAME` from `/etc/os-release` and send it in the user agent. ## Changes - Prefer a strictly validated `codename=<name>` token for Ubuntu slot routing. - Retain the existing version-to-codename table for clients using the previous user-agent format. - Add a future Ubuntu 28.04 regression case whose codename does not exist in the middleware table. ## User-agent format `R/4.6.1 (Ubuntu 26.04; codename=resolute) (aarch64-unknown-linux-gnu)` ## Verification - `just edge-test`, 1 test with 16 steps passed. - `git diff --check`
pat-s force-pushed t3code/add-dynamic-cran-binary-routing from eab54ee7ed to 83393491ef 2026-08-30 12:24:51 +00:00 Compare
pat-s merged commit b0d58f3f7c into main 2026-08-30 12:25:23 +00:00
pat-s deleted branch t3code/add-dynamic-cran-binary-routing 2026-08-30 12:25:23 +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!174
No description provided.