Skip to content

Implement logic to catch externally built OpenSSL copies #19044

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

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

alopezz
Copy link
Contributor

@alopezz alopezz commented Nov 13, 2024

What does this PR do?

  • It adds a check during the repair step to find copies of dynamically linked versions of OpenSSL 3, for Windows and Linux.
  • To make that check pass on Windows, this also implements the build of confluent-kafka-python and all its dependency chain, allowing us to choose the OpenSSL version (retrieved and built via vcpkg).

macOS is currently left out because that rises questions about psycopg2-binary, which would need to be addressed. Since this is already useful without that, that is left for future work (that may require discussion among a few teams to fully resolve).

Motivation

BARX-669

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

@alopezz alopezz force-pushed the alopez/control-openssl3-dependencies branch 14 times, most recently from 6338c48 to 13e86f8 Compare November 20, 2024 12:32
@alopezz alopezz force-pushed the alopez/control-openssl3-dependencies branch 12 times, most recently from 8326f68 to 0372abf Compare November 25, 2024 13:53
@alopezz alopezz force-pushed the alopez/control-openssl3-dependencies branch 13 times, most recently from 52c0c5b to 5680648 Compare November 29, 2024 12:50
@alopezz alopezz force-pushed the alopez/control-openssl3-dependencies branch from 5680648 to 48b2881 Compare December 5, 2024 09:31
@alopezz alopezz marked this pull request as ready for review December 5, 2024 10:30
@alopezz alopezz requested review from a team as code owners December 5, 2024 10:30
@alopezz alopezz force-pushed the alopez/control-openssl3-dependencies branch from 48b2881 to 72bd534 Compare December 16, 2024 10:54
@alopezz alopezz enabled auto-merge December 16, 2024 12:11
with ZipFile(wheel) as zf:
names = zf.namelist()

return [name for name in names for pat in patterns if fnmatch(name, pat)]
Copy link
Member

Choose a reason for hiding this comment

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

Very nit because we do not care about performance here - you could yield each element instead of building a list

@alopezz alopezz added this pull request to the merge queue Dec 16, 2024
Merged via the queue into master with commit 13f2178 Dec 16, 2024
42 checks passed
@alopezz alopezz deleted the alopez/control-openssl3-dependencies branch December 16, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants