Skip to content

Wait for schema changes on execute and batch #206

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

Merged
merged 46 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5d8069f
WIP: add option to wait for schema changes
giovannibenussi May 14, 2024
782345b
Wait for schema changes using the API and improve response types
giovannibenussi May 15, 2024
bc96806
Undo format changes from http module
giovannibenussi May 15, 2024
9c70b8f
Update logs while waiting for migration jobs
giovannibenussi May 15, 2024
247a1d4
Remove unused code from ws module
giovannibenussi May 15, 2024
eef5fc3
Provide default vale for batch on the ws module
giovannibenussi May 15, 2024
4853f94
Extract waitForLastMigrationJobToFinish to its own module
giovannibenussi May 16, 2024
af09205
Extract waitForLastMigrationJobToFinish to its own module
giovannibenussi May 16, 2024
8a568be
WIP: Add MSW and merge main
giovannibenussi May 24, 2024
179a4ce
Merge branch 'main' into wait-for-schema-changes
giovannibenussi May 24, 2024
6df64d3
Run prettier on all project
giovannibenussi May 24, 2024
d018b49
Add wait option to execute
giovannibenussi May 24, 2024
e937719
Remove wait option from batch
giovannibenussi May 24, 2024
95d9d69
Remove wait option from batch on the ws module
giovannibenussi May 24, 2024
0868c25
Remove unused test
giovannibenussi May 24, 2024
4347bae
Remove unused test dependencies
giovannibenussi May 24, 2024
7eec7b8
Set time between retries to 5 seconds and maximum retries to 6
giovannibenussi May 24, 2024
3c41327
Add tests for waitForLastMigrationJobToFinish
giovannibenussi May 27, 2024
443ffb5
Add msw dependency
giovannibenussi May 27, 2024
3fc5f5b
Update max retries and sleep time to match Go integration
giovannibenussi May 27, 2024
8e8b9bf
Add BatchConfig to the execute type definition and remove it from batch
giovannibenussi May 27, 2024
618c556
Remove hrana-test-server folder
giovannibenussi May 27, 2024
c74b863
Update package-lock.json from main
giovannibenussi May 27, 2024
1f620a9
Fix stuck tests by don't running msw on client tests
giovannibenussi May 28, 2024
c63b7c3
Fix integration test for waitForLastMigrationJobToFinish
giovannibenussi May 28, 2024
738e1b0
Skip test that test a call to waitForLastMigrationJobToFinish for loc…
giovannibenussi May 28, 2024
2abb9fe
Fix migrations file import
giovannibenussi May 28, 2024
ed929b0
Automatically detect if database is a schema database when calling ex…
giovannibenussi May 29, 2024
e908bec
Add cache to getIsSchemaDatabase
giovannibenussi May 29, 2024
27bea93
Run API call to check if database is schema in parallel with query
giovannibenussi May 29, 2024
d9edd87
Wait for results before check for schema migrations
giovannibenussi May 29, 2024
fa49b51
Fix tests
giovannibenussi May 29, 2024
799ac39
Fix tests
giovannibenussi May 29, 2024
d5949a7
Add canary schema test
giovannibenussi May 29, 2024
bd7e80e
Fix stuck tests
giovannibenussi May 29, 2024
e60f1b6
Remove schema changes from the ws module
giovannibenussi May 29, 2024
63dd2ba
Revert "Remove schema changes from the ws module"
giovannibenussi May 29, 2024
b866c08
Normalize URL to know if a database is a schema database to https
giovannibenussi May 29, 2024
9ed7179
Fix tests
giovannibenussi May 29, 2024
670d644
Remove console.log from migrations file
giovannibenussi May 29, 2024
ce3e89d
Add debug logs to migrations file
giovannibenussi May 29, 2024
3183e93
Normalize ws to https in normalizeURLScheme
giovannibenussi May 29, 2024
4f1c171
Revert "Normalize ws to https in normalizeURLScheme"
giovannibenussi May 29, 2024
c9d4bdb
Normalize URLs for migration jobs
giovannibenussi May 29, 2024
acd83ed
Add a timeout of 2 minutes to GitHub actions
giovannibenussi May 29, 2024
dfd6d3f
Disable workers test
giovannibenussi May 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
"wasm-test":
name: "Build and test Wasm on Node.js"
runs-on: ubuntu-latest
timeout-minutes: 2
defaults:
run:
working-directory: ./packages/libsql-client-wasm
Expand Down Expand Up @@ -35,6 +36,7 @@ jobs:
"node-test":
name: "Build and test on Node.js"
runs-on: ubuntu-latest
timeout-minutes: 2
defaults:
run:
working-directory: ./packages/libsql-client
Expand Down Expand Up @@ -94,7 +96,9 @@ jobs:

"workers-test":
name: "Build and test with Cloudflare Workers"
if: false
runs-on: ubuntu-latest
timeout-minutes: 2
defaults:
run:
working-directory: ./packages/libsql-client
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules
/docs
*.tsbuildinfo
Session.vim
packages/libsql-client/hrana-test-server
Loading
Loading