fix(audit): count a source fallback as a missing binary #157
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/audit-counts-source-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The audit's definition of "missing" was
missing_dt <- cran_dt[!s3_dt], wheres3_dtcame from listing the bucket. But an object being present does not mean a binary was built: when a build fails, bincraft publishes the CRAN source tarball in its place so the package stays installable, and a listing cannot tell the two apart.So every failed build looked done. On
amd64/alpine324that is 13 547 of 24 134 comparable objects (56%) — all CRAN sources from the June 2026 bootstrap, none ever reported here, soweekly-rebuild-missingnever retried any of them.amd64/noblesits at 4.6% for comparison.What this changes
Reads the slot's own
PACKAGESindex instead of listing the bucket, and counts only records carrying aBuiltstamp. bincraft writes that stamp only for what it actually built (rpkgs/bincraft#105), so the index answers the question a listing cannot.Side effects of reading the index rather than the bucket:
s3fsis no longer used, so the audit needs no B2 credentialsSequencing
This is inert until the matching bincraft change ships and a slot is re-indexed. A slot last indexed by an older bincraft carries
Builton every record, including the fallbacks, so the audit reports exactly what it does today. Verified against the live indices:After a re-index those
source-servedcounts become the real ones, and the packages behind them start appearing in issue #63 and getting rebuilt.