r-builds/.crow
Repository files (latest commit first)
Filename Latest commit message Latest commit date
pat-s 56c75e2df0
All checks were successful
ci/crow/cron/build/1 Pipeline was successful
ci/crow/cron/build/2 Pipeline was successful
ci/crow/cron/build/10 Pipeline was successful
ci/crow/cron/build/5 Pipeline was successful
ci/crow/cron/build/17 Pipeline was successful
ci/crow/cron/build/18 Pipeline was successful
ci/crow/cron/build/15 Pipeline was successful
ci/crow/cron/build/8 Pipeline was successful
ci/crow/cron/build/6 Pipeline was successful
ci/crow/cron/build/12 Pipeline was successful
ci/crow/cron/build/4 Pipeline was successful
ci/crow/cron/build/14 Pipeline was successful
ci/crow/cron/build/16 Pipeline was successful
ci/crow/cron/build/9 Pipeline was successful
ci/crow/cron/build/7 Pipeline was successful
ci/crow/cron/build/13 Pipeline was successful
ci/crow/cron/build/11 Pipeline was successful
ci/crow/cron/build/3 Pipeline was successful
ci: build last four minor R versions instead of only the latest (#6)
## Summary

The crow build pipeline previously built only the single latest stable R version (from the brew formula).
It now builds the latest patch release of each of the **last four minor R versions** and uploads any that are missing from S3, so older supported minors stay available rather than only the newest stable.

- **Get R versions to build**: derive the four versions from posit's `versions.json` (the same source upstream's `test/get_r_versions.py` uses) via jq — keep only `x.y.z` releases, take the latest patch per minor, then the top four minors (e.g. `4.6.0, 4.5.3, 4.4.3, 4.3.3`).
- **Check which R versions already exist in s3**: iterate the four versions against the S3 listing for the platform/arch.
- **Build**: build only the versions that are missing. In steady state nothing builds; when a new minor lands, only that one is built.

## awk fix

The existence check used an awk regex (`$0 ~ ver`), so the unescaped dots in a version made `4.4.3` spuriously match `4.3.3` (the substring `4/4.3` satisfies the pattern).
Harmless with a single version, but across four adjacent versions it would wrongly skip builds.
Switched to literal substring matching via awk `index($0, ver)`.

Reviewed-on: #6
2026-06-12 17:16:43 +00:00
..
build.yaml ci: build last four minor R versions instead of only the latest (#6) 2026-06-12 17:16:43 +00:00