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: Clean all pyenv shims #33080

Merged
merged 12 commits into from
Dec 5, 2023
Merged

Conversation

bnchrch
Copy link
Contributor

@bnchrch bnchrch commented Dec 4, 2023

Problem

When you uninstall pipelines (e.g. airbyte-ci) from pyenv, it can be readded if it exists in anyother pyenv paths via pyenv init -. A common line in users .zshrc file

Solution

Clean out any path located at pyenv whence --path airbyte-ci

closes #33086

@bnchrch bnchrch requested a review from a team December 4, 2023 22:45
Copy link

vercel bot commented Dec 4, 2023

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 Dec 5, 2023 0:17am

@bnchrch bnchrch enabled auto-merge (squash) December 5, 2023 00:12
Copy link
Contributor

Choose a reason for hiding this comment

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

since we're using it for url lib, maybe hook-urllib.py?


def get_ssl_context():
"""
Returns an ssl.SSLContext object with the custom certificate file if certifi is installed, otherwise
Copy link
Contributor

Choose a reason for hiding this comment

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

otherwise?

Returns the path to the custom certificate file if certifi is installed, otherwise None.

HACK: This is a workaround for the fact that the pyinstaller binary does not know how or where to
find the ssl certificates file. This is a problem because the binary is built on a different system
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
find the ssl certificates file. This is a problem because the binary is built on a different system
find the ssl certificates file. This happens because the binary is built on a different system

Comment on lines 28 to 35
WHY: this works when certifi is not found:
If you run this file directly, it will use the system python interpreter and will be able to find
the ssl certificates file.

WHY: this works when certifi is found:
When this file is run by the pyinstaller binary, it is through the pipelines project, which has
certifi installed. This means that when this file is run by the pyinstaller binary, it will be able
to find the ssl certificates file in the certifi package.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is great. I'd add "e.g. when running in dev mode" to the top.

@bnchrch bnchrch disabled auto-merge December 5, 2023 00:14
@bnchrch bnchrch enabled auto-merge (squash) December 5, 2023 00:17
@bnchrch bnchrch merged commit a1d9926 into master Dec 5, 2023
21 checks passed
@bnchrch bnchrch deleted the bnchrch/ci/update-clean-pyenv branch December 5, 2023 00:26
rishabh-cldcvr pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Dec 14, 2023
Co-authored-by: erohmensing <erohmensing@gmail.com>
Co-authored-by: bnchrch <bnchrch@users.noreply.github.com>
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.

Fix airbyte-ci ssl and pyenv shim install issues
2 participants