-
Notifications
You must be signed in to change notification settings - Fork 297
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
feat: Adding support for Cassandra and Scylla #167
feat: Adding support for Cassandra and Scylla #167
Conversation
This add the support for those cassandra based dbs and their drivers, cassandra-driver, scylla-driver Ref: https://cassandra.apache.org/ Ref: https://www.scylladb.com/ Ref: https://pypi.org/project/cassandra-driver/ Ref: https://pypi.org/project/scylla-driver/
Hi @tillahoffmann and @SergeyPirogov, pretty please for approving the workflow to start ? FYI, it can be eased a bit, the approval part: |
@fruch hello. Can you update this PR? |
Thanks for the additions and apologies for the slow reply. A few things to get this integrated:
|
039c2f0
to
74ac112
Compare
I've rebased and added the test to CI but the building of requirements is failing:
I think pinning of google-cloud-pubsub is problematic, and google packages are conflicting each other. |
74ac112
to
19d9a39
Compare
@yakimka @tillahoffmann waiting for approval for running the CI |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #167 +/- ##
=======================================
Coverage ? 87.81%
=======================================
Files ? 32
Lines ? 886
Branches ? 58
=======================================
Hits ? 778
Misses ? 78
Partials ? 30 ☔ View full report in Codecov by Sentry. |
We may have to get #209 merged first to get around the google dependency issue. |
|
Seems that just removing the pinning helped |
Didn't understand where you are going with the calculation here, for me getting a docker image out of dockerhub can take a minute or two. I was more talking about pip-compile that in case of conflicts can download all the versions of a package to try solving it, (I know it, cause I'm using it in in one of my projects in my day job), And as you said I don't think it's worth while for a library to maintain such a lock file. even that tool like poetry for example are doing just that. (also can be slow and annoying) |
Sorry, I posted on the wrong thread. 🤦♂️ |
@tillahoffmann would it be o.k. to take the code changes from #209, and test it in tandam ? |
19d9a39
to
e24f8b7
Compare
Hi, @fruch I see there are conflicts that should be resolved, is it something that you should handle? Thanks, |
I guess I could, I've almost forgotten about this one, it's almost a whole year since I've opened this one.
|
Thanks! @tillahoffmann can we please push it once @fruch resolves the conflicts? This seems like a great addition to testcontainers! |
BTW @spicy-sauce can you share a bit what do you need it for ? Cassandra or Scylla ? And which type of testing it's gonna be part of ? |
At this point I need it for Cassandra as I'm going to implement such a block in DataYoga and would love to use it for the testing part. Read more here: |
looks interesting, ping me when you have it running with Cassandra or Scylla, maybe adding it in our https://university.scylladb.com/ anyhow I'm the maintainer of python driver fork if you have question you can reach me at [email protected] |
e24f8b7
to
ad8a8be
Compare
@tillahoffmann #209 didn't seemed to be merged Anyhow I've rebased again, and rebuild the requirements files again. Can now it be run in CI and merged ? |
ad8a8be
to
be4d59f
Compare
@tillahoffmann looks like I've missed updating the requriements files for 3.7, now it should run o.k. |
Guys, can we please push this one? It's really a great addition and we would like to avoid another conflicts. |
@tillahoffmann @yakimka it's now passes all the tests... |
In the meanwhile, I'd solve the current conflicts. |
There is a issue with relases because I live in Kyiv and we are fighting with Russsia, so there is no time for the project |
@SergeyPirogov that very important and I wish for victory for Ukraine of course. can we help with releases in the meantime? My username is daveankin on Pypi and if you add me as owner I will work with currently available maintainers to update this library and Pypi, without removing you from the project at all. I hope soon in the future you will have some time for the project and return but until then, please consider adding myself or someone from testcontainers/atomicjar for the meantime. Thank you! edit: I have accepted the invite to join on pypi |
Also interested in this and happy to help |
Latest is on this branch:
* Merged testcontainers-core back with testcontainers like the other modules
* Fixed tests on Ubuntu
* Fixed docs/doc tests after moving modules/on Ubuntu
* Fixed npipe bug on windows (still wondering about the right answer there
in #415)
* Wasn't able to check the whole windows test suite yet, where I left off
main...alexanderankin:testcontainers-python:poetry-refactor-changes-to-publish
…On Tue, Jan 23, 2024, 6:53 AM Guy Shtub ***@***.***> wrote:
Also interested in this and happy to help
—
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACECGJBGE7SUCW5L5D67OKLYP6QDNAVCNFSM5LAIYIL2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJQGU4DOOJXGAYA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Maybe I can try to merge or rebase this branch locally or test just these
changes locally
since technically this is just maintenance we have to do to release after
merging
…On Tue, Jan 23, 2024, 8:17 AM David Ankin ***@***.***> wrote:
Latest is on this branch:
* Merged testcontainers-core back with testcontainers like the other
modules
* Fixed tests on Ubuntu
* Fixed docs/doc tests after moving modules/on Ubuntu
* Fixed npipe bug on windows (still wondering about the right answer there
in #415)
* Wasn't able to check the whole windows test suite yet, where I left off
main...alexanderankin:testcontainers-python:poetry-refactor-changes-to-publish
On Tue, Jan 23, 2024, 6:53 AM Guy Shtub ***@***.***> wrote:
> Also interested in this and happy to help
>
> —
> Reply to this email directly, view it on GitHub
> <#167 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACECGJBGE7SUCW5L5D67OKLYP6QDNAVCNFSM5LAIYIL2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJQGU4DOOJXGAYA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
hi @fruch, i have backed up your commit as it exists today in here: dd6520d - please confirm its okay to rebase and push some commits to your branch to adjust to the new structure (#408)? i see that you have enabled thanks, |
Go right ahead, ping me you are done, I would give it a look (can do that also after it merged) |
dd6520d
to
1114f4d
Compare
i dont think we actually want to merge this when it references an abandoned docker image for cassandra, so ive made some adjustments here - fruch/testcontainers-python@cassandra_scylla_support...testcontainers:testcontainers-python:cassandra_scylla_support_image_improvement with these additional changes i think this is ready to merge |
a4f78b7
to
0b0711e
Compare
rebased so this is ready to be merged linking related - https://github.com/testcontainers/testcontainers-java/pull/8002/files |
🤖 I have created a release *beep* *boop* --- ## [4.8.0](testcontainers-v4.7.2...testcontainers-v4.8.0) (2024-08-14) ### Features * Adding support for Cassandra and Scylla ([#167](#167)) ([2d8bc11](2d8bc11)) * **compose:** ability to retain volumes when using context manager ([#659](#659)) ([e1e3d13](e1e3d13)) * **compose:** add ability to get docker compose config ([#669](#669)) ([8c28a86](8c28a86)) * **core:** add ability to do OR & AND for waitforlogs ([#661](#661)) ([b1453e8](b1453e8)) * **new:** Added AWS Lambda module ([#655](#655)) ([9161cb6](9161cb6)) * refactor network setup ([#678](#678)) ([d5de0aa](d5de0aa)) ### Bug Fixes * Add Db2 support ([#673](#673)) ([1e43923](1e43923)) * bring back cassandra driver bc otherwise how does it get installed for cassandra module test run? ([#680](#680)) ([71c3a1a](71c3a1a)) * **rabbitmq:** add `vhost` as parameter to RabbitMqContainer ([#656](#656)) ([fa2081a](fa2081a)) * **selenium:** add Arg/Options to api of selenium container ([#654](#654)) ([e02c1b3](e02c1b3)), closes [#652](#652) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This add the support for those cassandra based dbs
and their drivers, cassandra-driver, scylla-driver
Ref: https://cassandra.apache.org/
Ref: https://www.scylladb.com/
Ref: https://pypi.org/project/cassandra-driver/
Ref: https://pypi.org/project/scylla-driver/