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

airbyte-ci: run poetry check before poetry install on poetry package install #35204

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Feb 13, 2024

What

Closes #35205

On connector build we want to make sure the poetry.lock and pyproject.toml files are consistent in terms of dependency declaration

How

Run poetry check before poetry install

Copy link

vercel bot commented Feb 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2024 5:09pm

Copy link
Contributor Author

alafanechere commented Feb 13, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alafanechere and the rest of your teammates on Graphite Graphite

@alafanechere alafanechere marked this pull request as ready for review February 13, 2024 14:40
@alafanechere alafanechere requested a review from a team as a code owner February 13, 2024 14:40
@alafanechere alafanechere force-pushed the augustin/02-13-airbyte-ci_run_poetry_check_before_poetry_install_on_poetry_package_install branch from b31b4e5 to aa157aa Compare February 13, 2024 14:40
@@ -45,7 +45,7 @@ async def _create_builder_container(self, base_container: Container) -> Containe
Returns:
Container: The builder container, with installed dependencies.
"""
ONLY_BUILD_FILES = ["pyproject.toml", "poetry.lock", "poetry.toml", "setup.py", "requirements.txt"]
ONLY_BUILD_FILES = ["pyproject.toml", "poetry.lock", "poetry.toml", "setup.py", "requirements.txt", "README.md"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the README.md file is declared in pyproject.toml the poetry check command checks if it's available. It's why we need it at build time.

@alafanechere alafanechere enabled auto-merge (squash) February 13, 2024 14:48
@alafanechere alafanechere force-pushed the augustin/02-13-airbyte-ci_run_poetry_check_before_poetry_install_on_poetry_package_install branch from aa157aa to 8a3b485 Compare February 13, 2024 17:09
@alafanechere alafanechere changed the base branch from master to augustin/02-13-airbyte-ci_fix_unit_test February 13, 2024 17:09
@alafanechere alafanechere merged commit b36c529 into augustin/02-13-airbyte-ci_fix_unit_test Feb 13, 2024
2 of 3 checks passed
@alafanechere alafanechere deleted the augustin/02-13-airbyte-ci_run_poetry_check_before_poetry_install_on_poetry_package_install branch February 13, 2024 17:09
alafanechere added a commit that referenced this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

airbyte-ci: run poetry check on connector build
1 participant