Skip to content

chore: Release RPostgres 1.5.0 - #677

Merged
krlmlr merged 3 commits into
mainfrom
v1.5-quill
Nov 30, 2026
Merged

krlmlr merged 3 commits into
mainfrom
v1.5-quill

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Checklist pull request for the CRAN release of RPostgres 1.5.0, dated 2026-11-30. The release branch v1.5-quill was cut from main at 010b0f3. Its first commit is the release commit 1d2036b: version 1.5.0, Date: 2026-11-30, one NEWS.md section, and cran-comments.md removed. The review that led here is #625, with its handover in #625 (comment).

Kirill decided on 2026-11-29 that RPostgres is ready for a minor release too, and that for the releases of DBI, RMariaDB and RPostgres all the work is done the day before the release date. The release runs unattended. The session dispatches the runs today and submits on 2026-11-30 (UTC), once every run on this branch's head is green. This PR stays a draft until the real submission. Right after it, the PR is merged into main with a merge commit.

Checklist

Review (details in #625):

Release commit:

Runs on the branch head:

  • rcc (with cran-submission=true)
  • R-hub
  • Reverse dependencies (revdep2.yaml, commit=false)
  • Release gate
  • win-builder and macbuilder (R-devel, for information)

Submission:

  • Date commit, only if the dates no longer carry the submission date
  • Dry run of the submission
  • Real submission on 2026-11-30
  • Kirill follows CRAN's confirmation link
  • Merge main into this branch, then merge this PR with a merge commit
  • Development bump on main

Accept:

  • The release status workflow tags v1.5.0 and publishes the release once Posit's package manager lists 1.5.0
  • Compare CRAN's tarball with the submitted commit

Generated by Claude Code

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

R-hub gcc-asan on 1d2036b failed for two reasons, both caused by the job's container having no PostgreSQL server (https://github.com/r-dbi/RPostgres/actions/runs/46305394715/job/141480072209). No sanitizer report was found in the log.

  • tests/testthat/test-DBItest.R:6 runs DBItest::test_all() whenever GITHUB_ACTIONS == "true", so it tries to connect on any GitHub Actions job, R-hub's included. CRAN does not set that variable, so it is not a CRAN issue.
  • "checking running R code from vignettes" ran inst/doc/work-queue.R and failed at dbConnect(). In the CRAN tarball of 1.4.10, the code chunks of that file are commented out, so CRAN never runs them. Under investigation: whether the release tarball that rcc builds ships the code commented out as well. If it doesn't, CRAN's check would ERROR, and a fix lands on this branch before the submission.

Generated by Claude Code

krlmlr commented Nov 29, 2026 •

Copy link
Copy Markdown
Member Author

Resolved: Fix the vignette's server guard before submitting 1.5.0?

This follows up on #677 (comment). vignettes/work-queue.Rmd sets eval = RPostgres::postgresHasDefault() only in knitr::opts_chunk$set() inside its setup chunk. R CMD check re-tangles the vignette with a fresh purl() that never runs that chunk, so the tangled work-queue.R has live dbConnect() code whatever the tarball ships. This was reproduced locally: a tarball built without a server, whose inst/doc/work-queue.R is commented out, still ERRORs at con <- dbConnect(...) when check runs the vignette code without a server. On R 4.5, --as-cran skips that step (skip_run_maybe), which explains why CRAN shows 1.4.10, with the same setup chunk, OK on all 13 flavours. R-hub's R-devel run with --as-cran did run the code and failed. Whether R-devel changed this, or R-hub forces it, is not confirmed. The pattern is unchanged since 1.4.10, so it is not a regression in 1.5.0.

The fix is to put eval = RPostgres::postgresHasDefault() on each of the 14 chunk headers after the setup chunk. Static purl() evaluates chunk-header options, so the guard then holds. On a copy, purl() gave 0 live dbConnect() calls without a server and 3 with one. The fix moves the branch head, so rcc, R-hub and the gate run again, which is about an hour before the submission. The alternative is to move the vignette to a pkgdown-only article.

Kirill decides. If nobody decides, the session submits 1.5.0 as it stands, unless macbuilder's R-devel result from the builders run shows this vignette error. In that case it applies the fix first.

  • Submit as it stands. Fix the guard on main after the release, unless macbuilder's R-devel check shows the error (recommended)
  • Fix the guard on v1.5-quill now and rerun the release checks before submitting
  • Move the vignette to a pkgdown-only article on v1.5-quill now

DBI's vignettes DBI.Rmd:58 and DBI-advanced.Rmd:57 connect to a public server, relational.fel.cvut.cz, and rely on error = TRUE in opts_chunk$set(), which static purl() does not see either. On a check without network that runs vignette code, they would fail the same way. RMariaDB has no vignettes.


Generated by Claude Code

@krlmlr

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Fix guard.

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

R-hub with a PostgreSQL server, on the package code of the release head c324cdb, through the stopgap workflows of #680:

  • clang-asan, clang-ubsan, gcc-asan and valgrind: [ FAIL 0 | WARN 0 | SKIP 34 | PASS 9220 ] each, Status OK (run). Without a server it was [ FAIL 1 | SKIP 118 | PASS 33 ].
  • No sanitizer report: no runtime error:, no ==NNN==ERROR, and every valgrind ERROR SUMMARY is 0. rchk is OK.
  • windows and macos-arm64: FAIL 0, Status OK (run).
  • nosuggests runs without a server, as CRAN's noSuggests check does: [ FAIL 0 | SKIP 119 | PASS 33 ], OK. With a server there, the postgresWaitForNotify() example fails on library(callr) and the vignette rebuild hangs. That doesn't happen on CRAN, which has no server, and it isn't new in 1.5.0, so it's filed as Example of postgresWaitForNotify() needs callr, and the vignette hangs, in a noSuggests check with a server #681 rather than fixed here.

A revdep run with a server is going on c324cdb, with fresh CRAN baselines checked against the server too (run). Its results are a report, not a gate.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

CRAN submission: RPostgres 1.5.0, 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.

@github-actions

Copy link
Copy Markdown
Contributor

✅ CRAN submission: success

Run #3 (attempt 1, workflow_dispatch) on v1.5-quill, 2026-11-30 00:19 UTC.

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

@krlmlr
krlmlr marked this pull request as ready for review November 30, 2026 00:20
@krlmlr
krlmlr merged commit 6e50c18 into main Nov 30, 2026
54 of 59 checks passed
@krlmlr
krlmlr deleted the v1.5-quill branch November 30, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants