Skip to content
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

CI: update --use-local-cdk arg in airbyte-ci, adds --use-cdk-ref arg #48457

Merged
merged 12 commits into from
Nov 13, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,16 @@ async def apply_python_development_overrides(context: ConnectorContext, connecto
if context.use_local_cdk:
context.logger.info("Using local CDK")
# mount the local cdk
path_to_cdk = "airbyte-cdk/python/"
path_to_cdk = "../airbyte-python-cdk" # Assume CDK is cloned in a sibling dir to `airbyte`
aaronsteers marked this conversation as resolved.
Show resolved Hide resolved
directory_to_mount = context.get_repo_dir(path_to_cdk)
aaronsteers marked this conversation as resolved.
Show resolved Hide resolved

context.logger.info(f"Mounting CDK from {directory_to_mount}")

# Install the airbyte-cdk package from the local directory
# We use `--force-reinstall` to use local CDK with the latest updates and dependencies
connector_container = connector_container.with_mounted_directory(f"/{path_to_cdk}", directory_to_mount).with_exec(
["pip", "install", "--force-reinstall", f"/{path_to_cdk}"]
)
connector_container = connector_container.with_mounted_directory(
path_to_cdk,
aaronsteers marked this conversation as resolved.
Show resolved Hide resolved
directory_to_mount,
).with_exec(["poetry", "add", f"--path={path_to_cdk}"])
aaronsteers marked this conversation as resolved.
Show resolved Hide resolved
aaronsteers marked this conversation as resolved.
Show resolved Hide resolved

return connector_container

Expand Down
Loading