Skip to content

chore: Review for the next CRAN release - #781

Draft
krlmlr wants to merge 1 commit into
mainfrom
claude/release-review
Draft

krlmlr wants to merge 1 commit into
mainfrom
claude/release-review

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

This PR collects the pre-release review for the next CRAN release of DBI. The questions for the maintainer are posted as separate comments below.

Release 1.4.0: accepted on CRAN on 2026-11-30

Submitted commit: 39a2770dbccecb887ee883f0ce1c6c7976e4d611

  • Checklist PR: chore: Release DBI 1.4.0 #803, merged into main after the submission. Draft release, targeting the submitted commit and holding the checked tarball: draft. The development bump chore: Bump version to 1.4.0.9000 #806 is merged.
  • CRAN: accepted. DBI 1.4.0 was published on CRAN on 2026-11-30 at 16:40 UTC. The release status workflow tags v1.4.0 and publishes the draft release once Posit's package manager lists 1.4.0 (it still listed 1.3.0 at about 22:05 UTC); the comparison of CRAN's tarball with the submitted commit follows then.
  • Builders: win-builder: the result was mailed to the maintainer and has not been relayed here yet. macbuilder: the upload got HTTP 502, so it did not run (builders run).
  • The release gate reports URL problems only as soft warnings, and it labels a urlchecker 2.x finding "not run". The fix is fix: Report URL findings of urlchecker 2.x in the release gate krlmlr/r-release-actions#14 (reviewed, ready).

Driven by https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89.

Decisions (2026-11-28)

State as of 2026-11-28

  • CRAN: version 1.3.0 was published 2026-02-25. All 13 flavors are OK on the check results page. There are no additional issues and no deadline. The release-frequency cooldown is not a concern.
  • Reverse dependencies on CRAN: 193 depends, 356 imports, 338 suggests, 1 enhances (888 in total). r-universe counts 3738 packages using DBI.
  • r-universe: 1.3.0.9017 is built from e37cf0d. Every platform is OK, including R-devel 4.7.0 and wasm.
  • CI on main: rcc is green. A smoke-test failure on 2026-11-27 20:49 was gone in the next push run. rcc dev has failed in its scheduled run every day since 2026-10-27, with one green run on 2026-11-15. The failing step is "Install dev version of <pkg>" for many packages (callr, knitr, testthat, DBItest, dplyr and others), which points to the CI setup rather than to DBI's code.
  • Revdep: revdep.yaml, revdep2.yaml and revdep4.yaml have never run, so there is no baseline.

Changes since 1.3.0

main is 119 commits ahead of v1.3.0. The diff contains no user-visible code change: no generic, signature, default, warning or error changed.

Downstream risk of main as it stands: none found. The risk comes from the open PRs listed below.

Open PRs

Several fork PRs (#766, #768, #688) show a red smoke test on their old base, but every check step in it was skipped. They need a rebase or a maintainer rerun before a real CI result exists.

# Recommendation Reason Downstream risk
#766 include One-line test fix so the tests keep passing when R 4.7.0 removes the S4 standardGeneric class none (test only)
#768 include Fixes #767 (otel span dropped when a query has more than one FROM) low (otel span names only)
#760, then #761 include README: names the real driver generators and autolinks them (#761 is stacked on #760) none
#682 include Documents connection lifetime in packages (fixes #532); needs a rerun and the format-suggest patch none
#752 merged README goals and non-goals none
#769 defer (decided; review continues in #783) Lazy Arrow fetch. The design is still open, and the PR adds Remotes: and a development version of nanoarrow, which CRAN cannot accept high: makes lazy fetching the default; on single-result backends a second query invalidates the open stream
#688 out (#784 closed unmerged) Exact double literals in dbQuoteLiteral() (#404). An earlier fix was reverted because of revdep failures medium–high: changes the generated SQL, snapshot tests in dbplyr and in backends
#351 defer Primary keys in dbCreateTable(); stale since 2023 high if merged: changes generic signatures

Open issues

# Recommendation Reason
#767 include Fixed by #768
#532 include Fixed by #682
#404 defer See #688
#770 defer Removing the SQL-based inference would change span attributes; it can follow after #768
#773, #758 defer Arrow spec and API design; they need DBItest work
#413 defer check_dots_used() would add new warnings for many callers (high risk)
#514, #488, #463, #402, #399, #393, #516 defer Feature or design questions
#365, #361, #358, #339, #252 defer Docs. #339 is a catch-all from 2021 and could be closed as stale

Adopting the release toolkit

DBI does not have the release workflows yet. Compared with RSQLite 3.54.1 (r-dbi/RSQLite#893), adoption needs:

Next steps

  1. Land the release set.
  2. Sync the workflows with cynkratemplate in ci: Sync the workflows with cynkra/cynkratemplate #788, which brings in the rcc dev fix from cynkratemplate#179. cynkratemplate#179 is merged, and its dev workflow ran green on the 26.04 runner. ci: Sync the workflows with cynkra/cynkratemplate #788 is merged, and rcc dev on main is green again: all 22 dev-dependency jobs pass.
  3. Cut the release.

https://claude.ai/code/session_01Hr1rd74amfjQXm8ArmPSth


Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: What goes into the release?

As main stands, the release would contain only documentation and CI changes. The low-risk candidates are #766 (keeps the tests passing on R 4.7.0, which removes the S4 standardGeneric class), #768 (fixes the otel span bug #767), the README PRs #760 and #761, and the connection-lifetime docs in #682. None of them touches an exported generic or a default. The two PRs with downstream risk are #769 (lazy Arrow fetch) and #688 (dbQuoteLiteral() doubles); each has its own question below.

Kirill decides. If nobody decides, nothing is cut.


Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: #769 (lazy Arrow fetch) in this release?

#769 adds the option DBI.lazy_arrow, which defaults to TRUE. With it, the default dbFetchArrow() and dbGetQueryArrow() keep a result open until its stream is consumed. On single-result backends that rely on DBI's default Arrow methods, a second query on the same connection then invalidates the stream. One example is dbWriteTableArrow(con, ..., dbGetQueryArrow(con, ...)).

The design question is still open in the PR: should this be controlled per connection or per query? The PR also adds Remotes: apache/arrow-nanoarrow/r and requires nanoarrow (>= 0.9.0.9000), which CRAN cannot accept until nanoarrow is released. Shipping it would need a nanoarrow release and a revdep run with which: most.

Kirill decides. If nobody decides, #769 is deferred.

  • Defer to a later release. (recommended)
  • Include it as opt-in (default FALSE), once nanoarrow is on CRAN.
  • Include it with the default TRUE, after a nanoarrow release and a revdep run.

Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: #688 (dbQuoteLiteral() exact doubles) in this release?

#688 fixes #404: it formats doubles that do not round-trip with %.17g. That changes the SQL the default dbQuoteLiteral() generates for those values, and with it the output of sqlInterpolate(), sqlData() and sqlAppendTable(). Snapshot tests in dbplyr and in the backends are likely to break. According to #404, an earlier fix was reverted because of revdep failures. The PR body also says formatC(), while the code uses sprintf(). CI has not produced a real result for this PR, because its smoke test skipped every step.

Kirill decides. If nobody decides, #688 is deferred.


Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: How to adopt the release workflows?

DBI has none of release-gate.yaml, cran-submission.yaml, release-status.yaml or builders.yaml. RSQLite 3.54.1 (r-dbi/RSQLite#893) adopted them as thin callers of krlmlr/r-release-actions/.github/workflows/*.yaml@main. The release handbook, however, says the callers pin the reusable workflows by tag. R-CMD-check.yaml already has the cran-submission input, through #776. According to the handbook, the tooling has to be on main and pass a complete dry run before release day.

Kirill decides. If nobody decides, adoption waits, and the release falls back to a manual submission.

  • Open one PR now that copies RSQLite's four callers with the repository check set to r-dbi/DBI, pinned to @main like RSQLite, and dry-run them on main. (recommended)
  • Same PR, but pinned to a tag of r-release-actions.
  • Skip adoption for this release and submit manually with devtools::submit_cran().

Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: Does the red rcc dev block the release?

The scheduled rcc dev (R-CMD-check-dev.yaml) has failed every day since 2026-10-27, with one green run on 2026-11-15. The failing step is "Install dev version of <pkg>", and it fails for many packages: callr, knitr, testthat, DBItest, dplyr and others. That points to the CI setup rather than to DBI. rcc itself, CRAN's checks and r-universe are all green.

Kirill decides. If nobody decides, the release goes ahead with rcc dev red.

  • Not a blocker. Investigate it in its own PR, in parallel with the release. (recommended)
  • Block the cut until rcc dev is green.
  • Ignore it for now.
  • Kirill asked in the session what was going on, and for a fix in cynkratemplate as needed.

Root cause: remotes::install_runiverse(), which comes from the unmerged branch r-lib/remotes@f-618-universe, builds a per-package repository URL, https://<universe>.r-universe.dev/<pkg>/bin/linux/…. r-universe now answers that URL with 403, so no package is downloaded and untar() fails (example run). The universe-wide URL https://<universe>.r-universe.dev/bin/linux/… still answers 200. The fix is in progress in cynkra/cynkratemplate, and DBI will pick it up with the next template sync.


Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: #752 (README goals and non-goals) in this release?

#752 adds a "goals and non-goals" statement to the README. It changes only the README, and its CI is green. Its base, #751, is already merged. The content is a statement of project policy, so the wording is the maintainer's call.

Kirill decides. If nobody decides, #752 stays open and does not block the release.

  • Include it once the maintainer has reviewed the wording. (recommended)
  • Defer it.
  • Kirill pushed to docs: State the goals and non-goals #752 and agreed in the session to a squash merge once it is green and a reviewer is happy. I ported his tweak to README.Rmd and index.md, because the tweak changed only the generated README.md.

Generated by Claude Code

@krlmlr

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Responded.

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Question: May the session merge the PRs in the release set?

The release set is now #766, #768, #760, #761 and #682, plus #688 (taken over in a PR of ours, gated on revdep). Kirill's rules allow a merge only when he asks for it.

#766, #768 and #682 come from forks. Their CI never produced a real result, because the smoke test on their old base skipped every step, so they need a rerun or an update from main. #760 and #761 are stacked: #761 sits on #760.

Kirill decides. If nobody decides, the PRs stay open, and the cut waits.


Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Clean reviews of the PRs to be merged (2026-11-28)

Each review ran in a fresh agent context, briefed with the diff and its risks but not with the author's conclusions.

PR Verdict Findings Evidence
#766 ready Low: selecting genericFunction is broader than standardGeneric. It adds 38 non-standard generics, such as dbConnect() and dbGetQuery(), and drops nothing. The test now covers more. test-methods.R on R 4.5.3: 64 passed, 0 failed. Merges cleanly with main. Not run on R 4.6 or 4.7.
#768 ready Low (all three predate the PR): the regex takes the first FROM, also inside a CTE or a string literal; using one table name for multi-table queries is undocumented; there is no CTE test case. otel tests: 29 passed, 0 failed. With main's R/otel.R, the new test fails 3 times, so it catches the bug. Merges cleanly.
#760 ready none Fixes the non-existent RSQLite(), RPostgreSQL() and RMySQL(). README.Rmd, README.md and index.md agree. I checked that SQLite, Postgres and MariaDB are exported. Merges cleanly.
#761 (stacked on #760) ready Low: the autolinks exist only in the rendered README.md, not in README.Rmd; index.md is left to downlit. Each link points at the topic that documents its generator; MariaDB() is documented on dbConnect-MariaDBDriver-method. Merges cleanly.
#682 changes needed Medium: the finalizer advice (R/dbDisconnect.R:14-17) does not answer #532. A finalizer on a package-level environment runs only at R exit with onexit = TRUE or on unload, and the text mentions neither. Low: no on.exit()/withr::defer() advice for short-lived connections; pool is not marked up; the text is not wrapped as #751 wraps it. The Rd is valid and the roxygen output matches the source. Merges cleanly. The red Windows job fails at install, not because of this PR.
#752 ready Medium fixed in 1c910f8 ("all classes are virtual"); two Lows accepted. The same claim elsewhere on main is now #782. 2 rounds. CI green at 1c910f8. Waits for Kirill's re-review.
#785 (release workflows) ready Two Lows accepted: pinned to @main; the release status workflow merges and bumps with GITHUB_TOKEN. The four files match RSQLite's. Inputs, permissions and secrets are consistent with r-release-actions.
#784 (#688 taken over) in progress The subsession is fixing the tests and running its own clean review. —

The fix for rcc dev, cynkra/cynkratemplate#179, went through 2 rounds, the second with nothing above Low (accepted limitations).

Merging still waits on this question. #682 has a question of its own below.


Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Question: What to do with #682 (connection lifetime docs)?

The clean review found a Medium issue in #682. Its advice is to register a finalizer on a package-level environment and keep the connection reachable (R/dbDisconnect.R:14-17). That does not solve #532: such an environment is never collected while the package is loaded, so the finalizer runs only at R exit with onexit = TRUE or in .onUnload(). In #532, Kirill pointed to a closure that captures con, and asked for docs "if we find a pattern that works". Nobody has validated such a pattern yet.

The PR comes from a fork, so a fix needs a branch of ours. Fixing it means a tested example of the closure or .onUnload() pattern, plus the Low items: on.exit()/withr::defer() advice for short-lived connections, marking up pool, and wrapping the text the way #751 does.

Kirill decides. If nobody decides, #682 stays out of the release, which then ships without it.


Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Dry runs of the release workflows on main (d3987b4, after #785)

Both runs behaved as expected:

  • release-status, dry run: success, with the message "No draft release of a CRAN submission in r-dbi/DBI, and no published one whose checklist pull request is open: nothing to do."
  • CRAN submission, dry run: it stopped in its first job, as intended, with the message "No release version: DESCRIPTION carries 1.3.0.9017 … Nothing was drafted or uploaded." Every later job was skipped.

release-gate and builders need a release version and a green R-CMD-check tarball, so their first real runs come after the cut.


Generated by Claude Code

krlmlr commented Nov 29, 2026 •

Copy link
Copy Markdown
Member Author

Question: How to make "release bullets in R/release-bullets.R, kept out of the build" the default for every package?

#792 now keeps R/release-bullets.R out of the tarball with ^R/release-bullets\.R$ in .Rbuildignore. Checked locally: pkgload::load_all() still sources the file, so usethis:::release_extra_bullets() finds the bullets, and the built tarball does not contain the file. DBItest's own R/release-bullets.R (r-dbi/DBItest#598) has no such entry yet, so it ships in DBItest's tarball. RSQLite has no release bullets.

The template sync of cynkra/cynkratemplate copies .github/ only, so the template cannot carry an .Rbuildignore line. The default therefore lives in the release handbook of krlmlr/r-pkg-maintain, whose skill a release session follows:

  • The adoption page (handbook/release/adoption/) gets a step: a package's extra checklist items live in an unexported release_bullets() in R/release-bullets.R, and the adoption adds ^R/release-bullets\.R$ to .Rbuildignore. Like the other adoption steps, this does nothing once done.
  • The artefacts page (handbook/release/artefacts/, "Checklist pull request") says where the bullets come from: pkgload::load_all(), since the installed package no longer has them.

This session may only read r-pkg-maintain, so the edit is Kirill's or another session's to make. DBItest would also need the same one-line .Rbuildignore PR.

Kirill decides. If nobody decides, only DBI has the pattern.


Generated by Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants