Skip to content

Use locally built schema binaries for db migrations #2791

Merged
akshaymankar merged 3 commits intodevelopfrom
akshaymankar/local-db-migrate
Oct 24, 2022
Merged

Use locally built schema binaries for db migrations #2791
akshaymankar merged 3 commits intodevelopfrom
akshaymankar/local-db-migrate

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
@akshaymankar akshaymankar requested a review from fisx October 24, 2022 09:39
@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.

Makefile Outdated
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 force-pushed the akshaymankar/local-db-migrate branch from 646e3e7 to 0b3d170 Compare October 24, 2022 11:56
@akshaymankar akshaymankar temporarily deployed to cachix October 24, 2022 11:56 Inactive
@akshaymankar akshaymankar force-pushed the akshaymankar/local-db-migrate branch from 0b3d170 to 1a36a2e Compare October 24, 2022 11:57
@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

Comments