-
Notifications
You must be signed in to change notification settings - Fork 3
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
MongoDB: Add code from migr8
program
#76
Conversation
Codecov ReportAttention:
📢 Thoughts on this report? Let us know! |
67c8c1c
to
f5aef18
Compare
migr8
program from previous repositorymigr8
program from previous repository
725fd28
to
1c49f92
Compare
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.8", "3.12"] | ||
mongodb-version: ["2", "3", "4", "5", "6", "7"] | ||
|
||
env: | ||
OS: ${{ matrix.os }} | ||
PYTHON: ${{ matrix.python-version }} | ||
MONGODB_VERSION: ${{ matrix.mongodb-version }} | ||
# Do not tear down Testcontainers | ||
TC_KEEPALIVE: true |
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.
It looks like MONGODB_VERSION
may not be picked up by the test suite here, yet. By default, it is mongo:latest
1.
Footnotes
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.
MongoDbContainerWithKeepalive
has been improved correspondingly, and split into a seperate commit, see bf156ef.
migr8
program from previous repositorymigr8
program
2a0d819
to
173a645
Compare
It honors the `TC_KEEPALIVE` and `MONGODB_VERSION` environment variables. Defining `TC_KEEPALIVE` will set a signal not to shut down the container after running the test cases, in order to speed up subsequent invocations. `MONGODB_VERSION` will define the designated MongoDB version, which is useful when used within a test matrix. Its default value is `latest`.
About
The
migr8
program has been maintained over at 1. This patch adds it to cratedb-toolkit instead, in order to streamline maintenance in terms of more regular testing and shipping.Details
Documentation is included. Installation works like:
pip install 'cratedb-toolkit[io]' migr8 --help
A different CLI/library interface will be added on behalf of a subsequent iteration.
/cc @karynzv
Footnotes
https://github.com/crate/mongodb-cratedb-migration-tool ↩