Skip to content

chore(test): update test, benchmark and example module dependencies - #66

Merged
kolkov merged 1 commit into
mainfrom
chore/test-deps
Oct 27, 2026
Merged

kolkov merged 1 commit into
mainfrom
chore/test-deps

Conversation

@kolkov

@kolkov kolkov commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Updates the dependencies of the test, benchmark and example modules. The library module has no dependencies, so nothing changes for users.

Module Dependency From To
test testcontainers-go (+ mysql, postgres modules) 0.39.0 0.44.0
test lib/pq 1.10.9 1.12.3
test go-sql-driver/mysql 1.9.3 1.10.1
test stretchr/testify 1.11.1 1.12.1
test, benchmark, examples modernc.org/sqlite 1.39.1 1.59.0
test golang.org/x/tools 0.48.0 0.49.0
test/drivercompat mattn/go-sqlite3 1.14.50 1.14.52
  • Held back: modernc.org/sqlite 1.60+ and golang.org/x/tools 0.50+ require Go 1.26. Relica's minimum is Go 1.25 and CI runs every suite on 1.25, so these two stay at the last versions that build on 1.25. test/drivercompat keeps lib/pq v1.2.0 on purpose: it is the legacy-driver case.
  • Test change: modernc.org/sqlite 1.59 compiles a statement at prepare time, as PostgreSQL and MySQL do (1.39 compiled lazily). The SQLite-only branches of WarmCache_InvalidSQL and Prepare_InvalidSQL are removed; all three databases now assert that prepare rejects the broken statement.

Local: build and vet of all four modules, golangci-lint on test/ (0 issues), SQLite integration suite (0 FAIL), drivercompat. PostgreSQL and MySQL run in CI.

test: testcontainers-go 0.39 -> 0.44, lib/pq 1.10.9 -> 1.12.3, go-sql-driver/mysql
1.9.3 -> 1.10.1, testify 1.11.1 -> 1.12.1, modernc.org/sqlite 1.39.1 -> 1.59.0,
golang.org/x/tools 0.48 -> 0.49. benchmark, examples: modernc.org/sqlite 1.59.0.
drivercompat: mattn/go-sqlite3 1.14.52 (lib/pq v1.2.0 stays: it is the legacy case).

modernc.org/sqlite 1.60+ and x/tools 0.50+ need Go 1.26; the library's minimum is
Go 1.25 and CI runs the suites on 1.25, so these two stay at the last 1.25 versions.

modernc.org/sqlite 1.59 compiles a statement at prepare time like the servers do,
so the SQLite branches of WarmCache_InvalidSQL and Prepare_InvalidSQL are gone.
@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov
kolkov merged commit 3419d11 into main Oct 27, 2026
12 checks passed
@kolkov
kolkov deleted the chore/test-deps branch October 27, 2026 08:04
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.

1 participant