-
Notifications
You must be signed in to change notification settings - Fork 935
Fixes to run python with --enable-all #9831
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
Open
julek-wolfssl
wants to merge
7
commits into
wolfSSL:master
Choose a base branch
from
julek-wolfssl:pytho-3.13.4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
99f590f
Add Python CI workflow and Blake2 EVP support
julek-wolfssl 0ed58ee
Revert version change
julek-wolfssl f9da5fa
Remove qt from enable-all as its defines are disruptive for most OSP's
julek-wolfssl c9a2b67
Configure wolfSSL to disable old names for softhsm
julek-wolfssl 996b14c
Apply copilot suggestions
julek-wolfssl 6f83d75
CI fixes
julek-wolfssl 5f53479
Adjust SendClientKeyExchange to use exact cipher overhead for DTLS MT…
julek-wolfssl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,142 @@ | ||
| name: Python Tests | ||
|
|
||
| # START OF COMMON SECTION | ||
| on: | ||
| push: | ||
| branches: [ 'master', 'main', 'release/**' ] | ||
| pull_request: | ||
| branches: [ '*' ] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| # END OF COMMON SECTION | ||
|
|
||
| jobs: | ||
| build_wolfssl: | ||
| name: Build wolfSSL | ||
| if: github.repository_owner == 'wolfssl' | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Build wolfSSL | ||
| uses: wolfSSL/actions-build-autotools-project@v1 | ||
| with: | ||
| path: wolfssl | ||
| configure: >- | ||
| --enable-all --enable-tlsv10 | ||
| 'CPPFLAGS=-DHAVE_SECRET_CALLBACK -DWOLFSSL_PYTHON' | ||
| check: false | ||
| install: true | ||
|
|
||
| - name: tar build-dir | ||
| run: tar -zcf build-dir.tgz build-dir | ||
|
|
||
| - name: Upload built lib | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: wolf-install-python | ||
| path: build-dir.tgz | ||
| retention-days: 5 | ||
|
|
||
| python_check: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - python_ver: 3.12.11 | ||
| tests: >- | ||
| test_ssl | ||
| test.test_asyncio.test_ssl | ||
| test.test_asyncio.test_sslproto | ||
| test_hashlib | ||
| test_hmac | ||
| test_secrets | ||
| test_ftplib | ||
| test_imaplib | ||
| test_poplib | ||
| test_smtplib | ||
| test_httplib | ||
| test_urllib2_localnet | ||
| test_xmlrpc | ||
| test_docxmlrpc | ||
| - python_ver: 3.13.4 | ||
| tests: >- | ||
| test_ssl | ||
| test.test_asyncio.test_ssl | ||
| test.test_asyncio.test_sslproto | ||
| test_hashlib | ||
| test_hmac | ||
| test_secrets | ||
| test_ftplib | ||
| test_imaplib | ||
| test_poplib | ||
| test_smtplib | ||
| test_httplib | ||
| test_urllib2_localnet | ||
| test_xmlrpc | ||
| test_docxmlrpc | ||
| - python_ver: 3.13.7 | ||
| tests: >- | ||
| test_ssl | ||
| test.test_asyncio.test_ssl | ||
| test.test_asyncio.test_sslproto | ||
| test_hashlib | ||
| test_hmac | ||
| test_secrets | ||
| test_ftplib | ||
| test_imaplib | ||
| test_poplib | ||
| test_smtplib | ||
| test_httplib | ||
| test_urllib2_localnet | ||
| test_xmlrpc | ||
| test_docxmlrpc | ||
| name: Python ${{ matrix.python_ver }} | ||
| if: github.repository_owner == 'wolfssl' | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 60 | ||
| needs: build_wolfssl | ||
| steps: | ||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| build-essential autoconf automake autoconf-archive pkgconf \ | ||
| libffi-dev libbz2-dev libreadline-dev libsqlite3-dev \ | ||
| zlib1g-dev libncursesw5-dev libgdbm-dev libnss3-dev \ | ||
| liblzma-dev uuid-dev pkg-config | ||
|
|
||
| - name: Download wolfSSL | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: wolf-install-python | ||
|
|
||
| - name: Untar wolfSSL build | ||
| run: tar -xf build-dir.tgz | ||
|
|
||
| - name: Checkout OSP | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: wolfssl/osp | ||
| path: osp | ||
|
|
||
| - name: Checkout CPython | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: python/cpython | ||
| ref: v${{ matrix.python_ver }} | ||
| path: cpython | ||
|
|
||
| - name: Apply wolfSSL patch | ||
| working-directory: cpython | ||
| run: patch -p1 < $GITHUB_WORKSPACE/osp/Python/wolfssl-python-${{ matrix.python_ver }}.patch | ||
|
|
||
| - name: Build CPython and run SSL and crypto tests | ||
| working-directory: cpython | ||
| run: | | ||
| export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/build-dir/lib:$LD_LIBRARY_PATH | ||
| rm -f aclocal.m4 | ||
| autoreconf -if | ||
| ./configure --with-wolfssl=$GITHUB_WORKSPACE/build-dir | ||
| make -j test TESTOPTS="-v ${{ matrix.tests }}" | ||
julek-wolfssl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.