Skip to content

Driver version matrix in CI; virtual clock for timing tests - #21

Merged
thelastbackspace merged 2 commits into
mainfrom
test/driver-compat-and-clock
Nov 7, 2026
Merged

thelastbackspace merged 2 commits into
mainfrom
test/driver-compat-and-clock

Conversation

@thelastbackspace

Copy link
Copy Markdown
Owner
  • test/compat: old and new majors of every instrumented driver on real servers (new driver-compat CI job, strict: a skipped driver fails).
  • Fix: mongodb 3.x / Mongoose 5 aggregate() was labelled mongo find $cmd.
  • Sync timing assertions use a virtual clock (useVirtualClock / withVirtualClock).

pg@7 is not in the matrix: it cannot connect on Node 14+ at all, so pg 8.0.3 is the old end.

Not yet covered: Prisma (needs a generated client per version).

…g tests

test/compat installs pg, mysql2, mysql, mongodb, mongoose, ioredis and
better-sqlite3 majors side by side and checks the exact labels against
real servers in a new CI job. It found that mongodb 3.x / Mongoose 5
labelled aggregate() as 'mongo find $cmd', fixed here.

Sync timing assertions now run on a virtual clock so machine load
cannot fail them.
@thelastbackspace
thelastbackspace merged commit 7f34f07 into main Nov 7, 2026
15 checks passed
@thelastbackspace
thelastbackspace deleted the test/driver-compat-and-clock branch November 7, 2026 03:35
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