]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-123418: Update CI to use fresh OpenSSL releases (GH-123675) (#123699)
authorZachary Ware <zach@python.org>
Tue, 22 Oct 2024 15:48:51 +0000 (10:48 -0500)
committerGitHub <noreply@github.com>
Tue, 22 Oct 2024 15:48:51 +0000 (15:48 +0000)
* [3.11] gh-123418: Update CI to use fresh OpenSSL releases (GH-123675)

Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads
(cherry picked from commit 56b00f4705634af2861a8aa9c2eb5769012220f0)

Co-authored-by: Zachary Ware <zach@python.org>
* Adjust build_ubuntu_ssltests job to use cache for the correct OS version

.github/workflows/build.yml
.github/workflows/reusable-ubuntu.yml
Misc/NEWS.d/next/Tools-Demos/2024-09-04-10-07-51.gh-issue-123418.1eIFZb.rst [new file with mode: 0644]
Tools/ssl/multissltests.py

index f8f4e69fc3eb04c56df78aab72a6e16eb52fbcb8..fd809714fa951a8c0b72c0dffda12e9b53c64e26 100644 (file)
@@ -235,7 +235,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu-20.04]
-        openssl_ver: [1.1.1w, 3.0.13, 3.1.5, 3.2.1]
+        openssl_ver: [1.1.1w, 3.0.15, 3.1.7, 3.2.3]
     env:
       OPENSSL_VER: ${{ matrix.openssl_ver }}
       MULTISSL_DIR: ${{ github.workspace }}/multissl
@@ -291,7 +291,7 @@ jobs:
     needs: check_source
     if: needs.check_source.outputs.run_tests == 'true'
     env:
-      OPENSSL_VER: 3.0.13
+      OPENSSL_VER: 3.0.15
       PYTHONSTRICTEXTENSIONBUILD: 1
       ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
     steps:
index 6beafb4c3fca2d069388c7a7a84ef2a1cfa80d23..70478d400ccb5eb14862c19955328f2892a14f7a 100644 (file)
@@ -18,7 +18,7 @@ jobs:
       matrix:
         os: [ubuntu-20.04]
     env:
-      OPENSSL_VER: 3.0.13
+      OPENSSL_VER: 3.0.15
       PYTHONSTRICTEXTENSIONBUILD: 1
     steps:
     - uses: actions/checkout@v4
diff --git a/Misc/NEWS.d/next/Tools-Demos/2024-09-04-10-07-51.gh-issue-123418.1eIFZb.rst b/Misc/NEWS.d/next/Tools-Demos/2024-09-04-10-07-51.gh-issue-123418.1eIFZb.rst
new file mode 100644 (file)
index 0000000..fb9ac9e
--- /dev/null
@@ -0,0 +1,2 @@
+Update GitHub CI workflows to use OpenSSL 3.0.15 and multissltests to use
+3.0.15, 3.1.7, and 3.2.3.
index 99ecc45a637d2fd0541c298c858778c6b61d4de5..b59c98f401a9b3dc0b4553a5bc7dcf00087c01f8 100755 (executable)
@@ -48,9 +48,9 @@ OPENSSL_OLD_VERSIONS = [
 
 OPENSSL_RECENT_VERSIONS = [
     "1.1.1w",
-    "3.0.13",
-    "3.1.5",
-    "3.2.1",
+    "3.0.15",
+    "3.1.7",
+    "3.2.3",
 ]
 
 LIBRESSL_OLD_VERSIONS = [
@@ -395,6 +395,7 @@ class AbstractBuilder(object):
 class BuildOpenSSL(AbstractBuilder):
     library = "OpenSSL"
     url_templates = (
+        "https://github.com/openssl/openssl/releases/download/openssl-{v}/openssl-{v}.tar.gz",
         "https://www.openssl.org/source/openssl-{v}.tar.gz",
         "https://www.openssl.org/source/old/{s}/openssl-{v}.tar.gz"
     )
@@ -437,6 +438,7 @@ class BuildOpenSSL(AbstractBuilder):
             parsed = parsed[:2]
         return ".".join(str(i) for i in parsed)
 
+
 class BuildLibreSSL(AbstractBuilder):
     library = "LibreSSL"
     url_templates = (