Update our CI jobs to cover the 3.6 stable branch

The coveralls, prov-compat and provider-compatibiity CI jobs test each
of the stable branches.  We need to add 3.6 to the list in each of those
tests

Fixes openssl/project#1424

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28519)
This commit is contained in:
Neil Horman 2025-09-11 08:40:14 -04:00
parent 3ae8755aa2
commit 5aae731a7d
4 changed files with 42 additions and 10 deletions

View File

@ -17,30 +17,50 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
branch: ['3.5', '3.4', '3.3', '3.2', '3.0'] release: [
{
branch: '3.6',
cppflags: ''
}, {
branch: '3.5',
cppflags: 'CPPFLAGS=-ansi'
}, {
branch: '3.4',
cppflags: 'CPPFLAGS=-ansi'
}, {
branch: '3.3',
cppflags: 'CPPFLAGS=-ansi',
}, {
branch: '3.2',
cppflags: 'CPPFLAGS=-ansi'
}, {
branch: '3.0',
cppflags: 'CPPFLAGS=-ansi'
}
]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.branch) }} if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.release.branch) }}
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 fetch-depth: 0
- name: cherry-pick - name: cherry-pick
if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.branch) }} if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.release.branch) }}
run: | run: |
REFEND=$(git rev-parse HEAD) REFEND=$(git rev-parse HEAD)
REFSTART=$(git rev-parse $REFEND~${{ github.event.pull_request.commits }}) REFSTART=$(git rev-parse $REFEND~${{ github.event.pull_request.commits }})
git checkout ${{ format('openssl-{0}', matrix.branch) }} git checkout ${{ format('openssl-{0}', matrix.release.branch) }}
git config user.name "OpenSSL Machine" git config user.name "OpenSSL Machine"
git config user.email "openssl-machine@openssl.org" git config user.email "openssl-machine@openssl.org"
echo Cherry-picking $REFSTART..$REFEND echo Cherry-picking $REFSTART..$REFEND
git cherry-pick $REFSTART..$REFEND git cherry-pick $REFSTART..$REFEND
- name: config - name: config
if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.branch) }} if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.release.branch) }}
run: CPPFLAGS=-ansi ./config --strict-warnings --banner=Configured no-asm enable-fips --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump run: ${{ matrix.release.cppflags }} ./config --strict-warnings --banner=Configured no-asm enable-fips --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
- name: make - name: make
if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.branch) }} if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.release.branch) }}
run: make -s -j4 run: make -s -j4
- name: make test - name: make test
if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.branch) }} if: ${{ contains(join(github.event.pull_request.labels.*.name,','),matrix.release.branch) }}
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}

View File

@ -43,6 +43,9 @@ jobs:
else else
MATRIX=$(cat << EOF MATRIX=$(cat << EOF
[{ [{
"branch": "openssl-3.6",
"extra_config": "no-afalgeng enable-fips enable-tfo"
},{
"branch": "openssl-3.5", "branch": "openssl-3.5",
"extra_config": "no-afalgeng enable-fips enable-tfo" "extra_config": "no-afalgeng enable-fips enable-tfo"
},{ },{

View File

@ -129,6 +129,10 @@ jobs:
name: openssl-3.5, name: openssl-3.5,
dir: branch-3.5, dir: branch-3.5,
tgz: branch-3.5.tar.gz, tgz: branch-3.5.tar.gz,
}, {
name: openssl-3.6,
dir: branch-3.6,
tgz: branch-3.6.tar.gz,
}, { }, {
name: master, name: master,
dir: branch-master, dir: branch-master,

View File

@ -137,6 +137,11 @@ jobs:
dir: branch-3.5, dir: branch-3.5,
tgz: branch-3.5.tar.gz, tgz: branch-3.5.tar.gz,
extra_config: "", extra_config: "",
}, {
name: openssl-3.6,
dir: branch-3.6,
tgz: branch-3.6.tar.gz,
extra_config: "",
}, { }, {
name: master, name: master,
dir: branch-master, dir: branch-master,
@ -209,10 +214,10 @@ jobs:
# Note that releases are not used as a test environment for # Note that releases are not used as a test environment for
# later providers. Problems in these situations ought to be # later providers. Problems in these situations ought to be
# caught by cross branch testing before the release. # caught by cross branch testing before the release.
tree_a: [ branch-master, branch-3.5, branch-3.4, branch-3.3, tree_a: [ branch-master, branch-3.6, branch-3.5, branch-3.4, branch-3.3,
branch-3.2, branch-3.0, branch-3.2, branch-3.0,
openssl-3.0.0, openssl-3.0.8, openssl-3.0.9, openssl-3.1.2 ] openssl-3.0.0, openssl-3.0.8, openssl-3.0.9, openssl-3.1.2 ]
tree_b: [ branch-master, branch-3.5, branch-3.4, branch-3.3, tree_b: [ branch-master, branch-3.6, branch-3.5, branch-3.4, branch-3.3,
branch-3.2, branch-3.0 ] branch-3.2, branch-3.0 ]
steps: steps:
- name: early exit checks - name: early exit checks