Repository navigation
ci: replace the defunct rhub v1 check with weekly rhub v2 CRAN flavours - #68
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cran-check.yamlcalledrhub::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:RHUB_WEEKLY_PLATFORMS, used by scheduled runs and by manual runs with an emptyconfig;permissions: contents: read.windowsandmacos-arm64(both on R-devel),gcc-asan,clang-asan,rchkandnosuggests. These are CRAN check flavours our other CI doesn't cover. Valgrind stays invalgrind.yaml.cran-check.yamlis deleted. ADR-030 records the platform choice and supersedes ADR-007'scran-check.yamlrow.dev/architecture.mdis updated.Verification
main.gcc-asan,clang-asanandrchkpass.nosuggestsfails on a real bug: the?pdf_image_extractexample usespng, a suggested package, without checking for it. The fix is in theclaude/example-png-guardPR.actionlintand the pre-commit hooks pass.Merge order and one-time proof
claude/drop-cran-r-universe). This PR is stacked on it: the workflow comments cite ADR-026, and PR 65 rewrites the header ofcran-check.yaml, which this PR deletes.mainand merge it.mainwithconfigset tonosuggests. Expect it to fail on the unguarded example. That failure proves a failing check fails the job.claude/example-png-guardPR.configset tonosuggests(expect a pass), then withconfigempty for the whole weekly set.gcc-asan,clang-asanandrchkshould pass. This is the first run ofwindowsandmacos-arm64on R-devel.If the png-guard PR merges before step 3, the
nosuggestsrun will already pass. In that case, prove the gate by running the workflow on a throwaway branch with a deliberately failing test, such astest_that("gate", expect_true(FALSE)), and expect it to fail.🤖 Generated with Claude Code