build-cran-binaries/local
Repository files (latest commit first)
Filename Latest commit message Latest commit date
pat-s c61d951875
Some checks failed
ci/crow/cron/process-updates/9 Pipeline was successful
ci/crow/cron/process-updates/15 Pipeline was successful
ci/crow/cron/process-updates/16 Pipeline was successful
ci/crow/cron/process-updates/13 Pipeline was successful
ci/crow/cron/process-updates/12 Pipeline was successful
ci/crow/cron/process-updates/10 Pipeline was successful
ci/crow/cron/process-updates/14 Pipeline was successful
ci/crow/cron/process-updates/4 Pipeline was successful
ci/crow/cron/process-updates/3 Pipeline was successful
ci/crow/cron/process-updates/8 Pipeline failed
ci/crow/cron/process-updates/1 Pipeline was successful
ci/crow/cron/process-updates/2 Pipeline was successful
ci/crow/cron/process-updates/5 Pipeline was successful
ci/crow/cron/process-updates/6 Pipeline was successful
ci/crow/cron/process-updates/7 Pipeline was successful
ci/crow/cron/process-updates/11 Pipeline was successful
fix(repair-built-stamp): patch the published PACKAGES.rds once bincraft drops cranlike (#236)
Follow-up to https://codefloe.com/rpkgs/bincraft/pulls/228 (bincraft#33), which drops the cranlike and desc forks.

## Why

After that change, `upload_package_index()` no longer keeps a `PACKAGES.db`.
It reuses the records of the slot's published `PACKAGES.rds`, as long as each tarball is still listed with the same ETag.
`local/repair-built-stamp.R` patched `PACKAGES.db`, so it would stop having any effect.

## Changes

- `local/repair-built-stamp.R` now patches `Built` in each slot's `PACKAGES.rds` and then re-emits the index.
  - Only the slot's own rows are patched: the generic slot's rows without a `Path`, or a per-minor slot's rows whose `Path` is its minor.
  - A missing stamp is not counted as broken, since bincraft clears it on purpose for source fallbacks.
  - With a bincraft release that still loads cranlike, the script patches `PACKAGES.db` as before, so merge order does not matter.
  - `bincraft::built_stamp()` was never exported, so the script failed at that line before this change; it now calls `bincraft:::built_stamp()`.
- The `GITHUB_PAT` comments in `reindex`, `weekly-rebuild-reindex` and `backfill-flat-safety` now give the current reason: bincraft reads DESCRIPTIONs from raw.githubusercontent.com.
- The README section on index files describes `upload_package_index()` instead of the forks.

## Testing

Tested against a moto S3 bucket, with bincraft installed from the bincraft#228 branch:

- A slot was indexed, then 3 of its 5 `Built` stamps were set to `R 4.5.0; NA; ...`.
- The dry run reported 5 entries, 3 broken.
- `--apply` rewrote the 3 stamps, and the re-emit logged `Index records: 5 reused, 0 read, 0 unreadable.`
- The published `PACKAGES` then had a valid stamp on all 5 records.
- With the released bincraft, which still loads cranlike, the script chose `PACKAGES.db`.

The stale `PACKAGES.db` objects in the slots can be deleted once a bincraft release with #228 is in use.

Reviewed-on: #236
2026-10-18 11:55:21 +00:00
..
patches fix(patches): cover every RcppParallel 6.x release with the bundled-TBB patch (#228) 2026-10-04 07:35:01 +00:00
tests fix(build): build packages requiring newer R on compatible minors (#216) 2026-09-13 09:35:50 +00:00
archive-missed-pkgs.R feat: R-minor-sensitive binary builds (full + iterative) (#84) 2026-06-14 08:04:40 +00:00
backfill-abi-classification.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
backfill-flat-safety.R fix(abi): inspect flat objects of packages CRAN has removed (#212) 2026-09-09 18:35:33 +00:00
build-all.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
build-newer-r.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
build-one.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
check-cdn-cache.sh add alpine321 to scripts 2024-12-29 10:18:55 +01:00
check-NA.R feat: R-minor-sensitive binary builds (full + iterative) (#84) 2026-06-14 08:04:40 +00:00
check-slots.R feat(slots): add a retirement workflow and a drift check (#214) 2026-09-11 13:14:17 +00:00
debug-packages-writing.R feat: R-minor-sensitive binary builds (full + iterative) (#84) 2026-06-14 08:04:40 +00:00
dedupe-audit-issue.R fix(audit): replace arch subsection in place instead of appending duplicates (#138) 2026-07-21 08:51:23 +00:00
detect-duplicates.R feat: R-minor-sensitive binary builds (full + iterative) (#84) 2026-06-14 08:04:40 +00:00
excluded-packages.json feat: R-minor-sensitive binary builds (full + iterative) (#84) 2026-06-14 08:04:40 +00:00
failing-builds-classify.R feat(local): aggregate blocked-on-dependency reporting by dependency (#131) 2026-07-16 21:24:03 +00:00
failing-builds-report.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
fetch-rebuild-packages-from-issue.R fix(audit): replace arch subsection in place instead of appending duplicates (#138) 2026-07-21 08:51:23 +00:00
find-R-api-packages.sh chore(local): add S3 migration and CRAN-source helper scripts 2026-06-14 13:02:48 +02:00
install-bincraft.R refactor: migrate package installation from pak to uvr (#147) 2026-07-31 12:19:26 +00:00
label-removed-cran-packages.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
last-processed-by-platform.R feat: R-minor-sensitive binary builds (full + iterative) (#84) 2026-06-14 08:04:40 +00:00
list-unsafe-flat-objects.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
migrate-s3-hetzner-to-backblaze.sh chore(local): add S3 migration and CRAN-source helper scripts 2026-06-14 13:02:48 +02:00
missing-cran-packages-db.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
missing-cran-packages.R feat: R-minor-sensitive binary builds (full + iterative) (#84) 2026-06-14 08:04:40 +00:00
missing-packages-in-index.R feat: R-minor-sensitive binary builds (full + iterative) (#84) 2026-06-14 08:04:40 +00:00
newer-r-helpers.R fix(build): build packages requiring newer R on compatible minors (#216) 2026-09-13 09:35:50 +00:00
packages-to-build.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
packages-without-any-binary.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
proposal-tracking-lib.R feat(local): aggregate blocked-on-dependency reporting by dependency (#131) 2026-07-16 21:24:03 +00:00
proposal-tracking.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
propose-patches.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
prune-stale-flat-binaries.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
query-pkgs-without-old-versions.R chore(local): add S3 migration and CRAN-source helper scripts 2026-06-14 13:02:48 +02:00
r-minor-helpers.R refactor: migrate package installation from pak to uvr (#147) 2026-07-31 12:19:26 +00:00
rebuild-missing-helpers.R feat(rebuild): shard the weekly rebuild and make each shard resumable (#163) 2026-08-12 08:30:29 +00:00
rebuild-missing.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
repair-built-stamp.R fix(repair-built-stamp): patch the published PACKAGES.rds once bincraft drops cranlike (#236) 2026-10-18 11:55:21 +00:00
retire-slot.R feat(slots): add a retirement workflow and a drift check (#214) 2026-09-11 13:14:17 +00:00
test-package-loading.R refactor: migrate package installation from pak to uvr (#147) 2026-07-31 12:19:26 +00:00
trial-build-patch.R fix(local): make trial-build-patch.R detect non-throwing build failures (#134) 2026-07-18 08:37:04 +00:00
trial-build-registry.R fix(local): make the trial-build gate detect non-throwing build failures (#130) 2026-07-16 08:24:03 +00:00
uvr-install.sh chore(deps): update dependency nbafrank/uvr to v0.4.7 2026-10-11 00:32:41 +00:00
validate-patches.R feat(local): auto-propose registry patches and track the feedback loop (#117) 2026-07-14 15:03:24 +00:00
verify-repo-routing.R fix(ci): do not print a missing timing as "NAs" (#210) 2026-09-09 15:01:29 +00:00
weekly-missing-binaries-audit.R fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00