-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🐛 source-file: fix integration tests #31152
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ def with_python_base(context: PipelineContext, python_version: str = "3.10") -> | |
sh_dash_c( | ||
[ | ||
"apt-get update", | ||
"apt-get install -y build-essential cmake g++ libffi-dev libstdc++6 git", | ||
"apt-get install -y build-essential cmake g++ libffi-dev libstdc++6 git curl", | ||
"pip install pip==23.1.2", | ||
] | ||
) | ||
|
@@ -82,6 +82,7 @@ def with_testing_dependencies(context: PipelineContext) -> Container: | |
|
||
return ( | ||
python_environment.with_exec(["pip", "install"] + CONNECTOR_TESTING_REQUIREMENTS) | ||
.with_exec(sh_dash_c(["curl -fsSL https://get.docker.com | sh"])) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. python test containers now include docker There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So the use case in here is we want to be able to use docker in tests to spin up containers nessessary for certain test environments. e.g. source-file needs docker compose for its test "remote" file server (@pedroslopez do I have that right?) In any sense looking at the code we already have I see But I dont think those are useful here for installing docker-compose. (@alafanechere can you fact check me here?) So if thats all true then I think were on the right track but should have a modification
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI: In #30474 this If we need docker-compose for testing I suggest to install the pip distributed docker-compose by declaring If we really want to use the latest docker-compose version I suggest to only install the docker-compose plugin. This can be added to I'd prefer that we stick to the pip distributed docker compose as it will not require a pre/post build hook implementation for this connector. And I believe it's fine to use an old docker compose version in this context. |
||
.with_file(f"/{PYPROJECT_TOML_FILE_PATH}", pyproject_toml_file) | ||
.with_file(f"/{LICENSE_SHORT_FILE_PATH}", license_short_file) | ||
) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "pipelines" | ||
version = "1.4.6" | ||
version = "1.5.0" | ||
description = "Packaged maintained by the connector operations team to perform CI for connectors' pipelines" | ||
authors = ["Airbyte <[email protected]>"] | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"pyxlsb==1.0.9", | ||
] | ||
|
||
TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-docker~=1.0.0", "pytest-mock~=3.6.1", "docker-compose"] | ||
TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-docker~=2.0", "pytest-mock~=3.6.1"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. docker-compose is deprecated and was causing infinite loop when installing test dependencies. We now bump pytest-docker to v2, which removes usages of |
||
|
||
setup( | ||
name="source_file", | ||
|
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.
required to be able to install docker