Skip to content

ci: Add the release workflows from r-release-actions - #586

Merged
krlmlr merged 1 commit into
mainfrom
claude/release-workflows
Nov 28, 2026
Merged

krlmlr merged 1 commit into
mainfrom
claude/release-workflows

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

This adds four workflows that call the reusable workflows of krlmlr/r-release-actions. They are copied from r-dbi/RSQLite's main branch, which adopted them in r-dbi/RSQLite#908. The only changes are the repository guard (if: github.repository == 'r-dbi/DBItest') and the package name in the comments and links. No existing workflow is touched.

release-gate.yaml checks by hand-dispatch whether a commit is ready for CRAN: it fails on what CRAN requires, reports on what CRAN expects, and keeps one comment on the checklist pull request. cran-submission.yaml uploads the tarball that a green R-CMD-check.yaml run on the same commit built and checked, writes a draft release (no tag), and has dry-run and resubmit inputs; its header also describes the release process step by step. release-status.yaml runs nightly and on dispatch, and once Posit's package manager serves the version it tags vX.Y.Z, publishes the draft, commits the development bump and merges the release pull request; a run without a draft release does nothing. builders.yaml uploads the checked tarball to win-builder (R-devel by default) and macbuilder, and reports both on the checklist pull request.

All four call @main of r-release-actions, as RSQLite does; the repository has no tags yet. Each file keeps a top-level permissions: {} and grants only job-level permissions that cover what the reusable workflow's jobs ask for. No secrets or repository variables are needed beyond the workflow's own token.

Already in place: R-CMD-check.yaml is identical to RSQLite's, so it has the cran-submission dispatch input and the job that builds, recompresses, verifies and uploads the raw source tarball the gate, the builders and the submission consume. DESCRIPTION declares VignetteBuilder, and _pkgdown.yml sets news: cran_dates: false with the released NEWS.md headings dated.

What remains for the release itself: removing fledge's marker line from NEWS.md at the cut, writing the curated NEWS.md section for the release, updating cran-comments.md, and a dry run of the submission before the release day.

A clean review found nothing above Low; the remaining points are listed under Accepted limitations.

Related: #585 (release review, where adopting these workflows was decided).

https://claude.ai/code/session_01Hr1rd7ccM8Y4Gr9rgiWjgH


Generated by Claude Code

Add callers of the reusable release gate, CRAN submission, release status and builder workflows of krlmlr/r-release-actions.
They follow the copies in r-dbi/RSQLite, with the repository and the package name replaced.
Each job runs only in r-dbi/DBItest and grants only the permissions its reusable workflow needs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd7ccM8Y4Gr9rgiWjgH

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Question: Default of the dry-run input for the submission and the builders

The dry-run input of cran-submission.yaml lines 52–55 and builders.yaml lines 15–18 defaults to false. That is what RSQLite has, so a dispatch without -f dry-run=true is a real attempt.

The clean review rated this Low. A real submission is still refused unless the version is a release version, both dates are today, a checklist PR exists and the check run is green, and CRAN's confirmation link still needs a click. A stray builders dispatch, however, does upload to win-builder or macbuilder and sends an email.

The callee's README shows default: true. Switching both defaults costs one -f dry-run=false on every real run, and DBItest would then differ from RSQLite. If nobody decides, the defaults stay false, as in RSQLite.

  • Keep false, matching RSQLite (recommended)
  • Switch both to true here, and propose the same in RSQLite

Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Question: Note the 60-day schedule pause in release-status.yaml

GitHub disables a scheduled workflow in a public repository after 60 days without activity. A later release would then first need gh workflow enable release-status.yaml --repo r-dbi/DBItest. The callee's README documents this, but the caller's header comment does not.

Adding one comment line costs nothing, but DBItest would then differ from RSQLite's copy. The clean review rated this Low. If nobody decides, the file stays as RSQLite's.

  • Leave as is, matching RSQLite (recommended)
  • Add the comment line here and in RSQLite

Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Accepted limitations

From the clean review of 92218c3, which found nothing above Low.

  • cran-submission.yaml line 55 and builders.yaml line 18: dry-run defaults to false, as in RSQLite (question). Low relevance; the reviewer is confident.
  • release-status.yaml lines 3–8: no note that GitHub pauses the schedule after 60 days of inactivity (question). Low relevance; the reviewer is confident.
  • Outside this PR, in krlmlr/r-release-actions: the submission does not check the recompressed flag in the tarball's sidecar metadata. A plain dispatch of R-CMD-check without cran-submission=true on the release head could therefore supply a valid but non-recompressed tarball. Not filed yet, because that repository is not attached to this session. Low relevance; the reviewer is fairly confident.

Generated by Claude Code

@krlmlr
krlmlr merged commit ce5f446 into main Nov 28, 2026
17 checks passed
@krlmlr
krlmlr deleted the claude/release-workflows branch November 28, 2026 07:52
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