Skip to content

chore: speed up slow tests [WPB-28455] - #2564

Open
coriolinus wants to merge 8 commits into
mainfrom
prgn/chore/speed-up-slow-tests
Open

chore: speed up slow tests [WPB-28455]#2564
coriolinus wants to merge 8 commits into
mainfrom
prgn/chore/speed-up-slow-tests

Conversation

@coriolinus

Copy link
Copy Markdown
Contributor

As a bonus, point out in an explicit release note that we never did actually need clients to space out their credentials--by the time we released 10.0, that limitation was already obsolete.

We haven't enforced the 1-second restriction for some time; remove
stale docs references claiming the restriction still exists.
We used to have a restriction that we couldn't add credentials too fast.
That hasn't been active for some time now. This removes old delays
from tests which were intended to comply with that restriction.
Prior to this change, every pair of members called `can_talk`,
which tests bidirectional functionality, starting from both directions.
With this change, it only tests starting from one (arbitrary) direction.

This should be ok becasue both directions of communication are tested
within `can_talk` anyway.
@coriolinus
coriolinus requested a review from a team September 9, 2026 16:24
They just load the composite schema directly, which is substantially faster.
This is fine because an in-memory database cannot have existing prior state.

There are technically some failure modes: exporting a DB in memory
and then exporting a copy produces a DB which cannot be opened, because
in-memory databases are not encrypted and the export is expected to be
encrypted. But that already wouldn't work. Likewise if we did DDL in
a meta-migration at some point in the future. that would be invisible
to `compile-schema`, and in-memory databases would not see that DDL.
But we're not going to do that because of a project convention that
meta-migrations are to be used only when necessary, only when something
cannot be accomplished in the course of a normal migraiton.
Specifically, all tests creating 5 or more sessions now do so
in memory, reducing the amount of wall-clock time which was spent
redoing migrations for each session.
@coriolinus
coriolinus force-pushed the prgn/chore/speed-up-slow-tests branch from 10f3db7 to ad182f3 Compare September 9, 2026 16:26
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