| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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: |
Sorry, something went wrong.
|
@fruch hello. Can you update this PR? |
Sorry, something went wrong.
|
Thanks for the additions and apologies for the slow reply. A few things to get this integrated:
|
Sorry, something went wrong.
I've rebased and added the test to CI but the building of requirements is failing: There are incompatible versions in the resolved dependencies: protobuf<4.0.0dev (from google-cloud-pubsub==1.7.2->testcontainers===dev->-r requirements.in (line 1)) protobuf<5.0.0dev,>=3.20.1 (from google-api-core[grpc]==2.10.1->google-cloud-pubsub==1.7.2->testcontainers===dev->-r requirements.in (line 1)) protobuf<5.0.0dev,>=3.15.0 (from googleapis-common-protos[grpc]==1.56.4->google-api-core[grpc]==2.10.1->google-cloud-pubsub==1.7.2->testcontainers===dev->-r requirements.in (line 1)) protobuf>=4.21.3 (from grpcio-status==1.49.0->google-api-core[grpc]==2.10.1->google-cloud-pubsub==1.7.2->testcontainers===dev->-r requirements.in (line 1)) I think pinning of google-cloud-pubsub is problematic, and google packages are conflicting each other. |
Sorry, something went wrong.
|
@yakimka @tillahoffmann waiting for approval for running the CI |
Sorry, something went wrong.
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. |
Sorry, something went wrong.
|
We may have to get #209 merged first to get around the google dependency issue. |
Sorry, something went wrong.
|
I have a relatively strong preference to remove the cache for two reasons. First, it's more code to maintain. Second, I don't think the caching will help in most real-world scenarios. I appreciate that runtime is different across different machines, but getting a single image takes about 4ms on my machine. Using the cache, getting a single image takes about 300ms. It'll of course be quicker the next time images are fetched, but we'd have to use at least 75 containers per test suite to make the cache worthwhile. To have a delay of one second over the cached version, we'd have to run about 325 containers. I'd argue that for a test suite that runs more than 300 docker containers a delay of one second is negligible. But let me know if I misunderstood/miscalculated. |
Sorry, something went wrong.
Seems that just removing the pinning helped |
Sorry, something went wrong.
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, something went wrong.
|
Sorry, I posted on the wrong thread. 🤦♂️ |
Sorry, something went wrong.
@tillahoffmann would it be o.k. to take the code changes from #209, and test it in tandam ? |
Sorry, something went wrong.
|
Hi, @fruch I see there are conflicts that should be resolved, is it something that you should handle? Thanks, |
Sorry, something went wrong.
I guess I could, I've almost forgotten about this one, it's almost a whole year since I've opened this one.
|
Sorry, something went wrong.
Thanks! @tillahoffmann can we please push it once @fruch resolves the conflicts? This seems like a great addition to testcontainers! |
Sorry, something went wrong.
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 ? |
Sorry, something went wrong.
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: |
Sorry, something went wrong.
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 fruch@scylladb.com |
Sorry, something went wrong.
|
@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 ? |
Sorry, something went wrong.
|
@tillahoffmann looks like I've missed updating the requriements files for 3.7, now it should run o.k. |
Sorry, something went wrong.
|
Guys, can we please push this one? It's really a great addition and we would like to avoid another conflicts. |
Sorry, something went wrong.
|
@tillahoffmann @yakimka it's now passes all the tests... |
Sorry, something went wrong.
In the meanwhile, I'd solve the current conflicts. |
Sorry, something went wrong.
|
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 |
Sorry, something went wrong.
|
@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 |
Sorry, something went wrong.
|
Also interested in this and happy to help |
Sorry, something went wrong.
|
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:
***@***.***>
|
Sorry, something went wrong.
|
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:
> ***@***.***>
>
|
Sorry, something went wrong.
|
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 Maintainers are allowed to edit this pull request., so thank you for that, but i am in a habit of asking before i force push, so I appreciate your timely response (or we will figure out something to do for a cassandra implementation based off of this one, i suppose) thanks, |
Sorry, something went wrong.
Go right ahead, ping me you are done, I would give it a look (can do that also after it merged) |
Sorry, something went wrong.
|
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 |
Sorry, something went wrong.
|
rebased so this is ready to be merged linking related - https://github.com/testcontainers/testcontainers-java/pull/8002/files |
Sorry, something went wrong.
🤖 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>
| Back | FazBrowse Home | New Git URL |
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/