feat(build): skip already-built package versions on workflow restart #91
Loading…
Reference in a new issue
No description provided.
Delete branch "t3code/270bb972"
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?
Summary
When a
build-all-*workflow is restarted, the build job re-reads the staticpkgs_to_build.rdsthat the install-deps step produced once, so it cycles over every package an interrupted run already built. This adds a DB-based skip filter so a restart only processes what is genuinely left.build-all.Rqueries thesingle_buildsmetadata table for(name, tag)already built successfully (error_occurred = FALSE) on thisplatform/arch, and drops those pairs from the chunk before the build loop. It logs how many it skipped.RPostgres/DBIare already used in the container).Dependency
Correctness depends on a
error_occurred = FALSErow meaning the binary is actually published. That guarantee is added in rpkgs/bincraft#56 (success row written only after a confirmed S3 upload). This PR should land together with / after a bincraft release including that fix.pat-s referenced this pull request2026-06-16 07:53:39 +00:00