Skip to content

ci: replace the defunct rhub v1 check with weekly rhub v2 CRAN flavours - #68

Merged
billdenney merged 2 commits into
mainfrom
claude/rhub-v2-cran-check
Sep 27, 2026
Merged

billdenney merged 2 commits into
mainfrom
claude/rhub-v2-cran-check

Conversation

@billdenney

Copy link
Copy Markdown
Member

Summary

cran-check.yaml called rhub::check_for_cran(), which rhub v2 made defunct. All 19 scheduled runs failed with "attempt to apply non-function", so the weekly check against CRAN's platforms never ran. This PR replaces it with R-hub's v2 workflow on a weekly schedule.

Changes

  • .github/workflows/rhub.yaml (new) is R-hub's standard workflow with three additions:
    • a Monday cron schedule;
    • a default platform set, RHUB_WEEKLY_PLATFORMS, used by scheduled runs and by manual runs with an empty config;
    • permissions: contents: read.
  • The weekly set is windows and macos-arm64 (both on R-devel), gcc-asan, clang-asan, rchk and nosuggests. These are CRAN check flavours our other CI doesn't cover. Valgrind stays in valgrind.yaml.
  • cran-check.yaml is deleted. ADR-030 records the platform choice and supersedes ADR-007's cran-check.yaml row. dev/architecture.md is updated.

Verification

  • Four of the flavours were run locally in R-hub's Docker containers against current main. gcc-asan, clang-asan and rchk pass. nosuggests fails on a real bug: the ?pdf_image_extract example uses png, a suggested package, without checking for it. The fix is in the claude/example-png-guard PR.
  • actionlint and the pre-commit hooks pass.

Merge order and one-time proof

  1. Merge PR 65 (claude/drop-cran-r-universe). This PR is stacked on it: the workflow comments cite ADR-026, and PR 65 rewrites the header of cran-check.yaml, which this PR deletes.
  2. Retarget this PR to main and merge it.
  3. Actions → R-hub → Run workflow on main with config set to nosuggests. Expect it to fail on the unguarded example. That failure proves a failing check fails the job.
  4. Merge the claude/example-png-guard PR.
  5. Re-run with config set to nosuggests (expect a pass), then with config empty for the whole weekly set. gcc-asan, clang-asan and rchk should pass. This is the first run of windows and macos-arm64 on R-devel.

If the png-guard PR merges before step 3, the nosuggests run will already pass. In that case, prove the gate by running the workflow on a throwaway branch with a deliberately failing test, such as test_that("gate", expect_true(FALSE)), and expect it to fail.

🤖 Generated with Claude Code

billdenney and others added 2 commits September 27, 2026 16:03
cran-check.yaml called rhub::check_for_cran(), which rhub v2 made
defunct. All 19 scheduled runs failed with "attempt to apply
non-function", so the weekly CRAN-platform check never ran.

rhub.yaml is R-hub's canonical v2 workflow with three changes, which
its header lists:
- a weekly schedule (the old Monday 04:17 slot);
- RHUB_WEEKLY_PLATFORMS, the platforms that scheduled runs and manual
  runs with an empty config use;
- permissions: contents: read.

The weekly set is windows and macos-arm64 on R-devel, gcc-asan,
clang-asan, rchk and nosuggests: CRAN check flavours our own CI does
not cover. valgrind.yaml already covers valgrind. ADR-030 records the
choice and supersedes ADR-007's cran-check row.
dev/architecture.md's CI topology is updated to match.

Checked locally in R-hub's containers against current main code:
- gcc-asan, clang-asan and rchk are clean.
- nosuggests fails on a real issue: the pdf_image_extract() example
  uses png without checking that it is installed.

actionlint and the pre-commit hooks pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@billdenney
billdenney merged commit bd405cd into main Sep 27, 2026
11 checks passed
@billdenney
billdenney deleted the claude/rhub-v2-cran-check branch September 27, 2026 17:29
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.

1 participant