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

Use locally built schema binaries for db migrations #2791

Merged
merged 3 commits into from
Oct 24, 2022

Conversation

akshaymankar
Copy link
Member

Also make sure DB is up to date every time tests are run and not just when DBs
are spun up.

This allows us to not rely on the "latest" tag of these docker images and also make spinning up local ephemeral services faster.

@akshaymankar akshaymankar temporarily deployed to cachix October 24, 2022 09:39 Inactive
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Oct 24, 2022
Copy link
Contributor

@fisx fisx left a comment

Choose a reason for hiding this comment

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

LGTM, just one small change request.

# For using stack see the Makefile of the package, e.g. services/brig/Makefile
# Usage: make db-migrate-package package=galley
.PHONY: db-migrate-package
db-migrate-package: c
Copy link
Contributor

Choose a reason for hiding this comment

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

can you keep a goal that juts emits a deprecation warning tell you what to call instead? (for both reset and migrate.)

@akshaymankar akshaymankar temporarily deployed to cachix October 24, 2022 11:56 Inactive
@akshaymankar akshaymankar temporarily deployed to cachix October 24, 2022 11:57 Inactive
@akshaymankar akshaymankar changed the title Use locally build schema binaries for db migrations Use locally built schema binaries for db migrations Oct 24, 2022
@akshaymankar akshaymankar merged commit 7df4a4a into develop Oct 24, 2022
@akshaymankar akshaymankar deleted the akshaymankar/local-db-migrate branch October 24, 2022 12:53
elland pushed a commit that referenced this pull request Oct 24, 2022
* Makefile: Allow db-migrate and db-reset to migrate/reset all keyspaces

* Use locally built schema binaries for db migrations

Also make sure DB is up to date every time tests are run and not just when DBs
are spun up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants