Skip to content

chore: CRAN release of RSQLite 3.54.1 - #893

Merged
krlmlr merged 26 commits into
mainfrom
claude/cran-release
Nov 28, 2026
Merged

krlmlr merged 26 commits into
mainfrom
claude/cran-release

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Release pull request for the next CRAN release of RSQLite 3.54.1, cut from main with no new features. This PR is the home of the release state: the checklist below, the results of the checks, and each open question as its own comment.

The process is the one documented in the header of .github/workflows/cran-submission.yaml; this branch takes the role of the release branch. Nothing that publishes or submits (the CRAN submission, the tag, the GitHub release, the merge) happens without an explicit go-ahead from the maintainer.

Checklist

Check results

First round, on 85af543 (before #890 and #894):

  • Release gate: gate success; R CMD check --as-cran Status OK; spelling lists only technical terms and names; documentation: 16 help pages without \value (resolved: docs PR).
  • R-hub: rchk findings in sqlite_http_stats() (resolved: fix: Keep the elements of sqliteHttpStats() protected while its list is built #894) plus "too many states" in the bundled SQLite (left as is); nosuggests fails only at rebuilding the vignette, because rmarkdown is itself suggested (not a blocker).
  • win-builder (R-devel, R-release, R-oldrelease): clear, per the maintainer.
  • revdep2: cancelled for the restart with fix: dbFetch() raises "out of memory" instead of crashing when SQLite cannot convert a text value #890.
  • URL check: unverified. The release gate's log shows no output of urlchecker::url_check(), and the session's container cannot reach the documentation hosts. To run it: Rscript -e 'urlchecker::url_check()' in a checkout of this branch.

Review of main (2026-11-14)

  • CRAN checks of 3.53.3: OK on all 13 flavors, no additional issues.
  • r-universe: 3.53.3.9023 builds and checks on all 15 configurations.
  • CI on main over two weeks: green on push; two scheduled failures, both green on the next run.
  • Reverse dependencies: last run 2026-09-14 against 3.53.3.9011 (262 packages, "most", no new problems, one timeout in GitStats' own tests). The row.names deprecation (feat: Deprecate setting the row.names default via pkgconfig, and move pkgconfig to Suggests #805) is the main risk for dependents.
  • 139 days since the last release (3.53.3, 2026-06-28).

NEWS.md

One section # RSQLite 3.54.1: the pkgconfig deprecation (#805) under breaking changes; the SQLite upgrade (#827) and the opt-in check_utf8 under features; two bug-fix bullets, condensed by the maintainer in 01edcac. CI, testing, documentation and README-only entries are left out.

Open questions

None open on this PR. Still with the maintainer: merging #899 (URL check), then the go-ahead to submit after the final dry run.

https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC


Generated by Claude Code

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: version number of this release

The last CRAN release is 3.53.3, and since 3.52.0 the RSQLite version has followed the bundled SQLite version. main now bundles SQLite 3.54.1 (#827), so the natural version is 3.54.1. The release carries bug fixes, the check_utf8 option, the UTF-8 validator and the pkgconfig deprecation, but no Arrow or further UTF-8 work. The cut (DESCRIPTION, NEWS.md heading, cran-comments.md) goes ahead with the recommended option and is changed if you pick another; nothing is submitted before you say so.

  • 3.54.1, matching the bundled SQLite (recommended)
  • 3.53.4 or another patch version, decoupled from SQLite
  • Hold the release

Generated by Claude Code

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: who opens the release checklist issue

The process in the header of .github/workflows/cran-submission.yaml asks for a checklist issue whose body carries <!-- release-checklist: RSQLite 3.54.1 -->, opened by an owner, member or collaborator; cran-release.yaml reports to it each night and closes it once the release is published, and ignores an issue opened by a bot or workflow. This PR already holds the checklist, so the issue would mostly duplicate it, but the nightly report has no other target. If this session opens it, it is opened through your GitHub connection and counts as yours.

  • This session opens the checklist issue now, linking this PR, and records review findings there as well as here (recommended)
  • You open it yourself; this session only keeps this PR current
  • Skip it; the nightly report then only warns

Generated by Claude Code

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: which release process wins where the two disagree

This release follows the process in the header of .github/workflows/cran-submission.yaml, because the release pages of the maintainer's release handbook describe a toolkit that does not exist yet (every page there is marked status: draft, and none of its scripts or skills are available). Where the two disagree:

  • Tags: the handbook tags each submission vX.Y.Z-attemptN and creates vX.Y.Z only at CRAN acceptance; here, cran-submission.yaml tags vX.Y.Z at submission, never moves it, and a rejection becomes a new patch version.

  • Checklist state: the handbook keeps it in a committed .release/checklist.md (excluded by .Rbuildignore); here, it lives in a checklist issue plus this PR.

  • Branch: the handbook bumps the version on main and submits from main; here, the release is cut on a branch and merged back with a merge commit.

  • NEWS.md: the handbook keeps an additive (development version) section with a pointer to a release-drafter draft; here, fledge's dated sections are folded by hand, and after the release main gets a Changes since vX.Y.Z compare link.

  • Publishing: both publish the GitHub release after acceptance, but here cran-release.yaml waits until Posit's package manager serves the version, and the published body is the NEWS section, without the list of binary sources.

  • Checks: both run R-hub, win-builder, revdeps and URL checks; here, they are dispatched as workflows on the branch (rhub.yaml, winbuilder.yaml, revdep.yaml, release-gate.yaml, which covers URLs and spelling).

  • Follow the repository's own process for this release, and record the differences in the handbook as notes for the toolkit design (recommended)

  • Follow the handbook where it can be done by hand (attempt tags, .release/checklist.md), adapting the repository's workflows

  • Hold the release until the toolkit exists


Generated by Claude Code

Remove fledge's marker from NEWS.md
and fold the development sections into one section for 3.54.1,
without a date, as the `tag` job of the CRAN submission workflow expects.
Set the version in DESCRIPTION by hand,
and update cran-comments.md to name the new version.

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

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: unmerged bug-fix PRs and known crashes

The release is cut from main as it stands. Several bug-fix PRs are open and not in the cut: #830 (never restart a statement after an error), #850, #852, #885, #890 (fixes the out-of-memory crash in dbFetch(), #889), and the HTTP VFS PRs #832 and #839–#843. #891 (a crash in sqliteCopyDatabase()) and #886 (a 24-byte leak) have no fix PR yet. None of them is a regression since 3.53.3 as far as the issues say, and CRAN's checks of 3.53.3 are clean on all flavors. Pulling any of them in means merging into main, then merging main into this branch and running every check again; the checks started now cover 85af543.


Generated by Claude Code

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: NEWS.md wording after the clean review

A clean review of the cut (85af543) found nothing that blocks cran-tag.sh or the release gate, and no user-facing change lost. It raised one Medium and a few Low points on the wording of the new section, all editorial, so they are collected here rather than pushed while the checks run on 85af543. Whatever you pick goes into one commit, followed by a rerun of the release gate and the dry run (the code checks stay valid, since only NEWS.md changes).


Generated by Claude Code

@krlmlr

krlmlr commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

I responded to some questions. Merge, update and restart the revdepcheck process.

krlmlr commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

Noted. Resolved so far: version 3.54.1, and #890 goes into this release. I cancelled the reverse-dependency run on 85af543, since it would check a commit without #890.

#890 is mergeable (clean), with a green smoke test and codecov; the full rcc matrix was skipped on it, so the full matrix on this branch after the merge is its first full run. Merging needs your confirmation in the chat of the release session, since this session does not merge on a GitHub comment alone. Once confirmed: squash-merge #890 into main, merge main into this branch, add the #890 bullet to NEWS.md, and rerun rcc, R-hub, release gate, win-builder and revdep2 on the new head.

Still open: the checklist issue, which process wins, and the NEWS.md wording.


Generated by Claude Code

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: release gate fails on help pages without \value

The Documentation job of the release gate fails on 85af543: "One or more documented functions have no \value section." Sixteen help pages have a \usage section and no \value: SQLiteConnection-class, SQLiteDriver-class, SQLiteResult-class, datasetsDb, dbBeginTransaction, dbListResults, dbWriteTable, fetch, initExtension, isIdCurrent, keywords-dep, query-dep, sqlite-transaction, sqliteCopyDatabase, sqliteHasHttpVFS, sqliteQuickColumn. The cut does not touch man/; the same pages lack \value on main, and 3.53.3 was accepted with them. CRAN's reviewers ask for \value mostly on new submissions, but can ask on any. The process counts every finding as a blocker unless the checklist explains it.

  • Add @return to the roxygen of these pages in a separate docs PR into main, merged before the submission and pulled into this branch together with fix: dbFetch() raises "out of memory" instead of crashing when SQLite cannot convert a text value #890 (recommended)
  • Explain it in the checklist as pre-existing and accepted by CRAN before, and submit without the change
  • Add @return only to the exported, non-deprecated functions (datasetsDb(), dbWriteTable(), sqliteCopyDatabase(), sqliteHasHttpVFS(), initExtension(), the class pages), explain the rest

Generated by Claude Code

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ win-builder upload: success

Run #3 (attempt 1, workflow_dispatch) on claude/cran-release at cac50de183, 2026-11-14 09:27 UTC.

  • upload: success

Uploaded RSQLite_3.54.1.tar.gz to: R-devel R-release R-oldrelease. win-builder mails its results to the maintainer in DESCRIPTION, 15 to 30 minutes after the upload.

The run's summary page has the details. Later runs of this workflow update this comment.

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: rchk findings in the R-hub run

The rchk job on 85af543 fails. The package installs and rchk runs; the job fails on rchk's own findings, which its last step does not print (it shows an empty list between two rules, then exit 1):

  • [UP] findings in sqlite_http_stats() (src/httpvfs_stats.cpp): cpp11::writable::r_vector<SEXP>::push_back() called with an argument that another allocation can collect.
  • "too many states (abstraction error?)" in sqlite3_str_vappendf and sqlite3VdbeExec, the bundled SQLite's largest functions, a known limit of rchk.

Not this branch's doing: src/httpvfs_stats.cpp is unchanged since v3.53.3, and this is the first R-hub run here that includes rchk (the June runs used the old setup without it). CRAN's check page for 3.53.3 lists no additional issues, so CRAN's own rchk has not flagged it so far, but CRAN may run it on the new version. The [UP] finding is a real, if unlikely, protection bug in an optional HTTP feature.

  • Fix the protection in sqlite_http_stats() in a separate PR into main (build each element before the list, or protect it), and pull it in with fix: dbFetch() raises "out of memory" instead of crashing when SQLite cannot convert a text value #890; leave the SQLite "too many states" lines as they are (recommended)
  • Release without the fix; record it as a known finding in the checklist and fix it in the next release
  • Also make the rchk step print its findings (a fix to the template, cynkra/cynkratemplate, not here)

Generated by Claude Code

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

The R-hub nosuggests job on 85af543 fails with one ERROR, at "checking re-building of vignette outputs": "there is no package called 'rmarkdown'". Everything before that step passes, tests and examples included, so the move of pkgconfig to Suggests (#805) holds up without suggested packages. The vignette toolchain (knitr, rmarkdown) is itself suggested, so this job cannot rebuild the vignette by construction. Since 3.53.3 the vignette only gained line breaks in its prose; its engine and setup are unchanged, and CRAN's check page lists no "noSuggests" issue for 3.53.3. Not this branch's doing, and not a release blocker in my reading; recorded in the check results. A fix, if wanted, belongs in the template's R-hub configuration for that platform, not here.


Generated by Claude Code

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Release gate: RSQLite 3.54.1 is ready

Run #14 (attempt 1, workflow_dispatch) on claude/cran-release, 2026-11-28 00:37 UTC.

Required

  • ✅ Version: 3.54.1 is a release version.
  • ✅ Remotes: DESCRIPTION has no Remotes field.
  • ✅ Dependencies: Depends, Imports, LinkingTo, Suggests and Enhances need nothing outside CRAN, checked against CRAN's package database and Bioconductor's indexes.
  • ✅ NEWS.md: one section # RSQLite 3.54.1 (2026-11-28), dated as DESCRIPTION, 0 days ago.

Reported, not enforced

  • ✅ CRAN deadline: CRAN set no deadline for RSQLite.
  • ✅ Help pages: every page with a \usage section has a \value section.
  • ⏭️ README: not run: knitting README.Rmd failed with status 1.
  • ✅ URLs: urlchecker flags none.
  • ⚠️ Spelling: spelling flags words; add the right ones to inst/WORDLIST.
  • ✅ R CMD check: RSQLite_3.54.1.tar.gz: OK with CRAN's incoming checks.
README
Error in loadNamespace(x) : there is no package called ‘cynkratemplate’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Spelling
DESCRIPTION does not contain 'Language' field. Defaulting to 'en-US'.
  WORD            FOUND IN
BH              NEWS.md:408
CentOS          NEWS.md:393
cmake           NEWS.md:295
cpp             NEWS.md:257,267,281
DBI's           index.md:42
                README.md:41
                README.Rmd:54
dbitemplate     NEWS.md:211
deduplicating   NEWS.md:19
GitPod          NEWS.md:279,295
icpc            NEWS.md:301
inlining        NEWS.md:408
lifecycle       sqliteHttpConfig.Rd:27
                sqliteRemote.Rd:20
memoise         NEWS.md:395
NUL             SQLite.Rd:96,99
pkgconfig       NEWS.md:5
plogr           NEWS.md:79
prefetch        sqliteHttpConfig.Rd:17
Prefetch        sqliteHttpConfig.Rd:36
rcc             index.md:12
                README.md:11
                README.Rmd:24
Rcpp            NEWS.md:281,638
Rtools          NEWS.md:19
testthat        NEWS.md:305
transcoded      SQLite.Rd:102
uuid            NEWS.md:177
valgrind        NEWS.md:165
vendored        NEWS.md:48
www             SQLite.Rd:85
YMD             SQLite.Rd:128

The run's summary page has the details. Later runs of the release gate update this comment.

@krlmlr

krlmlr commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

Winbuilder came back clear. I responded to comments.

The revdepchecks (with the revdep4 workflow) are time critical, prepare the missing PR and run revdepchecks on that.

…t is built

rchk reported that `sqlite_http_stats()` passed freshly allocated scalars
to `push_back()`, which allocates and could collect them.
Build the list from named arguments instead,
which hold each element in a protected `cpp11::sexp`.
The result is unchanged.

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

krlmlr commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

Noted. The branch now carries main with #890 and the rchk fix #894 (PR into main, clean review found nothing above Low; the pre-existing narrowing of bytes_fetched is #895). NEWS.md follows your answer (6480602). revdep4 (most, depth 1) runs on 6480602 under 3.54.1, together with rcc and R-hub. The docs PR for \value is in preparation; it changes no code, so the revdep run stays valid, and the release gate and win-builder run again once it is merged in.


Generated by Claude Code

krlmlr commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

The smoke test of rcc on 6480602 fails three tests in test-httpvfs.R (lines 39, 109 and 162): dbConnect(SQLite(), url, flags = SQLITE_RO) against the tests' local HTTP server ends in "unable to open database file". The same job passed on 85af543 and on main before #890, so this is a blocker until shown otherwise; the branch gained #890, #894 and NEWS.md in between. Investigating whether it is deterministic and which change causes it. The job's commit-back step also failed, because CI's formatting commit had already moved the branch; that part is harmless.


Generated by Claude Code

krlmlr commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

The win-builder upload on cac50de failed at the first queue: curl: (25) Failed FTP upload: 550, so R-devel, R-release and R-oldrelease received nothing. The FTP server refused the file; win-builder typically does so while a file of the same name is still in its incoming directory. Nothing in the package is involved. Since the HTTP VFS failure above needs a fix first, win-builder runs again on the commit that carries it, rather than being re-run now.


Generated by Claude Code

krlmlr commented Nov 27, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: include the fix for #903 in 3.54.1?

Resolved: the fix (#905) is in this branch through the merge of main in e184fef, which the maintainer asked for; NEWS lists it under bug fixes.

#903 is reproduced on GitHub Actions (run, record in #904): on Windows with R 4.2 (rtools42), building from source fails to link with undefined reference to `gai_strerrorW', for main, for this release branch, and for CRAN's 3.53.3 alike. With the current Rtools it links. The cause is the deduplication of the libcurl flags in configure.win, which keeps the first -lws2_32, before -lssl -lcrypto; a fix that keeps the last occurrence is being tested in #904, and #905 adds a permanent Windows oldrel-4 check.

This is not a regression of 3.54.1, and CRAN's own Windows checks use the current Rtools, so it does not block the submission itself. It does break source installs for R 4.2 users on Windows, such as the oldrel-4 jobs of packages that depend on RSQLite.


Generated by Claude Code

krlmlr commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

Reverse dependencies: no new problems

revdep4 run 46043100169 on 8c32e36 (strong reverse dependencies, depth 1): 121 packages checked, 0 new problems, 0 failures to check. The report is in 3956ddf; revdep/failures.md is now empty, so roadDB, which timed out in the earlier run, passes.

Started on 3956ddf: R-CMD-check with cran-submission, the release gate, win-builder (R-devel, R-release, R-oldrelease) and R-hub.


Generated by Claude Code

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

❌ Builder checks: RSQLite 3.54.1

Run #4 (attempt 1, workflow_dispatch) on claude/cran-release, 2026-11-28 00:30 UTC.

  • Commit: d0baff1
  • Tarball: RSQLite_3.54.1.tar.gz, SHA-256 b1634709f68afba760972e70d0861169da3222b4c2346ed432369187b713776d
  • win-builder R-devel: uploaded; the results arrive by email to the maintainer
  • win-builder R-release: uploaded; the results arrive by email to the maintainer
  • win-builder R-oldrelease: uploaded; the results arrive by email to the maintainer
  • macbuilder r-devel: no result, job failure

These checks inform the release and do not gate it. Later runs of this workflow update this comment.

krlmlr commented Nov 27, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: add rmarkdown to VignetteBuilder in 3.54.1?

Resolved: included in 4f06c34, as the maintainer asked to bring the pending VignetteBuilder change in.

R-hub's nosuggests check fails at "re-building of vignette outputs" with "there is no package called 'rmarkdown'". This is a real finding, not noise: the vignette uses %\VignetteEngine{knitr::rmarkdown}, and "Writing R Extensions" asks for both knitr and rmarkdown in VignetteBuilder in that case. DESCRIPTION lists only knitr. R CMD check keeps the VignetteBuilder packages in its depends-only library, so with rmarkdown listed there, nosuggests and CRAN's additional noSuggests check can rebuild the vignette.

The fix is one line in DESCRIPTION (VignetteBuilder: knitr, rmarkdown). It moves the release head, so R-CMD-check, the release gate and win-builder run again; the release is on hold anyway until the HTTP VFS question (#897) is answered, which may need a commit of its own.

  • Include it in 3.54.1, together with any fix the HTTP VFS investigation needs (recommended: one more round of checks covers both)
  • Leave it for the next release, as a PR into main

Generated by Claude Code

krlmlr commented Nov 27, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: ship 3.54.1 without the HTTP VFS stack (#832, #839–#843)?

Resolved: the maintainer merged #832, #839, #840 and #841 into main, and 4f06c34 brings them into this branch; #842 and #843 stay for a later release.

R-CMD-check on 3956ddf prints FAIL 3 for test-httpvfs.R but passes. Both causes are known and fixed in open PRs that are not on this branch:

sqliteRemote() as shipped reads a database served from another process (verified locally), so the failures are a test-harness problem, not a regression. The HTTP VFS has been in RSQLite since 3.53.2; its known bugs (#834, #835, no transfer timeout until #842, default extensions until #840/#841) are not new in 3.54.1. The tests are skipped on CRAN.


Generated by Claude Code

krlmlr commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

macbuilder r-devel failed in builders run 46064177368 because the submission endpoint answered HTTP 502 (https://mac.r-project.org/macbuilder/v1/submit): an outage on the server side, not a finding about the package. The win-builder uploads for R-devel, R-release and R-oldrelease went through. Builder checks inform the release and do not gate it; macbuilder will be retried with the next builders run.


Generated by Claude Code

Brings in #832, #839, #840, #841 and the workflow sync #912; adds the HTTP VFS fixes to NEWS,
and declares rmarkdown as a vignette builder, as #915 does on main.

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

krlmlr commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

Release run on 4f06c34, unattended

The maintainer asked to bring in the updated main and run all steps of the release process unattended.


Generated by Claude Code

krlmlr commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

Reverse dependencies on 4f06c34: no regressions

  • revdep4 strong, depth 1: 121 packages, 0 new problems, 0 failures to check (7994212).
  • revdep4 most, depth 1: 278 packages including Suggests, 1 new problem, 0 failures to check (7693e07). The one problem is GitStats, whose GitLab tests make live calls to gitlab.com; the same failures were reproduced with RSQLite 3.53.3 earlier.

Next: the date commit d0baff1 (2026-11-28), then R-CMD-check with cran-submission, the release gate, win-builder, R-hub, the dry run and the submission.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

CRAN submission: RSQLite 3.54.1, attempt 1

CRAN has emailed the maintainer; the submission counts once the link in that email is followed.
Nothing edits this comment: reply to it with CRAN's answer and what fixed it.

Keep the submitted version and NEWS section, and take the tidied DESCRIPTION from main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
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