-
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-plugins: fix build of multiple plugins (#2445)
There were overall 3 issues that needed to be fixed in the build of those plugins: The first one is 2.0 major release of pytest-docker (https://pypi.org/project/pytest-docker/#history) which we use for starting docker container in some plugin tests . This impacted us because 1. pytest-docker change default command from `docker-compose` to `docker compose` (no dash) 2. But the library we use (docker-compose) installs only `docker-compose` command (with a dash) -- The other problematic library is the installation of docker-compose itself :). docker-compose depends on PyYaml and PyYAML is having the following issue: yaml/pyyaml#724 (in short a recent release of Cython 3.0 broke PyYAML) As a workaround, we can pin `PyYAML==5.3.1` And also remove eager (transitive) upgrades when installing the package with pip to reduce the chance of accidentally upgrading it. -- Finally removed all non- testing dependencies from requirements.txt. In one of the plugin was failing to install because it was missing install requirements in setup.py and was not caught during testing because requirements.txt was installing that dependency. ------ An alternative approach to fix it might have been to switch to use [testcontainer](https://pypi.org/project/testcontainers/) (like vdk-trino uses) instead of pytest-docker + docker-compose. But that would require refactoring of the tests so I opted out for now.
- Loading branch information
1 parent
05f64f8
commit 116b6c7
Showing
13 changed files
with
32 additions
and
32 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
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
docker-compose | ||
|
||
# testing requirements | ||
click | ||
docker-compose | ||
psycopg2-binary | ||
pytest-docker | ||
tabulate | ||
vdk-core | ||
pytest-docker<2 | ||
|
||
# install earlier version due to https://github.com/yaml/pyyaml/issues/601 | ||
PyYAML==5.3.1 | ||
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 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
docker-compose | ||
|
||
# testing requirements | ||
docker-compose | ||
pytest-docker | ||
pytest-docker<2 | ||
|
||
# install earlier version due to https://github.com/yaml/pyyaml/issues/601 | ||
PyYAML==5.3.1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
docker-compose | ||
|
||
# Pinned minikerberos because the current implementation is not compatible with 0.3.0+ | ||
# https://github.com/vmware/versatile-data-kit/issues/1169 | ||
minikerberos==0.2.20 | ||
pytest | ||
pytest-docker | ||
requests-kerberos | ||
vdk-core | ||
pytest-docker<2 | ||
|
||
# install earlier version due to https://github.com/yaml/pyyaml/issues/601 | ||
PyYAML==5.3.1 | ||
|
||
# testing requirements | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
# testing requirements | ||
click | ||
docker-compose | ||
psycopg2-binary | ||
pytest-docker | ||
tabulate | ||
vdk-core | ||
# testing requirements | ||
pytest-docker<2 | ||
|
||
# install earlier version due to https://github.com/yaml/pyyaml/issues/601 | ||
PyYAML==5.3.1 | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
# testing requirements | ||
click | ||
docker-compose | ||
|
||
testcontainers | ||
trino | ||
vdk-core | ||
|