build-cran-binaries/.crow
Repository files (latest commit first)
Filename Latest commit message Latest commit date
pat-s 0f4330c05c fix(ci): make build-all self-sufficient on agents without install-deps (#96)
## Summary

Fixes the recurring `build-all-*` failure on agents where `build-all-versions-install-deps` did **not** run.

Both symptoms in the logs — `Parameter 3 does not have length 1` (repeated, in the metadata DB queries) and `argument is of length zero` (system-dependency install) — were the same bug: inside bincraft, `platform` was zero-length. `local/build-all.R` calls `build_binary_package()` without passing `platform`, so bincraft resolves it from the container codename. The primary build step never (re)installed/pinned bincraft and relied on whatever sat in the **per-agent** cache volume; `depends_on` only orders steps, it does not co-locate them on the same agent, so a job landing where install-deps never ran got a stale bincraft that left `platform` empty.

## Changes

- **`build-all-versions.yaml`**: pin bincraft `@v4.2.3` in the primary build step (mirroring the R-minor pass and `process-updates.yaml`), so every agent uses a known-good bincraft regardless of where install-deps ran.
- Align the R-minor pass `v4.2.2 → v4.2.3`.
- Export `OS`/`OS_VERSION`/`ARCH` as runtime env vars — previously only available for `${...}` interpolation, so `build-all.R`'s already-built dedup query matched platform `"-"` and skipped nothing.
- Fix the unarchive call: pass the codename via `bincraft::set_codename(NULL)` instead of the malformed `paste(OS, OS_VERSION)` (`"alpine 3.24"`), matching `archive-missed-packages.yaml`.
- **`build-all-versions-install-deps.yaml`**: pin install-deps to `@v4.2.3` (was installing HEAD), so the precomputed snapshot and per-agent library stay consistent pipeline-wide.

Reviewed-on: #96
2026-06-18 11:27:02 +00:00
..
archive-missed-packages.yaml chore: bump bincraft to 4.2.3 2026-06-18 09:43:05 +02:00
build-all-versions-install-deps.yaml fix(ci): make build-all self-sufficient on agents without install-deps (#96) 2026-06-18 11:27:02 +00:00
build-all-versions.yaml fix(ci): make build-all self-sufficient on agents without install-deps (#96) 2026-06-18 11:27:02 +00:00
process-updates.yaml chore: bump bincraft to 4.2.3 2026-06-18 09:43:05 +02:00
weekly-audit-missing.yaml refactor(ci): route workflows by agent group label instead of named agent (#94) 2026-06-17 16:26:04 +00:00
weekly-rebuild-missing.yaml chore: bump bincraft to 4.2.3 2026-06-18 09:43:05 +02:00