Skip to content

fix: Add a cleanup script that removes src/Makevars and configure.log - #585

Merged
krlmlr merged 5 commits into
mainfrom
claude/fix-cicd-failures-63v5pe
Nov 29, 2026
Merged

krlmlr merged 5 commits into
mainfrom
claude/fix-cicd-failures-63v5pe

Conversation

@krlmlr

@krlmlr krlmlr commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a cleanup script so the R-devel check job no longer fails on NOTEs about configure-generated files. (The rcc dev dev-package install issue this branch originally also touched is now handled upstream by the Resolute migration + DBItest dropping purrr, so that workflow change was dropped when rebasing onto current main.)

rcc (R-devel job): add a cleanup script

configure writes configure.log at the top level and generates src/Makevars from src/Makevars.in. On R-devel, R CMD check flags these as two NOTEs (Non-standard file … 'configure.log'; Package has both 'src/Makevars.in' and 'src/Makevars'), and the check runs with error-on: "note", so the job fails. Added an executable cleanup script (rm -f src/Makevars configure.log, byte-identical to RMariaDB's) and stopped ignoring it in .Rbuildignore/.gitignore so it ships in the tarball and runs during check.

Dropped: Docker image GHA cache import fix

This PR also changed cache-from in .github/workflows/ghcr.yaml from || to &&, so that scheduled and manual builds skip the type=gha cache import. main no longer has ghcr.yaml, so that change was dropped when merging current main, and the branch now takes main's version of every other file.

https://claude.ai/code/session_016BRYo2D5L4wpgaTFTHH2B7


Generated by Claude Code

@krlmlr krlmlr changed the title fix: unbreak CI (declare purrr, add cleanup script, fix Docker cache) ci: unbreak CI (fix dev-package install, add cleanup script, fix Docker cache) Jul 21, 2026
claude added 4 commits July 22, 2026 21:02
The development version of `DBItest` (installed from r-universe in the
`rcc dev` workflow) calls `purrr::` functions directly (e.g. in
`stream_frame()`), so `DBItest::test_all()` aborts with "there is no
package called 'purrr'" unless `purrr` is available in the check
library. Declaring it in Suggests guarantees it is installed, matching
the fix applied to RMariaDB.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_016BRYo2D5L4wpgaTFTHH2B7
`configure` writes `configure.log` at the top level and generates
`src/Makevars` from `src/Makevars.in`. On R-devel, `R CMD check` runs
the package's `cleanup` script and then flags these leftover files as
NOTEs ("Non-standard file/directory found at top level: 'configure.log'"
and "Package has both 'src/Makevars.in' and 'src/Makevars'"), which fail
the check because `error-on` is `"note"`. Ship a `cleanup` script that
removes both files, matching RMariaDB. Stop ignoring `cleanup` in
`.Rbuildignore`/`.gitignore` so it is tracked and included in the
tarball.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_016BRYo2D5L4wpgaTFTHH2B7
The `cache-from` expression used `||` where `&&` was intended, so the
condition was always true and every build imported `type=gha`. On the
nightly scheduled runs this repeatedly failed with "404 BlobNotFound"
when the cache manifest referenced an evicted blob. Use `&&` so
scheduled and manual (`workflow_dispatch`) builds skip the cache import
and build fresh, while push builds still benefit from it.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_016BRYo2D5L4wpgaTFTHH2B7
…verse

The "Install dev version" step installed the dev package via
remotes::install_runiverse(..., linux_distro = "noble") without its
dependencies, so a dev package that added a new hard dependency (e.g. dev
DBItest adding purrr to Imports) left that dependency uninstalled and the
check failed.

Replace the single install call with a three-phase install: pull only the
dev package (no deps) from r-universe as a binary, install any newly
declared hard deps from P3M as released binaries, then re-install the dev
package with deps satisfied. This fixes the failure at its source in the
workflow, so the coincidental purrr-in-Suggests workaround is reverted.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_016BRYo2D5L4wpgaTFTHH2B7
@krlmlr
krlmlr force-pushed the claude/fix-cicd-failures-63v5pe branch from e3f4895 to ddfa280 Compare July 22, 2026 21:03
@krlmlr krlmlr changed the title ci: unbreak CI (fix dev-package install, add cleanup script, fix Docker cache) fix: add cleanup script for R-devel check NOTEs and fix Docker cache import Jul 22, 2026
Take main's version of every conflicting file: the branch carried a
long stretch of old history that main has since superseded. Drop
.github/workflows/ghcr.yaml, which main no longer has, together with
the branch's cache-import fix to it. Keep the `cleanup` script and its
removal from .Rbuildignore and .gitignore on top of main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd6e5NcxC9GSrNJDokc
@krlmlr krlmlr changed the title fix: add cleanup script for R-devel check NOTEs and fix Docker cache import fix: Add a cleanup script that removes src/Makevars and configure.log Nov 29, 2026
@krlmlr
krlmlr merged commit f3dfa48 into main Nov 29, 2026
2 checks passed
@krlmlr
krlmlr deleted the claude/fix-cicd-failures-63v5pe branch November 29, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants