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

Add integration tests for OpenSSL-linking 3p modules #1587

Merged

Conversation

WillChilds-Klein
Copy link
Contributor

@WillChilds-Klein WillChilds-Klein commented May 10, 2024

Description of changes:

This change expands our python integration tests to load and exercise libcrypto-linking 3rd party modules. Cases covered include statically linked AWS-LC (default AWS CRT) and dynamically linked OpenSSL (AWS CRT, PyOpenSSL, PyCA). We also test these integrations with python's AWS-LC built in FIPS mode.

Call-outs:

Due to the pre-release nature of python 3.13 and 3.14, there are a few caveats for later versions: 3.12 introduced a change to drop setuptools from default virtual environments, causing installation issues for PyCA and PyOpenSSL on 3.13+. To work around this, we allow installation failure for those dependencies on newer (currently both 3.13 and 3.14 are pre-release) and exit early from the relevant test cases. We also encountered some issues installing CRT bindings from source on 3.12+, so for those versions we install the pre-compiled wheel module from PyPI, which uses AWS-LC under the hood.

Testing:

  • CI

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@codecov-commenter
Copy link

codecov-commenter commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.07%. Comparing base (fc06ecb) to head (2675f5e).
Report is 48 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1587      +/-   ##
==========================================
+ Coverage   77.90%   78.07%   +0.17%     
==========================================
  Files         561      562       +1     
  Lines       94632    94656      +24     
  Branches    13604    13574      -30     
==========================================
+ Hits        73725    73905     +180     
+ Misses      20315    20157     -158     
- Partials      592      594       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@WillChilds-Klein WillChilds-Klein force-pushed the python-integration-testing branch 6 times, most recently from 3d774f4 to 02a67cd Compare May 20, 2024 20:08
@WillChilds-Klein WillChilds-Klein marked this pull request as ready for review May 20, 2024 21:38
@WillChilds-Klein WillChilds-Klein requested a review from a team as a code owner May 20, 2024 21:38
justsmth
justsmth previously approved these changes May 23, 2024
@WillChilds-Klein WillChilds-Klein force-pushed the python-integration-testing branch from 2675f5e to aab761a Compare June 5, 2024 18:41
@WillChilds-Klein WillChilds-Klein enabled auto-merge (squash) June 5, 2024 18:41
@WillChilds-Klein WillChilds-Klein merged commit 4013299 into aws:main Jun 7, 2024
98 checks passed
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.

4 participants