Repository navigation
Conversation
The R-hub container jobs get a postgres:17 service container and the PG* variables that point libpq at it, the R-hub VM jobs and the revdep2 shards get ankane/setup-postgres with a default database. A stopgap for the 1.5.0 release (#677, #678), to be aligned with cynkratemplate later. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
…lth check as postgres With the server, the nosuggests check failed the postgresWaitForNotify() example on library(callr) and hung re-building the work-queue vignette. CRAN's noSuggests check has no server either. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
This was referenced Nov 29, 2026
…evdep2's sampler comment with its step R-hub's server checks set RPOSTGRES_REQUIRE_SERVER=true, so that DBItest fails rather than skips once the test gating reads it. The `nosuggests` container leaves it unset, as it has no server. In revdep2, the server setup now comes before the comment block that belongs to the resource sampler. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
The gating that reads it is on the resubmission branch, not yet on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
krlmlr
marked this pull request as ready for review
November 30, 2026 22:10
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A stopgap for the checks of RPostgres (#677, #678), to be aligned with cynkratemplate later. The R-hub and reverse-dependency checks had no PostgreSQL server, so
test-DBItest.Rfailed in the R-hub containers, no database code ran under the sanitizers or valgrind, and revdeps whose tests use a server when one is there skipped those tests. Only files under.github/workflows/change. The branch is up to date withmain(merged, not rebased).What changed:
rhub.yaml,linux-containersjob: apostgres:17service container with a health check, and job-levelPGHOST,PGPORT,PGUSER,PGPASSWORDandPGDATABASEthat point libpq, and sopostgresHasDefault()and DBItest, at it. Thenosuggestsjob keepsPGHOSTempty and so has no server, like CRAN's noSuggests check: with a server, thepostgresWaitForNotify()example failed onlibrary(callr)there, and re-building the work-queue vignette hung for 40 minutes until the run was cancelled (run 46315715930).rhub.yaml,other-platformsjob (macOS and Windows VMs):ankane/setup-postgres@v1with Postgres 17 and a database named after the runner's user, as in therccworkflow'scustom/after-installhook.rhub.yaml, both jobs:RPOSTGRES_REQUIRE_SERVER=truewherever a server is started (not fornosuggests; the exclusion matches the matrix label, which r-hub/actions/setup emits asnosuggests, as the job name in run 46320044886 shows). The resubmission branchv1.5-reedgatestest-DBItest.Ron this variable, set bycustom/after-installthere, so that an unreachable server fails the check instead of skipping DBItest.maindoes not have that gating yet and still runs DBItest wheneverGITHUB_ACTIONSistrue, so the variable is unused onmaintoday and takes effect once the gating is merged.revdep2.yaml,testjob (every shard, on the runner host):ankane/setup-postgres@v1with Postgres 17, a database named after the runner's user, andPGHOST,PGPORT,PGUSERandPGDATABASEin$GITHUB_ENV; the step checks the connection withpsql.RPOSTGRES_REQUIRE_SERVERis not set there, since revdep2 checks the reverse dependencies and never runs RPostgres's own tests.revdep4.yamlis not adapted, because it cannot be done cleanly from this repository. Itstestjob runs on the VM, but every check half runs in its owndocker run --network bridgecontainer started by cynkratemplate'srevdepx/check-half.sh. That script forwards only a fixed list of environment variables (NOT_CRAN,RGL_USE_NULLand the_R_CHECK_*settings), with no extension hook, soPG*variables set in the workflow never reach the checks, and inside the container libpq's defaults (a Unix socket, userrevdepx) find no server. A server on the runner, fromankane/setup-postgresor aservices:container, also listens where the bridge network does not reach it by default. Adapting revdep4 needs a change in cynkratemplate: forwardPG*(or a configurable list) fromcheck-half.sh, and give the containers a route to a server, for example--add-host host.docker.internal:host-gatewaywith a server that listens on the bridge.revdep.yamlis unchanged as well.Validation:
rhub.yaml,revdep2.yamlandrevdep4.yamlload with Python'syaml.safe_load. actionlint 1.7.7 (with shellcheck) reports nothing in the changed lines, only theubuntu-26.04runner label it does not know yet and theworkflow_dispatchinput count, both already onmain.mainand beforeRPOSTGRES_REQUIRE_SERVER): https://github.com/r-dbi/RPostgres/actions/runs/46320044886.clang-asan,clang-ubsan,gcc-asanandvalgrind:[ FAIL 0 | WARN 0 | SKIP 34 | PASS 9220 ](before:[ FAIL 1 | WARN 0 | SKIP 118 | PASS 33 ]), Status OK, no sanitizer or valgrind reports;nosuggests(no server)[ FAIL 0 | WARN 0 | SKIP 119 | PASS 33 ]andrchkOK.windowsandmacos-arm64, at 2732950: https://github.com/r-dbi/RPostgres/actions/runs/46315718050, both[ FAIL 0 | WARN 0 | SKIP 34 | PASS 9156/9220 ], Status OK.which: most,depth: 1,commit: false,refresh-baseline: true, since the reusable CRAN baselines were checked without a server): https://github.com/r-dbi/RPostgres/actions/runs/46315762946, concluded success. Every shard'spsqlstep reached PostgreSQL 17.12.createdb "${USERNAME}"gets a role thatankane/setup-postgrescreated for that user. Thewindowsjob of run 46315718050 passed with the same step.Still a draft: the first clean review found two Medium issues, both fixed. The fixes have not been reviewed yet.
https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
Generated by Claude Code