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: Do not install path-deps in python-builder #442

Merged
merged 1 commit into from
May 14, 2024

Conversation

ErikDeSmedt
Copy link
Collaborator

The python-builder is the first stage when building the Dockerfile.
It installs all python dependencies into a venv.

Installing dependencies is time-consuming and we want to cache this.
Therefore, we don't want to include the path-dependencies yet. If we
would add gl-client and gl-testing we would have to rebuild the
entire docker container every time we change a line in the code-base.

In the python-builder we first generate a list of dependencies using
poetry export. We filter out the path-dependencies of this list before
installing them.

However, the script to filter out the path-dependencies is broken. We
fail to filter out the path-dependencies. This modification fixes the
problem and ensures the pipeline runs again.

The `python-builder` is the first stage when building the Dockerfile.
It installs all python dependencies into a `venv`.

Installing dependencies is time-consuming and we want to cache this.
Therefore, we don't want to include the path-dependencies yet. If we
would add `gl-client` and `gl-testing` we would have to rebuild the
entire docker container every time we change a line in the code-base.

In the `python-builder` we first generate a list of dependencies using
`poetry export`. We filter out the path-dependencies of this list before
installing them.

However, the script to filter out the path-dependencies is broken. We
fail to filter out the path-dependencies. This modification fixes the
problem and ensures the pipeline runs again.
@ErikDeSmedt
Copy link
Collaborator Author

The error message given by poetry is a bit tricky. It hints to a problem with verifying the hashes.

This is an alternative to the --without-hashes @cdecker applied yesterday to other branches.

@cdecker cdecker merged commit 0644a8f into Blockstream:main May 14, 2024
19 checks passed
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.

2 participants