-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(client): vitess fk #22209
base: main
Are you sure you want to change the base?
test(client): vitess fk #22209
Conversation
size-limit report 📦
|
@@ -157,6 157,15 @@ async function main(): Promise<number | void> { | |||
} | |||
} | |||
|
|||
if (providerFlavors.includes(ProviderFlavors.VITESS_FK)) { | |||
jestCli = jestCli.withArgs(['--runInBand']) | |||
// jestCli = jestCli.withEnv({ TEST_REUSE_DATABASE: 'true' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migrate has some trouble to drop tables that have foreign keys in some cases, so for now each database is independent. Also, even then running in band is required as vitess has trouble in parallel mode.
…prisma/_schema.ts
KEYSPACES: 'test-0000-00000000' # unused in testing, but required by vttestserver | ||
NUM_SHARDS: '1' # unused in testing, but required by vttestserver | ||
MYSQL_BIND_HOST: '0.0.0.0' | ||
# FOREIGN_KEY_MODE: 'disallow' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# FOREIGN_KEY_MODE: 'disallow' |
KEYSPACES: 'test-0000-00000000' # unused in testing, but required by vttestserver | ||
NUM_SHARDS: '1' # unused in testing, but required by vttestserver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KEYSPACES: 'test-0000-00000000' # unused in testing, but required by vttestserver | |
NUM_SHARDS: '1' # unused in testing, but required by vttestserver | |
KEYSPACES: 'test-0000-00000000' | |
NUM_SHARDS: '1' |
(see the setup changes only)
#22276 builds on this