Skip to content
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

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

test(client): vitess fk #22209

wants to merge 18 commits into from

Conversation

millsp
Copy link
Member

@millsp millsp commented Dec 2, 2023

Copy link
Contributor

github-actions bot commented Dec 2, 2023

size-limit report 📦

Path Size
packages/client/runtime/library.js 196.85 KB (0%)
packages/client/runtime/library.d.ts 100.24 KB (0%)
packages/client/runtime/binary.js 628.56 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 236.9 KB (0%)
packages/client/runtime/edge-esm.js 236.68 KB (0%)
packages/client/runtime/index-browser.js 33.5 KB (0%)
packages/client/runtime/index-browser.d.ts 11.96 KB (0%)
packages/cli/build/index.js 2.72 MB (0%)

@@ -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' })
Copy link
Member Author

@millsp millsp Dec 2, 2023

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.

docker/docker-compose.yml Outdated Show resolved Hide resolved
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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# FOREIGN_KEY_MODE: 'disallow'

Comment on lines 105 to 106
KEYSPACES: 'test-0000-00000000' # unused in testing, but required by vttestserver
NUM_SHARDS: '1' # unused in testing, but required by vttestserver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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'

@millsp millsp self-assigned this Dec 5, 2023
@CLAassistant
Copy link

CLAassistant commented Jul 8, 2024

CLA assistant check
All committers have signed the CLA.

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.

None yet

3 participants