Skip to content

ci: Add release workflows from krlmlr/r-release-actions - #579

Merged
krlmlr merged 2 commits into
mainfrom
claude/release-workflows
Nov 29, 2026
Merged

krlmlr merged 2 commits into
mainfrom
claude/release-workflows

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

This adds four thin caller workflows for the reusable workflows in krlmlr/r-release-actions. They run only when dispatched by hand, except release-status, which also runs nightly. They do nothing in a fork. Each one reports to the release's checklist pull request.

  • release-gate.yaml checks that a commit is ready for CRAN. It fails on what CRAN requires: a release version, no Remotes, and a NEWS.md section dated like DESCRIPTION. It reports on what CRAN expects without failing on it.
  • builders.yaml uploads the checked tarball to win-builder (R-devel by default) and macbuilder. These results inform the release and do not gate it.
  • cran-submission.yaml uploads the tarball that a green, dispatched run of R-CMD-check.yaml with cran-submission=true built and checked on the same commit, and writes a draft release without a tag. It has a dry-run input and a resubmit input. Its header describes the release process step by step.
  • release-status.yaml finishes a release once Posit's package manager serves the version: it tags vX.Y.Z, publishes the draft release, commits the development bump and merges the release pull request. A run without a draft release does nothing.

The files are copied from RSQLite's (r-dbi/RSQLite#908). Only the repository name, the CRAN check results URL, the r-universe URL and the package name in the NEWS heading and checklist marker were changed; otherwise the four files are identical to RSQLite's on its main. Like RSQLite's, they call r-release-actions at @main. The reusable workflows call that repository's own actions at @main, so pinning only the workflow to a commit would freeze half of it and could break when the actions move; @main keeps both together, and there is no Dependabot here to bump a pinned SHA. R-CMD-check.yaml already has the cran-submission dispatch input and the raw tarball artifact these workflows need, and it is identical to RSQLite's, so it is unchanged. actionlint passes on the four new files.

Before the first release with these workflows:

  • The date commit at release time must add a Date: field to DESCRIPTION, which the gate and the submission require.
  • tests/testthat/test-DBItest.R runs DBItest whenever GITHUB_ACTIONS is "true", so the gate's R CMD check without a database server will fail until that condition is reconsidered.
  • A dry run of the submission should be done on the release branch.

Two clean review rounds; nothing above Low remains: Accepted limitations.

Review tracker: #577
Session: https://claude.ai/code/session_01Hr1rd5deoKNru8psvRoyYR

🤖 Generated with Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Accepted limitations

The clean review found one Medium: the workflows were pinned by SHA while the actions they call stay at @main. d0220e8 fixed it by calling r-release-actions at @main, as RSQLite does. A second round found nothing above Low. After swapping the package name, the four files are byte-identical to RSQLite's copies on its main.

  • cran-submission.yaml#L55: dry-run defaults to false, where the r-release-actions README example uses true. This matches RSQLite, and the process always dispatches a dry run first. Relevance low, confidence high.
  • release-status.yaml#L9: GitHub disables a public repository's cron after 60 days without activity, so the workflow may need re-enabling before a release. This matches RSQLite. Relevance low, confidence high.
  • The DBItest gating on GITHUB_ACTIONS and the missing Date: field exist on main already and are not changed here. They are tracked in the adoption question on #577.

Generated by Claude Code

@krlmlr
krlmlr marked this pull request as ready for review November 28, 2026 07:29
@krlmlr
krlmlr merged commit 99e1201 into main Nov 29, 2026
9 checks passed
@krlmlr
krlmlr deleted the claude/release-workflows branch November 29, 2026 11:03
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