Skip to content

chore: Add release bullets for updating the specification from DBItest - #792

Merged
krlmlr merged 4 commits into
mainfrom
claude/release-bullets
Nov 29, 2026
Merged

krlmlr merged 4 commits into
mainfrom
claude/release-bullets

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Adds an unexported release_bullets() in R/release-bullets.R, which usethis::use_release_issue() picks up for its release checklist, and points to it from the release process in the header of .github/workflows/cran-submission.yaml. The file follows DBItest's (r-dbi/DBItest#598, r-dbi/DBItest#604): same header comment, # nocov markers, and c() with the nolint comment. .Rbuildignore excludes R/release-bullets.R (^R/release-bullets\.R$, next to the existing ^R/zzz\.R$), so the function never reaches the CRAN tarball, while pkgload::load_all() still sources it and usethis:::release_extra_bullets() finds it: checked locally, the built tarball contains no R/release-bullets.R, and after load_all() the bullet comes back. NAMESPACE and NEWS.md are untouched; DBI has no Collate: field, so DESCRIPTION is untouched too.

The one bullet: if DBItest changed since DBI's last CRAN release, release DBItest first, then raise the DBItest version DBI suggests in DESCRIPTION and update the specification mirrored here from the released DBItest: with it installed, run devtools::document() to regenerate the @inherit and @inheritSection DBItest::spec_* sections in man/, then run the tests locally (not on CI), where tests/testthat/helper-dev.R rebuilds vignettes/spec.html and vignettes/spec.md from man/.

tests/testthat/test-DBItest.R now declares the tweak dbitest_version = "1.9.0", up from "1.8.3.6". With DBItest 1.9.0 and RSQLite 3.53.3 locally, running that file with NOT_CRAN=true gives 0 failures, 0 errors, 58 skips and 9787 passes. The file says it is generated by helper-dev.R from RSQLite's helper-DBItest.R, which still declares 1.8.3.6, so the next regeneration with an RSQLite checkout next to DBI would revert it until RSQLite is bumped too.

Why: requested by the maintainer, "if DBItest changed, release DBItest first, and then update specs mirrored here", following the precedent of r-dbi/DBItest#598.

Related review PR: #781

Checks: devtools::check(document = FALSE, args = "--no-manual", vignettes = FALSE) gives 0 errors, 0 warnings, and only the hidden .git note from the worktree; no note about the unused function. air format leaves the file unchanged.

Session: https://claude.ai/code/session_01Hr1rd74amfjQXm8ArmPSth


Generated by Claude Code

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Accepted limitations

The clean review found nothing above Low. It checked that usethis:::release_extra_bullets() finds the unexported release_bullets(), and that the procedure in the bullet matches DBI: the @inherit DBItest::spec_* blocks, tests/testthat/helper-dev.R running only when CI is unset, and DBItest (>= 1.8.2) in Suggests.

  • R/release-bullets.R:11: the bullet does not say that helper-dev.R needs xml2, rmarkdown, pandoc and rprojroot to rebuild spec.html/spec.md. The order it gives, document() first and then the tests, is correct. Relevance: low. Confidence: high.
  • DBI has no .lintr. Under lintr's defaults, two lines are too long, and the nolint comment copied from DBItest names a linter that is not active. Relevance: low. Confidence: high.

Generated by Claude Code

@krlmlr
krlmlr marked this pull request as ready for review November 29, 2026 06:09
@krlmlr krlmlr mentioned this pull request Nov 28, 2026
3 of 7 tasks
@krlmlr
krlmlr merged commit c69fae6 into main Nov 29, 2026
9 checks passed
@krlmlr
krlmlr deleted the claude/release-bullets branch November 29, 2026 10:40
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