Repository navigation
Conversation
The R-hub container jobs get a mariadb:11.8 service container and an `[rs-dbi]` group in `~/.my.cnf` that points the default connection at it, the R-hub VM jobs and the revdep2 shards get ankane/setup-mariadb with the `test` database and time zone info, as in the `rcc` workflow. A stopgap for the 1.4.0 release (#660, #661), to be aligned with cynkratemplate later. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
Set RMARIADB_TEST_SERVER in both R-hub jobs, which start a server, so that the tests that need it run, DBItest included, and fail rather than skip where they cannot connect, once the test helpers read the variable. Correct the comment on ARM64 Windows: R-hub has no such platform. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
…ents The R-hub service container now gets the `utf8` `test` database and the Europe/Zurich global time zone that the VM jobs and `custom/after-install` set, applied by its health check, since the job container has no MariaDB client. The comment on RMARIADB_TEST_SERVER says that it takes effect once the gating from `v1.4-tide` is on main. The VM job explains why macOS needs no password user, and revdep2 says that its database step fails when the server is not reachable. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
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:17
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 1.4.0 release (#660, #661): the R-hub checks and the reverse-dependency checks had no database server, so the DBItest suite and the other server tests failed or skipped there, and no database code ran under the sanitizers or valgrind. To be aligned with cynkratemplate later. Only files under
.github/change, so the package tarball is unaffected. The branch is current withmain.The R-hub container jobs get a
mariadb:11.8service container with a health check, and a first step that adds an[rs-dbi]group to~/.my.cnfpointing the default connection at it. Like the VM jobs andcustom/after-install, the service has autf8testdatabase and the Europe/Zurich global time zone; since the job container has no MariaDB client, the health check applies that SQL inside the service container (from theRMARIADB_INIT_SQLvariable), so the service turns healthy only once it has, and it repeats idempotently with every health check. The R-hub VM jobs (macOS, Windows, Linux) and the revdep2 shards, which run on the runner itself, getankane/setup-mariadbwith thetestdatabase and time zone info, as in therccworkflow'scustom/after-installhook. R-hub offers no ARM64 Windows platform, the one runnersetup-mariadbdoes not serve. On macOS,setup-mariadbputs MariaDB'smysql_configon the PATH, so the package links MariaDB's client, which handles theunix_socketauthentication of the runner's user; the password user thatcustom/after-installcreates serves only its Homebrewmysql-clientconfiguration, which R-hub does not run. Themacos-arm64job of run 46317677961 confirms it:configureused MariaDB'smysql_configand linked-lmariadbfrom Homebrew's[email protected], and the check passed with DBItest; Intelmacoshas not been run and is expected to behave the same. In revdep2, the database step fails when the server is not reachable (shell: bashruns with-e), and its last call connects as the runner's user, as the default connection does.Both R-hub jobs set
RMARIADB_TEST_SERVER=true, for the test gating from thev1.4-tidebranch (tests/testthat/helper-server.R), which makes the server tests and DBItest fail rather than skip when the server is unreachable. It takes effect once that gating is onmain; until then nothing reads it, and DBItest runs wheneverGITHUB_ACTIONSis true. The revdep2 shards do not set it, since they check reverse dependencies, not RMariaDB's own tests.Accepted limitation: in revdep2, the two halves of a reverse dependency (CRAN release and dev build of RMariaDB) run concurrently against the same server and the same
testdatabase, so a revdep whose tests use fixed table names may collide with its other half and show a spurious difference. A database per half would need the cynkratemplate driver to give each half its ownHOMEor client options file, which it does not offer; revdep4 runs the halves sequentially and would not have this problem.revdep4 is not adapted, because it cannot be done cleanly from this repository. Each check runs in its own
docker runcontainer started by cynkratemplate'srevdepx/check-half.sh, which RMariaDB's workflow cannot extend: the container gets--network bridge, so its loopback is its own and a server thatsetup-mariadbstarts on the runner's localhost is unreachable; itsHOMEis a fresh per-check directory, so a~/.my.cnfwritten on the runner is not seen; and the environment it receives is a fixed list in that script, with no way to add a variable, a mount or adocker runoption. Giving revdep4 a server needs a change in cynkratemplate, for example a hook for extradocker runarguments or an options file mounted into each check container, plus a server reachable from the bridge network such as a MariaDB container on a user-defined network.Validation: actionlint 1.7.7 finds nothing in
rhub.yaml; forrevdep2.yamlandrevdep4.yamlit reports only whatmainalready has (theubuntu-26.04label it does not know, and more than tenworkflow_dispatchinputs, a limit GitHub has since raised). Earlier runs on the pre-merge head: R-hub https://github.com/r-dbi/RMariaDB/actions/runs/46317677961 on the default platforms plus macos-arm64 and windows: gcc-asan, clang-asan, clang-ubsan, valgrind, macOS and Windows each[ FAIL 0 | WARN 1 | SKIP 43 | PASS 9115 ], nosuggests[ FAIL 0 | SKIP 35 | PASS 254 ](no DBItest), rchk clean; no sanitizer report and valgrindERROR SUMMARY: 0 errors. revdep2 https://github.com/r-dbi/RMariaDB/actions/runs/46317709541 (which: most,depth: 1,commit: false, ref a6e3f9f): the shards reach the server (11.8.10-MariaDB-ubu2604 runner@localhost). These runs predate the merge ofmain, theRMARIADB_TEST_SERVERsetting and the service initialization; the merge brought no workflow changes. AnosuggestsR-hub run on the current head checks the service initialization: https://github.com/r-dbi/RMariaDB/actions/runs/46524652161.A clean review's first round is addressed here; the PR stays a draft until its fixes are reviewed.
https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
Generated by Claude Code