-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vdk-trino: change test container library
This change is part of fixing vdk-trino which is failing regularly in the nightly builds . See #1559 Until now we used pytest-docker to start service container, this is switching it to testcontainers-python. There are multiple advanrages of using it. * Supposedly Testcontainers is built with performance in mind and uses a variety of techniques to minimize container startup time and resource usage like image reuse, container reuse, asynchronous operations. * It is far more popular lately - https://hugovk.github.io/top-pypi-packages/ is a site I frequently used to decide which library is likely to be more stable/used . It is showing testcontainers is 2000 places ahead of pytest-docker * Testcontainers provides a wider range of features for managing containers, such as starting and stopping them, waiting for them to become available, and exposing their ports to the host system * Testcontainers-Python allows you to define and configure containers using Python code instaed of yaml which pytest-docker required. Testing Done: ran the test suite of vdk-trino a few times and it was more stable and quick. I have not run actual benchmarks and recorded times but it seems abotu twice faster possibly. We will verify this as part of the nightly builds. Signed-off-by: Antoni Ivanov <[email protected]> vdk-trino: debugging commit Signed-off-by: Antoni Ivanov <[email protected]>
- Loading branch information
1 parent
7ccab56
commit d9fc846
Showing
6 changed files
with
129 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# testing requirements | ||
click | ||
docker-compose | ||
pytest-docker | ||
testcontainers | ||
trino | ||
vdk-core | ||
vdk-test-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.