wheel-build: reduce Bullseye build

Likely due to many less Python 3.9 wheels the Bullseye builds take too
long.  Given this is a new distro, limiting the builds to the latest
releases is a practical solution here.

Add the bullseye jobs so they test in the gate.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/798029
Change-Id: I9130014837d297fad6802c99da417dbb8f3a8b76
This commit is contained in:
Ian Wienand 2021-06-24 17:02:36 +10:00
parent 2dbfbf5e7a
commit 58873cad48
2 changed files with 11 additions and 2 deletions

View File

@ -17,9 +17,10 @@ exec 1> ${LOGS}/wheel-build.sh.log
exec 2>&1
# Extract and iterate over all the branch names.
if [[ $(uname -m) != 'x86_64' ]]; then
if [[ $(uname -m) != 'x86_64' ]] || $(lsb_release -a 2>&1 | grep -q bullseye) ; then
# Because arm64 has so many more wheels to make, we limit to just the latest
# two branches.
# two branches. Bullseye is using Python 3.9 by default and also
# has to build too much at this stage, so we do similar there.
BRANCHES=$(git --git-dir=$WORKING_DIR/.git branch -a | grep '^ stable' | \
tail -2)
else

View File

@ -23,6 +23,10 @@
files:
- playbooks/wheel-cache
- roles/build-wheel-cache
- build-wheel-cache-debian-bullseye:
files:
- playbooks/wheel-cache
- roles/build-wheel-cache
- build-wheel-cache-ubuntu-xenial:
files:
- playbooks/wheel-cache
@ -45,6 +49,10 @@
files:
- playbooks/wheel-cache
- roles/build-wheel-cache
- build-wheel-cache-debian-bullseye-arm64:
files:
- playbooks/wheel-cache
- roles/build-wheel-cache
- build-wheel-cache-ubuntu-bionic-arm64:
files:
- playbooks/wheel-cache