Repository navigation
feat(migrations): the startup policy, serve --migrate and [server] catalog_upgrade #741
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
Open
LeeroyHannigan
wants to merge
32
commits into
main
Choose a base branch
from
feat/catalog-startup-policy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,387
−212
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
cf9329b
feat(migrations): apply a catalog's pending migrations at startup
LeeroyHannigan 5d7e9b1
feat(npm): count the startup timeout from the last migration progress…
LeeroyHannigan 46333c7
ci: check serve's startup policy in the catalog lock scripts
LeeroyHannigan 9ee12f3
docs: serve --migrate, catalog_upgrade and the deployment recipes
LeeroyHannigan de4b0bf
fix(mongodb): release the migration lock with the lock's own client
LeeroyHannigan 1642e83
fix(migrations): serve a catalog found current under the lock without…
LeeroyHannigan 9df3f5d
fix(serve): check the catalog before the bind, log during it, bound i…
LeeroyHannigan b23da5e
test(migrations): rename the two-run startup tests, and add the missi…
LeeroyHannigan b0d5906
fix(npm): stop a server that fails to start, and report its exit code
LeeroyHannigan 1b0386f
ci: bound the lock waits and clean up daemons in the catalog lock scr…
LeeroyHannigan 7fff9d6
docs: describe the startup policy as the server applies it
LeeroyHannigan 205017f
test(app): give the startup tests' applied steps an outcome
LeeroyHannigan 3dde176
fix(devtools): the PostgreSQL lock check calls pid_file under another…
LeeroyHannigan c36d717
Merge branch 'main' into feat/catalog-startup-policy
LeeroyHannigan d0154a6
Merge origin/main into feat/catalog-startup-policy
LeeroyHannigan d8428eb
test(storage-mongodb): count migration 6 in the startup tests
LeeroyHannigan 332a46f
Merge origin/main into feat/catalog-startup-policy
LeeroyHannigan 00443d3
fix(server): name serve --migrate in the refusal of serve only
LeeroyHannigan 1f5d8c3
test(storage-mongodb): count migrations 7 to 12 in the startup tests
LeeroyHannigan dd37d5e
fix(npm): give the startup wait the deadline that start() shares
LeeroyHannigan 8612a15
fix(serve): refuse a bad request_timeout_secs before the catalog check
LeeroyHannigan fdf651f
fix(serve): name the data store in the refusal of the catalog check
LeeroyHannigan 112b6a6
docs(npm): say that a catalog migration line restarts the startup wait
LeeroyHannigan c47aaeb
Merge origin/main into feat/catalog-startup-policy
LeeroyHannigan 6a5875c
fix(migrations): name 0.1.15 as the ledger release in the startup pol…
LeeroyHannigan 7ae70ec
Merge origin/main into feat/catalog-startup-policy
LeeroyHannigan e80511a
test(storage-mongodb): build the catalog migrations with new() in the…
LeeroyHannigan 17410e4
docs(upgrade): mount the KEK in the migration Job on PostgreSQL
LeeroyHannigan d925cfa
fix(serve): give the startup check the KEK on PostgreSQL
LeeroyHannigan c8e3a04
refactor(app): read the KEK of the serve catalog check through status…
LeeroyHannigan 8d6c8ce
docs: state the startup order of the catalog check in two pages of #1003
LeeroyHannigan b52be83
Merge origin/main into feat/catalog-startup-policy
LeeroyHannigan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,3 +45,4 @@ jobs: | |
| set -euo pipefail | ||
| cd packaging/npm | ||
| node test/launcher.test.js | ||
| node test/start.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -679,6 +679,7 @@ async fn open_catalog( | |
| release, | ||
| app_config, | ||
| Some(config_path), | ||
| false, | ||
| ) | ||
| .await | ||
| .into()); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
No test holds the KEK fix on PostgreSQL (d925cfa, c8e3a04): with
KeySource::CatalogKeyhere no test fails, and no CI job startsservewithkey_file. At this head on PostgreSQL 16 it is right: healthy on a current catalog, exit 3 with one migration pending, healthy after--migrate. The same holds for the MongoDB release through the lock's own client atstorage-mongodb/src/migrations/commands.rs:173(de4b0bf): withdrop(lock)back,migrations_startupandmigrations_lockspass three of three. The request-timeout check before the catalog check (line 122),serving=trueatserve.rs:457and the data store name in the refusal (serve_catalog.rs:135) are untested too, though right when run.