build-cran-binaries/.crow
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
..
archive-missed-packages.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
auto-apply-patches.yaml fix(ci): install RPostgres for audit workflows (#172) 2026-08-30 07:31:28 +00:00
backfill-abi-classification.yaml feat(abi): backfill classifier verdicts for pre-per-minor packages (#199) 2026-09-04 10:34:49 +00:00
backfill-flat-safety.yaml fix(repair-built-stamp): patch the published PACKAGES.rds once bincraft drops cranlike (#236) 2026-10-18 11:55:21 +00:00
build-all-versions-install-deps.yaml fix(ci): make every manual gate default to a value that matches nothing (#158) 2026-08-09 15:31:14 +00:00
build-all-versions.yaml fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
process-updates.yaml 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.yaml fix(ci): pass the metadata DB to per-minor reindexes and fail on errors (#234) 2026-10-17 07:46:09 +00:00
rebuild-abi-gap.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
reindex.yaml fix(repair-built-stamp): patch the published PACKAGES.rds once bincraft drops cranlike (#236) 2026-10-18 11:55:21 +00:00
repair-built-stamp.yaml fix(repair-built-stamp): patch the published PACKAGES.rds once bincraft drops cranlike (#236) 2026-10-18 11:55:21 +00:00
repair-unsafe-flat-objects.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
retire-slot.yaml feat(slots): add a retirement workflow and a drift check (#214) 2026-09-11 13:14:17 +00:00
trial-build-registry.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
verify-repo-routing.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
weekly-audit-missing.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
weekly-patch-proposals.yaml fix(ci): install RPostgres for audit workflows (#172) 2026-08-30 07:31:28 +00:00
weekly-rebuild-missing.yaml fix(ci): give each xvfb-run its own display (#230) 2026-10-11 12:12:28 +00:00
weekly-rebuild-reindex.yaml fix(repair-built-stamp): patch the published PACKAGES.rds once bincraft drops cranlike (#236) 2026-10-18 11:55:21 +00:00