From: Max Dymond Date: Tue, 22 Oct 2024 12:31:22 +0000 (+0100) Subject: ci: fix renovate's matching for OpenSSL and quictls X-Git-Tag: curl-8_11_0~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e43d37c54136c8700ec904d0506187db7269fe64;p=thirdparty%2Fcurl.git ci: fix renovate's matching for OpenSSL and quictls Renovate only matches on the raw version numbers of a package, but OpenSSL includes `openssl-` as a prefix in the version number. This change means that the match string now expects the `openssl-` prefix and will just update the version portion. This also updates quictls so that renovate can detect and update the version correctly. Closes #15359 --- diff --git a/.github/workflows/http3-linux.yml b/.github/workflows/http3-linux.yml index 074d1ef622..296c554f5c 100644 --- a/.github/workflows/http3-linux.yml +++ b/.github/workflows/http3-linux.yml @@ -43,9 +43,9 @@ permissions: {} env: MAKEFLAGS: -j 5 # handled in renovate.json - openssl3-version: openssl-3.3.0 - # unhandled - quictls-version: 3.3.0-quic1 + openssl3-version: 3.3.0 + # handled in renovate.json + quictls-version: 3.3.0 # renovate: datasource=github-tags depName=gnutls/gnutls versioning=semver registryUrl=https://github.com gnutls-version: 3.8.7 wolfssl-version: master @@ -96,7 +96,7 @@ jobs: cache-name: cache-quictls-no-deprecated with: path: /home/runner/quictls/build - key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quictls-version }} + key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quictls-version }}-quic1 - name: cache gnutls uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4 @@ -173,7 +173,7 @@ jobs: - if: steps.cache-quictls-no-deprecated.outputs.cache-hit != 'true' run: | cd $HOME - git clone --quiet --depth=1 -b openssl-${{ env.quictls-version }} https://github.com/quictls/openssl quictls + git clone --quiet --depth=1 -b openssl-${{ env.quictls-version }}-quic1 https://github.com/quictls/openssl quictls cd quictls ./config no-deprecated --prefix=$PWD/build --libdir=lib make @@ -408,7 +408,7 @@ jobs: - name: 'install openssl3' if: matrix.build.name == 'openssl-quic' && steps.cache-openssl3.outputs.cache-hit != 'true' run: | - git clone --quiet --depth=1 -b ${{ env.openssl3-version }} https://github.com/openssl/openssl + git clone --quiet --depth=1 -b openssl-${{ env.openssl3-version }} https://github.com/openssl/openssl cd openssl ./config --prefix=$HOME/openssl3/build make -j1 install_sw diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 4ea0f92332..c7fe15bfb4 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -50,9 +50,9 @@ env: # renovate: datasource=github-tags depName=awslabs/aws-lc versioning=semver registryUrl=https://github.com awslc-version: 1.37.0 # handled in renovate.json - openssl3-version: openssl-3.3.2 - # unhandled - quictls-version: 3.3.0-quic1 + openssl3-version: 3.3.2 + # handled in renovate.json + quictls-version: 3.3.0 # renovate: datasource=github-tags depName=rustls/rustls-ffi versioning=semver registryUrl=https://github.com rustls-version: 0.14.0 @@ -439,7 +439,7 @@ jobs: # Cherry-Pick the fix for testing https://github.com/openssl/openssl/pull/24782 # Drop this when bumping to OpenSSL 3.4.0 or upper. run: | - git clone --quiet --depth=1 -b ${{ env.openssl3-version }} https://github.com/openssl/openssl + git clone --quiet --depth=1 -b openssl-${{ env.openssl3-version }} https://github.com/openssl/openssl cd openssl git fetch --quiet --depth=2 origin d8def79838cd0d5e7c21d217aa26edb5229f0ab4 git cherry-pick -n d8def79838cd0d5e7c21d217aa26edb5229f0ab4 @@ -454,12 +454,12 @@ jobs: cache-name: cache-quictls with: path: /home/runner/quictls - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.quictls-version }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.quictls-version }}-quic1 - name: 'build quictls' if: contains(matrix.build.install_steps, 'quictls') && steps.cache-quictls.outputs.cache-hit != 'true' run: | - git clone --quiet --depth=1 -b openssl-${{ env.quictls-version }} https://github.com/quictls/openssl + git clone --quiet --depth=1 -b openssl-${{ env.quictls-version }}-quic1 https://github.com/quictls/openssl cd openssl ./config --prefix=$HOME/quictls --libdir=lib make -j1 install_sw diff --git a/renovate.json b/renovate.json index 2a4b0c676c..efe632a1d5 100644 --- a/renovate.json +++ b/renovate.json @@ -80,8 +80,21 @@ "datasourceTemplate": "github-tags", "depNameTemplate": "openssl/openssl", "versioningTemplate": "semver", - "extractVersionTemplate": "^openssl-(?\\d+)\\.(?\\d+)\\.(?\\d+)$", - "registryUrlTemplate": "https://github.com" + "extractVersionTemplate": "^openssl-(?.*)$" + }, + { + "customType": "regex", + "fileMatch": [ + "^.github/workflows/linux.yml$", + "^.github/workflows/http3-linux.yml$" + ], + "matchStrings": [ + "quictls-version: (?.*)\\s" + ], + "datasourceTemplate": "github-tags", + "depNameTemplate": "quictls/openssl", + "versioningTemplate": "semver", + "extractVersionTemplate": "^openssl-(?.*)-quic1$" } ] }