Skip to content

test: Declare DBItest 1.8.3.6 in the DBItest context - #854

Merged
krlmlr merged 2 commits into
mainfrom
claude/dbitest-1836
Nov 13, 2026
Merged

krlmlr merged 2 commits into
mainfrom
claude/dbitest-1836

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

DBItest gates its newest specs behind the dbitest_version tweak, with a counter of its own (1.8.0.1 to 1.8.0.50, then 1.8.3.1 to 1.8.3.6). r-dbi/DBItest#571 gated six specs for requested Arrow schemas at 1.8.3.1 to 1.8.3.6: arrow_fetch_arrow_schema, arrow_get_query_arrow_schema, arrow_get_query_arrow_schema_zero_rows, arrow_fetch_arrow_chunk_schema, arrow_read_table_arrow_64_bit and arrow_send_query_schema_stable. This PR declares dbitest_version = "1.8.3.6" in tests/testthat/helper-DBItest.R, the highest gate RSQLite has been run against, so that the six specs run and a spec DBItest gates later stays off until RSQLite has been checked against it. It is the main counterpart of the declaration in #831, which sits on the old Arrow stack and also changes a second, Arrow-specific context that main does not have; only the default-context line is brought over.

The six specs need a DBItest newer than the CRAN release 1.8.3, which gates nothing above 1.8.0.50, so with the released version nothing changes. They are in the development version, 1.8.3.9013 on r-universe (https://r-dbi.r-universe.dev) and GitHub r-dbi/DBItest. The declared value is deliberately 1.8.3.6 and not the development version number, because the gates are compared with as.package_version() and a declaration of 1.8.3.9013 would also switch on every spec gated at 1.8.3.7 or later before RSQLite has run it. DESCRIPTION keeps DBItest (>= 1.8.0): declaring a version above the installed one is harmless. No Remotes: or Config/Needs entry is needed, because the development DBItest is only installed by the rcc dev job (nightly on main), which installs it from r-universe itself, and R-CMD-check keeps installing CRAN's.

Tested by running tests/testthat/test-DBItest.R (the default context) after pkgload::load_all(), with DBItest 1.8.3 from CRAN and with 1.8.3.9013 installed from r-universe into a separate library, on main and on this branch:

  • With DBItest 1.8.3, both give 658 tests and 9677 expectations, 59 skipped, no failures or errors (9678 and 58 when RSQLite is installed, since the reexport spec then runs).
  • With DBItest 1.8.3.9013 on main, 664 tests and 9684 expectations, 64 skipped, no failures, and the six specs skipped.
  • With DBItest 1.8.3.9013 on this branch, 664 tests and 9787 expectations, 58 skipped, no failures or errors, and all six specs run and pass: arrow_send_query_schema_stable (61 expectations), arrow_fetch_arrow_chunk_schema (18), arrow_fetch_arrow_schema, arrow_get_query_arrow_schema and arrow_get_query_arrow_schema_zero_rows (9 each) and arrow_read_table_arrow_64_bit (3). DBI's default Arrow methods are enough for them, as test: Declare DBItest 1.8.3.6 in the DBItest contexts #831 reported.

The specs do not run in this PR's checks, since R-CMD-check installs DBItest from CRAN. They run in the rcc dev job (nightly on main, and on cran-* pushes, v* tags and manual dispatch) and in DBItest's own backends job, which clones RSQLite's default branch. The copies of this helper in DBItest and DBI still declare 1.8.1 until they are regenerated.

The plan to rework the Arrow stack splits this out as a separate pull request from main, since nothing else depends on it.

Reviewed in a clean review, which found nothing above Low; see the accepted limitations. Squash-merge, so that the first commit, which carries a regenerated src/cpp11.dd, does not reach main.


Generated by Claude Code

DBItest gates six specs for requested Arrow schemas at 1.8.3.1 to 1.8.3.6.
Declare the highest of these, so that the specs run with the development DBItest
and a spec gated later stays off until RSQLite has been checked against it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
The previous commit picked up a rebuilt dependency list with absolute paths by mistake.

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

krlmlr commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Review of this pull request at 197ca59, by a Claude Code reviewer with clean context that read the description, both commits and their net diff against main at 3b7bea3, the helper and test-DBItest.R, RSQLite's workflows, and DBItest's gating code at 4fd7a6ac (1.8.3.9013, DBItest main) and at the v1.8.3 tag; built and installed this branch and its base into separate libraries; and ran the DBItest context and the full suite as listed below. I posted nothing on GitHub myself.

What was run

  • R CMD INSTALL of 197ca59 and of 3b7bea3 into separate libraries.
  • tests/testthat/test-DBItest.R after pkgload::load_all() with NOT_CRAN=true, on main and on this branch, with DBItest 1.8.3 (CRAN) and 1.8.3.9013 (r-universe, RemoteSha 4fd7a6ac), comparing results spec by spec; on this branch also with development DBI 1.3.0.9015 (r-dbi/DBI at aacce867).
  • The same context against CRAN's RSQLite 3.53.3 with DBItest 1.8.3.9013, as the DBItest and DBI copies would run it once regenerated.
  • devtools::test() with NOT_CRAN=true on this branch, with both DBItest versions.
  • A scan of both installed DBItest namespaces for every skip_if_not_dbitest() gate, and a grep of the DBItest source for any other use of dbitest_version.
  • R CMD INSTALL of c9b17a9 with the absolute paths in its src/cpp11.dd mapped to a GitHub runner's layout.
  • The job log of the rcc-dev: DBItest job in rcc dev run 43228543760 on main, read through gh api.

No test_that() block changes. I did not run R CMD check, because the change touches no build file, DESCRIPTION, NAMESPACE or documentation.

What holds

  • DBItest compares in skip_if_not_dbitest() with as.package_version(ctx$tweaks$dbitest_version) < version, component by component, so 1.8.3.6 switches on the gates 1.8.3.1 to 1.8.3.6 and leaves 1.8.3.7 and 1.8.3.10 off (Confirmed). The other uses of the tweak, in dbi_generics() (1.7.99.1, 1.7.99.11), spec_result_fetch (1.7.4) and the bind specs (1.7.99.12 to 1.7.99.14), all sit below 1.8.1, so they do not change.
  • In 1.8.3.9013 the only gates above 1.8.1 are the six specs the description names, and 1.8.3.6 is the highest gate. In CRAN's 1.8.3 the highest gate is 1.8.0.50 (Confirmed).
  • With 1.8.3.9013, main skips the six specs ("required: 1.8.3.x, available: 1.8.1"). This branch runs all six, with 61, 18, 9, 9, 9 and 3 expectations and no failures. Every other spec gives the same result on both. The totals are 664 tests, 9787 expectations and 58 skips on this branch, against 9684 expectations and 64 skips on main. The results are the same with development DBI and with CRAN's RSQLite 3.53.3. With DBItest 1.8.3, main and this branch give identical per-spec results (Confirmed).
  • The description gives 9677 expectations and 59 skips for the CRAN runs. I get exactly those numbers when RSQLite is not installed in the library path, because the reexport spec then skips. With RSQLite installed I get 9678 and 58.
  • devtools::test() shows only the three known test-httpvfs.R errors, with both DBItest versions.
  • The net diff touches only the helper line. src/cpp11.dd at the head is the same blob as on main (c7e255aa), so no src/*.dd file changes.
  • The rcc workflow installs CRAN's DBItest, because DESCRIPTION has no Remotes, so the six specs do not run in this pull request's checks. rcc dev builds its matrix from Suggests and has an rcc-dev: DBItest leg that installs 1.8.3.9013 from r-universe and runs R CMD check with NOT_CRAN=true. In run 43228543760 that leg skipped the six specs with "available: 1.8.1" (Confirmed from the log). Besides its nightly run, rcc dev also runs on pushes to cran-* branches, on v* tags and on manual dispatch.
  • DBItest's backends job runs on pushes and pull requests to DBItest main, and daily at 08:00 UTC. Through revdep-dev/Makefile it clones RSQLite's default branch and runs test_local(filter = "^DBItest$", stop_on_failure = TRUE). Checked by reading DBItest at 4fd7a6ac through an anonymous git clone, because gh api refuses DBItest in this session.
  • DBItest's and DBI's tests/testthat/test-DBItest.R declare 1.8.1 on line 16. Their helper-dev.R regenerates each copy from a sibling RSQLite checkout. Checked by reading DBItest at 4fd7a6ac and DBI at aacce867.
  • The changed line is the same as the default-context line in test: Declare DBItest 1.8.3.6 in the DBItest contexts #831.

High

None.

Medium

None.

Low

  1. The first commit leaves a tree in the branch history that does not build on other machines.

    RSQLite/src/cpp11.dd

    Lines 11 to 275 in c9b17a9

    /opt/R/4.5.3/lib/R/include/R_ext/Arith.h \
    /opt/R/4.5.3/lib/R/include/R_ext/Boolean.h \
    /opt/R/4.5.3/lib/R/include/R_ext/Complex.h \
    /opt/R/4.5.3/lib/R/include/R_ext/Error.h \
    /opt/R/4.5.3/lib/R/include/R_ext/Memory.h \
    /opt/R/4.5.3/lib/R/include/R_ext/Print.h \
    /opt/R/4.5.3/lib/R/include/R_ext/Rdynload.h \
    /opt/R/4.5.3/lib/R/include/R_ext/Utils.h \
    /opt/R/4.5.3/lib/R/include/R_ext/Visibility.h \
    /opt/R/4.5.3/lib/R/include/R_ext/libextern.h \
    /opt/R/4.5.3/lib/R/include/Rconfig.h \
    /opt/R/4.5.3/lib/R/include/Rinternals.h \
    /opt/R/4.5.3/lib/R/include/Rversion.h \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/R.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/altrep.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/as.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/attribute_proxy.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/data_frame.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/declarations.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/doubles.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/environment.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/external_pointer.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/function.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/integers.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/list.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/list_of.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/logicals.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/matrix.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/named_arg.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/protect.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/r_bool.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/r_string.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/r_vector.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/raws.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/sexp.hpp \
    /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/include/cpp11/strings.hpp \
    /usr/include/asm-generic/errno.h \
    /usr/include/assert.h \
    /usr/include/c++/13/algorithm \
    /usr/include/c++/13/backward/auto_ptr.h \
    /usr/include/c++/13/backward/binders.h \
    /usr/include/c++/13/bits/algorithmfwd.h \
    /usr/include/c++/13/bits/align.h \
    /usr/include/c++/13/bits/alloc_traits.h \
    /usr/include/c++/13/bits/allocated_ptr.h \
    /usr/include/c++/13/bits/allocator.h \
    /usr/include/c++/13/bits/atomic_base.h \
    /usr/include/c++/13/bits/atomic_lockfree_defines.h \
    /usr/include/c++/13/bits/basic_ios.h \
    /usr/include/c++/13/bits/basic_ios.tcc \
    /usr/include/c++/13/bits/basic_string.h \
    /usr/include/c++/13/bits/basic_string.tcc \
    /usr/include/c++/13/bits/charconv.h \
    /usr/include/c++/13/bits/concept_check.h \
    /usr/include/c++/13/bits/cpp_type_traits.h \
    /usr/include/c++/13/bits/cxxabi_forced.h \
    /usr/include/c++/13/bits/cxxabi_init_exception.h \
    /usr/include/c++/13/bits/enable_special_members.h \
    /usr/include/c++/13/bits/erase_if.h \
    /usr/include/c++/13/bits/exception.h \
    /usr/include/c++/13/bits/exception_defines.h \
    /usr/include/c++/13/bits/exception_ptr.h \
    /usr/include/c++/13/bits/functexcept.h \
    /usr/include/c++/13/bits/functional_hash.h \
    /usr/include/c++/13/bits/hash_bytes.h \
    /usr/include/c++/13/bits/hashtable.h \
    /usr/include/c++/13/bits/hashtable_policy.h \
    /usr/include/c++/13/bits/invoke.h \
    /usr/include/c++/13/bits/locale_classes.h \
    /usr/include/c++/13/bits/locale_classes.tcc \
    /usr/include/c++/13/bits/locale_facets.h \
    /usr/include/c++/13/bits/locale_facets.tcc \
    /usr/include/c++/13/bits/localefwd.h \
    /usr/include/c++/13/bits/memory_resource.h \
    /usr/include/c++/13/bits/memoryfwd.h \
    /usr/include/c++/13/bits/nested_exception.h \
    /usr/include/c++/13/bits/new_allocator.h \
    /usr/include/c++/13/bits/node_handle.h \
    /usr/include/c++/13/bits/ostream.tcc \
    /usr/include/c++/13/bits/predefined_ops.h \
    /usr/include/c++/13/bits/ptr_traits.h \
    /usr/include/c++/13/bits/range_access.h \
    /usr/include/c++/13/bits/refwrap.h \
    /usr/include/c++/13/bits/shared_ptr.h \
    /usr/include/c++/13/bits/shared_ptr_atomic.h \
    /usr/include/c++/13/bits/shared_ptr_base.h \
    /usr/include/c++/13/bits/specfun.h \
    /usr/include/c++/13/bits/std_abs.h \
    /usr/include/c++/13/bits/stl_algobase.h \
    /usr/include/c++/13/bits/stl_bvector.h \
    /usr/include/c++/13/bits/stl_construct.h \
    /usr/include/c++/13/bits/stl_function.h \
    /usr/include/c++/13/bits/stl_heap.h \
    /usr/include/c++/13/bits/stl_iterator.h \
    /usr/include/c++/13/bits/stl_iterator_base_funcs.h \
    /usr/include/c++/13/bits/stl_iterator_base_types.h \
    /usr/include/c++/13/bits/stl_pair.h \
    /usr/include/c++/13/bits/stl_raw_storage_iter.h \
    /usr/include/c++/13/bits/stl_tempbuf.h \
    /usr/include/c++/13/bits/stl_uninitialized.h \
    /usr/include/c++/13/bits/stl_vector.h \
    /usr/include/c++/13/bits/streambuf.tcc \
    /usr/include/c++/13/bits/streambuf_iterator.h \
    /usr/include/c++/13/bits/string_view.tcc \
    /usr/include/c++/13/bits/stringfwd.h \
    /usr/include/c++/13/bits/uniform_int_dist.h \
    /usr/include/c++/13/bits/unique_ptr.h \
    /usr/include/c++/13/bits/unordered_map.h \
    /usr/include/c++/13/bits/uses_allocator.h \
    /usr/include/c++/13/bits/uses_allocator_args.h \
    /usr/include/c++/13/bits/utility.h \
    /usr/include/c++/13/bits/vector.tcc \
    /usr/include/c++/13/cerrno \
    /usr/include/c++/13/climits \
    /usr/include/c++/13/clocale \
    /usr/include/c++/13/cmath \
    /usr/include/c++/13/compare \
    /usr/include/c++/13/csetjmp \
    /usr/include/c++/13/cstdint \
    /usr/include/c++/13/cwchar \
    /usr/include/c++/13/debug/assertions.h \
    /usr/include/c++/13/ext/aligned_buffer.h \
    /usr/include/c++/13/ext/alloc_traits.h \
    /usr/include/c++/13/ext/atomicity.h \
    /usr/include/c++/13/ext/concurrence.h \
    /usr/include/c++/13/ext/numeric_traits.h \
    /usr/include/c++/13/ext/string_conversions.h \
    /usr/include/c++/13/ext/type_traits.h \
    /usr/include/c++/13/functional \
    /usr/include/c++/13/initializer_list \
    /usr/include/c++/13/iterator \
    /usr/include/c++/13/limits \
    /usr/include/c++/13/ostream \
    /usr/include/c++/13/pstl/execution_defs.h \
    /usr/include/c++/13/pstl/glue_algorithm_defs.h \
    /usr/include/c++/13/pstl/glue_memory_defs.h \
    /usr/include/c++/13/pstl/pstl_config.h \
    /usr/include/c++/13/streambuf \
    /usr/include/c++/13/string \
    /usr/include/c++/13/system_error \
    /usr/include/c++/13/tr1/bessel_function.tcc \
    /usr/include/c++/13/tr1/beta_function.tcc \
    /usr/include/c++/13/tr1/ell_integral.tcc \
    /usr/include/c++/13/tr1/exp_integral.tcc \
    /usr/include/c++/13/tr1/hypergeometric.tcc \
    /usr/include/c++/13/tr1/legendre_function.tcc \
    /usr/include/c++/13/tr1/modified_bessel_func.tcc \
    /usr/include/c++/13/tr1/poly_hermite.tcc \
    /usr/include/c++/13/tr1/poly_laguerre.tcc \
    /usr/include/c++/13/tr1/riemann_zeta.tcc \
    /usr/include/c++/13/tr1/special_function_util.h \
    /usr/include/c++/13/unordered_map \
    /usr/include/c++/13/utility \
    /usr/include/c++/13/version \
    /usr/include/ctype.h \
    /usr/include/features.h \
    /usr/include/limits.h \
    /usr/include/linux/close_range.h \
    /usr/include/linux/limits.h \
    /usr/include/pthread.h \
    /usr/include/string.h \
    /usr/include/unistd.h \
    /usr/include/wctype.h \
    /usr/include/x86_64-linux-gnu/asm/errno.h \
    /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h \
    /usr/include/x86_64-linux-gnu/bits/byteswap.h \
    /usr/include/x86_64-linux-gnu/bits/confname.h \
    /usr/include/x86_64-linux-gnu/bits/cpu-set.h \
    /usr/include/x86_64-linux-gnu/bits/endian.h \
    /usr/include/x86_64-linux-gnu/bits/endianness.h \
    /usr/include/x86_64-linux-gnu/bits/environments.h \
    /usr/include/x86_64-linux-gnu/bits/errno.h \
    /usr/include/x86_64-linux-gnu/bits/floatn-common.h \
    /usr/include/x86_64-linux-gnu/bits/floatn.h \
    /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h \
    /usr/include/x86_64-linux-gnu/bits/fp-fast.h \
    /usr/include/x86_64-linux-gnu/bits/fp-logb.h \
    /usr/include/x86_64-linux-gnu/bits/getopt_core.h \
    /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \
    /usr/include/x86_64-linux-gnu/bits/iscanonical.h \
    /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \
    /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
    /usr/include/x86_64-linux-gnu/bits/local_lim.h \
    /usr/include/x86_64-linux-gnu/bits/locale.h \
    /usr/include/x86_64-linux-gnu/bits/long-double.h \
    /usr/include/x86_64-linux-gnu/bits/math-vector.h \
    /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h \
    /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h \
    /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
    /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \
    /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h \
    /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \
    /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \
    /usr/include/x86_64-linux-gnu/bits/sched.h \
    /usr/include/x86_64-linux-gnu/bits/select.h \
    /usr/include/x86_64-linux-gnu/bits/setjmp.h \
    /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \
    /usr/include/x86_64-linux-gnu/bits/stdint-least.h \
    /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \
    /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
    /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
    /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \
    /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \
    /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \
    /usr/include/x86_64-linux-gnu/bits/time.h \
    /usr/include/x86_64-linux-gnu/bits/time64.h \
    /usr/include/x86_64-linux-gnu/bits/timesize.h \
    /usr/include/x86_64-linux-gnu/bits/timex.h \
    /usr/include/x86_64-linux-gnu/bits/types.h \
    /usr/include/x86_64-linux-gnu/bits/types/FILE.h \
    /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \
    /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/error_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \
    /usr/include/x86_64-linux-gnu/bits/types/time_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \
    /usr/include/x86_64-linux-gnu/bits/typesizes.h \
    /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \
    /usr/include/x86_64-linux-gnu/bits/uio_lim.h \
    /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \
    /usr/include/x86_64-linux-gnu/bits/waitflags.h \
    /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
    /usr/include/x86_64-linux-gnu/bits/wchar.h \
    /usr/include/x86_64-linux-gnu/bits/wordsize.h \
    /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/atomic_word.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/cpu_defines.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/ctype_base.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/ctype_inline.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/error_constants.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/gthr.h \
    /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h \
    /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
    /usr/include/x86_64-linux-gnu/gnu/stubs.h \
    /usr/include/x86_64-linux-gnu/sys/cdefs.h \
    /usr/include/x86_64-linux-gnu/sys/select.h \
    /usr/include/x86_64-linux-gnu/sys/single_threaded.h \
    /usr/include/x86_64-linux-gnu/sys/types.h \
    /usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h \
    /usr/lib/gcc/x86_64-linux-gnu/13/include/stdarg.h \
    /usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h \
    /usr/lib/gcc/x86_64-linux-gnu/13/include/stdint.h \
    /usr/lib/gcc/x86_64-linux-gnu/13/include/syslimits.h \
    . Commit c9b17a9 replaces the 11-line src/cpp11.dd with 721 lines, and 260 of them are absolute paths of the author's machine, such as /opt/R/4.5.3/... and /root/R/x86_64-pc-linux-gnu-library/4.5/cpp11/.... Commit 197ca59 restores the file. I mapped those paths to a GitHub runner's layout and ran R CMD INSTALL on c9b17a9. It failed with "No rule to make target '/home/runner/work/_temp/Library/cpp11/include/cpp11.hpp', needed by 'cpp11.o'" (Confirmed). The repository allows merge commits and rebase merges, and either one would put that commit on main. There it would stop git bisect and publish local paths. The cause is the %.dd rule in src/Makevars.deps: it drops only lines that start with two spaces, while gcc starts its own wrapped lines with one (by reading). Suggested fix: squash-merge, or rewrite the branch to a single commit before merging.
  2. The nightly job the description relies on may not fail when one of these specs fails.
    - name: Install dev version of ${{ matrix.package }}
    env:
    GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
    run: |
    # r-universe builds Linux binaries for ubuntu:latest, which now tracks
    # 26.04 "resolute" (it no longer publishes "noble"). This matches the
    # ubuntu-26.04 runner above.
    remotes::install_runiverse("${{ matrix.package }}", linux_distro = "resolute")
    shell: Rscript {0}
    - name: Session info
    uses: cynkra/cynkratemplate/.github/actions/session-info@main
    - name: Run the repository-specific after-install steps
    uses: ./.github/workflows/custom/after-install
    if: hashFiles('.github/workflows/custom/after-install/action.yml') != ''
    - name: Update the testthat snapshots
    uses: cynkra/cynkratemplate/.github/actions/update-snapshots@main
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
    - name: Run R CMD check
    uses: cynkra/cynkratemplate/.github/actions/check@main
    with:
    results: ${{ matrix.package }}
    . In run 43228543760, the testthat.Rout of the rcc-dev: DBItest job ends with "[ FAIL 3 | WARN 6 | SKIP 67 | PASS 10378 ]", from the known httpvfs errors, and has no "Execution halted". Even so, R CMD check reports testthat.R as OK with "Status: OK", and the job succeeds. Locally, with the same testthat 3.3.2, a single test error makes R CMD check fail. So a regression in the six specs could also pass unnoticed there (Confirmed from the job log; I did not trace the cause). This pull request did not cause it. DBItest's backends job runs with stop_on_failure = TRUE and does not have this gap. Suggested fix: find out separately why that job ignores test errors, before treating it as the place where these specs are watched.

Generated by Claude Code

krlmlr commented Nov 12, 2026 •

Copy link
Copy Markdown
Member Author

Superseded: Accepted limitations

The clean review found nothing above Low. Its corrections to the description (the CRAN figures depend on whether RSQLite is installed, and rcc dev also runs on cran-* pushes, v* tags and manual dispatch) are made. These remain:

  • src/cpp11.dd at c9b17a9c: the branch's first commit carries a regenerated src/cpp11.dd with absolute paths from the build machine, and an R CMD INSTALL of that commit fails; the second commit restores the file, so the net diff is the one line in tests/testthat/helper-DBItest.R. Squash-merge this pull request, so that the broken commit does not reach main. Relevance: low; reviewer's confidence: high.
  • .github/workflows/R-CMD-check-dev.yaml#L112-L120: the rcc-dev: DBItest job, the one place in this repository's CI that runs the six newly enabled specs, may not fail when a spec fails: in run 43228543760 its test output shows "FAIL 3" (the known HTTP VFS errors, test: Run the HTTP VFS tests for real, and make their errors fail the check #832), yet the check reports the tests as passing and the job succeeds. The cause was not found; it is not caused by this pull request, and DBItest's own backends job runs these specs with stop_on_failure = TRUE. Relevance: medium; reviewer's confidence: medium.

Generated by Claude Code

@krlmlr

krlmlr commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

re "rcc-dev: DBItest": The logs show

      > test_check("RSQLite")
      Saving _problems/test-httpvfs-39.R
      Saving _problems/test-httpvfs-109.R
      Saving _problems/test-httpvfs-162.R
      [ FAIL 3 | WARN 6 | SKIP 67 | PASS 10378 ]

Should these files be printed or made available as artifacts?

krlmlr commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Re the _problems/ files in "rcc-dev: DBItest": printing or uploading them would not by itself have caught this, because the job is green for a different reason.

Why the job passes with FAIL 3. R CMD check itself reports Running 'testthat.R' ... OK and Status: OK (job log), so rcmdcheck() has nothing to fail on; every job of that run and the rcc jobs on main behave the same. test_check() returns normally because testthat counts a test as errored only when the error is its last result (reporter-list.R#L186-L206), and the three HTTP VFS tests record a warning after their error: their on.exit(try(dbDisconnect(con), silent = TRUE)) runs on a connection the test already closed, and try() silences errors, not the "Already disconnected" warning. That is #837 (the testthat behavior, with a reprex) and #832 (which restructures the tests so the error stays last; with it, the check fails as it should, until #840 to #843 fix the tests themselves).

Where the files are. Since testthat 3.3.0, the check reporter writes one reproducer script per failed expectation to RSQLite.Rcheck/tests/testthat/_problems/<file>-<line>.R (the test body up to the failing line, with a setup header), plus testthat-problems.rds with the serialized failures, also when the check passes (reporter-check.R#L27-L30, #L71). Both artifact uploads that exist today, cynkratemplate's Upload check results and r-lib's own, carry the whole check directory, but only when the job fails.

Recommendation. Merge #832 to remove the trigger here. Then, in cynkratemplate's check action (and the same in covr), rather than in RSQLite's workflow files, since packages call the action at @main: print _problems/*.R in collapsed groups whenever they exist, and fail the job when testthat-problems.rds exists, before the failure upload, so that the upload then carries the reproducers. That guard turns red every package with the same hidden pattern, which is the point, but it needs a test on a branch first. A separate always-on artifact is not needed. I can open that pull request in cynkra/cynkratemplate if you want it.


Generated by Claude Code

krlmlr commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Accepted limitations

The clean review found nothing above Low. Its corrections to the description (the CRAN figures depend on whether RSQLite is installed, and rcc dev also runs on cran-* pushes, v* tags and manual dispatch) are made. These remain:


Generated by Claude Code

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