Skip to content

chore: Review for the next CRAN release - #577

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

Review of open issues and PRs ahead of the next CRAN release of RMariaDB (after 1.3.5). This PR has an empty diff and only tracks the review; decisions are question comments below.

Release 1.4.0: resubmitted to CRAN on 2026-12-01

Resubmitted commit: 6e869622b912bd216603d33ce5fe891f3b80ec34

  • Resubmitted unattended at 04:01 UTC on 2026-12-01, as Kirill decided, dated 2026-12-01, with DBI (>= 1.4.0) and every fixable finding of the release gate fixed (submission run, checklist chore: Resubmit RMariaDB 1.4.0 #665). The gate, rcc, R-hub and the dry run were green on that head; macbuilder was down all night; win-builder's results go to the maintainer by email.
  • CRAN mails the maintainer a confirmation link; the resubmission counts once it is followed.

Release 1.4.0: first submission on 2026-11-30

Submitted commit: a6e3f9f513b38fbb5ec7e69bc7ec0bebfe2f249a

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

State on CRAN and r-universe (checked 2026-11-28)

  • CRAN: 1.3.5 is OK on all 13 flavors. The only "Additional issue" is M1mac; its log was not readable from this session. There is no deadline. 1.3.5 was published 2026-02-06.
  • r-universe: 1.3.5.9007 (700608a) built and checked OK on all 13 binaries.

Changes since 1.3.5

  • User-visible, but missing from NEWS.md:
    • 9bc45da drops the Homebrew OpenSSL -L path in configure on macOS ("Fix CRAN mac warning"), the probable M1mac fix.
    • c111203 adds a hint on TLS connection error 2026 about MARIADB_TLS_DISABLE_PEER_VERIFICATION=1. The hint contains the typo "seting".
  • Everything in NEWS.md since 1.3.5 is CI, chore or docs.

Recommendations

Include:

Defer:

Close:

Adoption of krlmlr/r-release-actions

At Kirill's request (relayed by the coordinator session), three PRs brought this in, all merged on 2026-11-29: #580 drops the fledge marker from NEWS.md, which also stops the automatic dev bumps and generated NEWS on main; #578 syncs the workflows with cynkra/cynkratemplate, including the revdep commit input and release comment; #579 adds release-gate.yaml, builders.yaml, cran-submission.yaml and release-status.yaml, identical to RSQLite's apart from the package name.

Still open: the Date: field (set by the date commit at release time) and the DBItest gating on GITHUB_ACTIONS in test-DBItest.R, which would make the gate's server-less --as-cran check fail. Worked example: r-dbi/RSQLite#893.

Open work

Open questions

Coordinator session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
Current session (since 2026-11-29): https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
Previous session: https://claude.ai/code/session_01Hr1rd5deoKNru8psvRoyYR

https://claude.ai/code/session_01Hr1rd5deoKNru8psvRoyYR


Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: Release scope and version

CRAN shows RMariaDB 1.3.5 OK on all 13 flavors. The only "Additional issue" is M1mac, and there is no deadline. Since 1.3.5, main has two user-visible code changes: 9bc45da drops the Homebrew OpenSSL -L path in configure on macOS ("Fix CRAN mac warning"), and c111203 adds a hint to the TLS error message (error 2026). Everything else is CI, chore or docs. The open feature work (#413, unsigned integers) needs a design decision first; see the separate question on it.

A small maintenance release now ships the M1mac fix and the TLS hint, and serves as the first RMariaDB release through the new release workflows. Waiting for features delays the mac fix with no gain. Not releasing at all is safe, since nothing is due. The decision is the maintainer's. If nobody decides, nothing is released and the M1mac issue stays on the CRAN page.

Update 2026-11-29 14:10 UTC: main has gained many user-visible fixes since this was asked: the build against the MySQL 26.x client (#628), zero dates as NA (#598), and a series of dbBind() and fetch fixes (#607, #608, #610, #612, #616, #618, #620), plus the reexported DBI Arrow generics (#584, #588). That argues for a release rather than against one, and may make it 1.4.0 rather than 1.3.6 because of the new Arrow exports. Still open and candidates: the closed-connection and fetch-safety fixes #624 → #629, #632, and #623.

  • Maintenance release 1.3.6 now, with the two fixes plus the small docs PRs that are ready (recommended)
  • Wait for fix: promote unsigned integers to double to prevent overflow #413 or other features, then release 1.4.0
  • No release for now
  • Minor release 1.4.0 from main as it stands, dated 2026-11-30. Kirill decided in the session that DBI and RMariaDB are ready for a minor CRAN release each, dated the next day.

Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Question: NEWS entries and the typo in the TLS hint

The two code changes since 1.3.5, 9bc45da (macOS configure) and c111203 (TLS hint), are not in NEWS.md, because their commit messages are not in the conventional-commit style that fledge picks up. The new hint also misspells "seting" in src/DbConnection.cpp#L162.

A one-word fix plus two NEWS bullets ("Bug fixes": the macOS linker path; "Features": the TLS hint) would go in a small PR to main before the release branch. This costs one CI round. If nobody decides, the typo ships and NEWS omits the only user-visible changes.

  • Small PR to main: fix the typo and add both NEWS bullets (recommended)
  • Only add the NEWS bullets at release time, leave the typo
  • Leave both as they are

Generated by Claude Code

krlmlr commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: Docs PRs #560, #561, #562

The three now form one stack, #560 → #562 → #561, merged from the bottom. #560 (goals and non-goals) has its review comment addressed: RMySQL is no longer called "old". #562 derives README.md and index.md from a new README.Rmd. #561 (retire dead links in README and CONTRIBUTING, Connector/C now linked to its download page on mariadb.org) was restacked onto #562 as asked on 2026-11-29, so its README fixes now live in README.Rmd. Dead links can raise a URL NOTE in CRAN's incoming checks, so #561 has a direct release benefit, and it can now only merge after #562.

Each layer has had a clean review, and the stack had one at its top; none found anything above Low. Merging all three costs a look at each diff. If nobody decides, all three stay open, and the release goes out with the dead links unless CRAN's URL check passes on them anyway.

Resolved by Kirill merging all three on 2026-11-29 (#560 as 575a4cc, #562 as 8ab4bf0, #561 as 39f93f6).


Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Question: Unsigned integers, #413 and #412

#413 now adds a new unsigned_int = argument to dbConnect() (+225/−10 in 19 files). It conflicts with main and needs a rebase. An earlier comment on it asks for a type-mapping convention shared with the other DBI backends before RMariaDB adds its own argument. #412 is the matching issue, and duplicates older reports.

Including it would add API that is hard to change later, and would turn a maintenance release into a feature release. Deferring keeps the release small and leaves the design open. If nobody decides, it stays deferred.


Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Question: Close stale PRs and issues

These look stale or superseded:

The older WIPs #222, #233 and #271 could be deferred or closed as well. Closing them is housekeeping, independent of the release. Each close needs a comment that says why, and several of these have other watchers who would be notified. If nobody decides, they all stay open.


Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Question: Adopt the release workflows from krlmlr/r-release-actions

RMariaDB has none of the four caller workflows that RSQLite 3.54.1 used (r-dbi/RSQLite#893): release-gate.yaml, builders.yaml, cran-submission.yaml, release-status.yaml. R-CMD-check.yaml already has the cran-submission input and the release-branch filter, as RSQLite does. Adoption needs:

  • the four thin callers, copied from RSQLite and pointed at r-dbi/RMariaDB;
  • a Date: field in DESCRIPTION, which the gate and the submission require and which RMariaDB lacks;
  • one complete dry run on main before release day.

The callers pin @main, as RSQLite does, because r-release-actions has no tagged release yet. One RMariaDB-specific snag: tests/testthat/test-DBItest.R#L1 runs the full DBItest suite whenever GITHUB_ACTIONS is "true". The release gate's --as-cran check runs without a database server, so every gate report would fail on connection. Gating on a server marker set by custom/after-install, and asserted in CI so a missing server still fails there, fixes that.

If nobody decides, the release would have to go out the old way.

  • Adoption PR to main first: the four callers, Date:, and the DBItest gate on a server marker; then a dry run (recommended)
  • Adoption PR without the DBItest change; accept a red gate report each round
  • Release the old way this time, adopt later

Generated by Claude Code

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Question: Release mechanics: path, branch name, cran-comments.md, M1mac log

  • Path: the default path is a release branch with a draft checklist PR; the fast path is one PR to main. This is the first adoption, with a new workflow set, so the default path gives room for fixes.
  • Branch name: v1.3-<word> matches the release-branch filter in R-CMD-check.yaml, so PRs into the branch get checked.
  • cran-comments.md: it still describes 1.3.5. The process prefers deleting it in the release commit and recording the CRAN policy review in the checklist PR; RSQLite kept its copy.
  • M1mac: this session could not read the M1mac log on CRAN, because its host is outside the network allow-list. That the configure fix addresses it is an inference. Someone with access should look before submitting.

If nobody decides, the release follows the default path with the recommended choices below.

  • Default path, branch v1.3-<word>, delete cran-comments.md, maintainer checks the M1mac log before submitting (recommended)
  • Default path, but keep and update cran-comments.md
  • Fast path: one PR to main

Generated by Claude Code

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Question: Merge conflicts on the fork PRs #413 and #291

Kirill asked on 2026-11-29 to resolve merge conflicts. The docs stack #560 → #562 → #561 has none. Of the open PRs, four conflict with main. #222 and #325 are branches in this repository with no other participants, so main is being merged into them. #413 (unsigned integers, from philtran/RMariaDB) and #291 (clang-format, from Antonov548/RMariaDB) come from forks, and their authors take part in the threads. Resolving those means pushing to someone else's branch (only possible if "allow edits by maintainers" is on), which notifies them. It would also do work that the open questions already recommend not doing: #413 is to be deferred and #291 closed as superseded.

The cost of resolving is a merge on each fork branch, plus a rebuild and checks for #413's 19 files. If nobody decides, both stay conflicted, which does not affect the release.


Generated by Claude Code

krlmlr commented Nov 29, 2026 •

Copy link
Copy Markdown
Member Author

Question: Classed server errors, as in r-dbi/RPostgres#666

r-dbi/RPostgres#666 (merged into RPostgres's main as d34e76a, checked on 2026-11-29) turns server errors into classed rlang conditions, RPostgres_error_<SQLSTATE> plus RPostgres_error, with the SQLSTATE and libpq's detail fields on the condition and call set to the DBI verb, so that users can dispatch on the code instead of matching message text. Message text stays unchanged.

RMariaDB has no structured errors yet: every server error is a plain string, raised in throw_error() in src/MariaResultPrep.cpp (prepare, execute, fetch), in the simple-protocol query path in src/DbConnection.cpp, and at connect. The MySQL C API offers the error number and a 5-character SQLSTATE (mysql_stmt_sqlstate(), mysql_sqlstate()) but none of Postgres's detail fields, so the RMariaDB version would carry errno and sqlstate only. rlang is already a dependency. The estimate is 150–250 lines plus server-dependent tests, at medium-low risk: cleanup before the R error is signalled, the per-dbFetch() overhead of the handler, and the Connector/C differences in where the error lives.

The user-visible change is a new condition class, which is additive, but it is a new API to keep stable. If nobody decides, nothing happens and RMariaDB stays as it is.

  • Port it after RPostgres#666 is merged, reusing its final design, as a separate PR not tied to the next release (recommended)
  • Port it now, in parallel with chore: Require DBI >= 1.4.0 #666
  • Don't port it

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

Development

Successfully merging this pull request may close these issues.

Queries with EXTRACT (X FROM date_column) not working with MariaDB SSL connection to MySQL

2 participants