Update test coverage for openSUSE/-minimal to 15.1

Use openSUSE 15.1 as default, which is the latest released stable
openSUSE release.

Remove leftovers for unmaintained openSUSE 42.2 images.

Depends-On: https://review.opendev.org/#/c/660126/
Change-Id: I0b204b7b3d7ae74b6749320b3bfe1ca89d154ebb
This commit is contained in:
Dirk Mueller 2019-05-20 16:31:41 +02:00
parent 3d3ba26edd
commit a81cf9e231
19 changed files with 34 additions and 18 deletions

View File

@ -69,7 +69,7 @@
dib_functests:
- centos7/build-succeeds
- opensuse/build-succeeds
- opensuse/opensuse150-build-succeeds
- opensuse/opensuse151-build-succeeds
- fedora/build-succeeds
- ubuntu/trusty-build-succeeds
- ubuntu/xenial-build-succeeds
@ -187,7 +187,7 @@
# opensuse-minimal can only build on xenial ATM, as other
# platforms don't have zypper
dib_functests_extra:
- opensuse-minimal/opensuse150-build-succeeds
- opensuse-minimal/opensuse151-build-succeeds
- job:
name: dib-functests-xenial-python3-containers

View File

@ -17,7 +17,9 @@ if [ -z "${DIB_PYTHON_VERSION:-}" ]; then
elif [ "$DISTRO_NAME" == "rhel7" ]; then
DIB_PYTHON_VERSION=2
elif [ "$DISTRO_NAME" == "opensuse" ]; then
DIB_PYTHON_VERSION=2
if [ "${DIB_RELEASE:0:2}" == "42" ]; then
DIB_PYTHON_VERSION=2
fi
fi
fi

View File

@ -13,5 +13,5 @@ Environment Variables
DIB_RELEASE
:Required: No
:Default: 15.0
:Default: 15.1
:Description: Set the desired openSUSE release.

View File

@ -1,4 +1,4 @@
export DISTRO_NAME=opensuse
DIB_RELEASE=${DIB_RELEASE:-15.0}
DIB_RELEASE=${DIB_RELEASE:-15.1}
export DIB_RELEASE=${DIB_RELEASE,,}
export DIB_OPENSUSE_PATTERNS=patterns-openSUSE-base

View File

@ -1 +0,0 @@
Verify we can build an openSUSE Leap 15.0 image.

View File

@ -0,0 +1 @@
Verify we can build an openSUSE Leap 15.1 image.

View File

@ -14,7 +14,7 @@ Environment Variables
DIB_RELEASE
:Required: No
:Default: 15.0
:Default: 15.1
:Description: Set the desired openSUSE release.
DIB_CLOUD_IMAGES

View File

@ -1,5 +1,5 @@
export DISTRO_NAME=opensuse
export DIB_RELEASE=${DIB_RELEASE:-15.0}
export DIB_RELEASE=${DIB_RELEASE:-15.1}
export DIB_OPENSUSE_PATTERNS=patterns-openSUSE-base
case ${DIB_RELEASE} in
# Old Leap releases

View File

@ -1 +0,0 @@
Verify we can build an openSUSE Leap 15.0 image.

View File

@ -0,0 +1 @@
Verify we can build an openSUSE Leap 15.1 image.

View File

@ -37,7 +37,7 @@ function cleanup() {
trap cleanup EXIT
ZYPPER_TARGET_OPTS="--non-interactive --gpg-auto-import-keys --root $TARGET_ROOT"
ZYPPER_INSTALL_OPTS="--no-recommends"
ZYPPER_INSTALL_SYSTEM_PYTHON="python3"
DIB_DISTRIBUTION_MIRROR=${DIB_DISTRIBUTION_MIRROR:-https://download.opensuse.org}
@ -46,6 +46,7 @@ case ${DIB_RELEASE} in
42*)
ZYPPER_REPOS="update=>${DIB_DISTRIBUTION_MIRROR}/update/leap/${DIB_RELEASE}/oss/ "
ZYPPER_REPOS+="oss=>${DIB_DISTRIBUTION_MIRROR}/distribution/leap/${DIB_RELEASE}/repo/oss/"
ZYPPER_INSTALL_SYSTEM_PYTHON="python"
;;
# New Leap releases
15*)
@ -94,9 +95,11 @@ sudo mount -t devpts $(mount_dev_pts_options) devpts $TARGET_ROOT/dev/pts
sudo mount -t sysfs none $TARGET_ROOT/sys
# Install filesystem, base and useful tools
sudo zypper ${ZYPPER_TARGET_OPTS} install ${ZYPPER_INSTALL_OPTS} filesystem
sudo zypper ${ZYPPER_TARGET_OPTS} install --no-recommends filesystem
# Install basic components in order
sudo zypper ${ZYPPER_TARGET_OPTS} install ${ZYPPER_INSTALL_OPTS} ${DIB_OPENSUSE_PATTERNS} python zypper sudo
sudo zypper ${ZYPPER_TARGET_OPTS} install \
${DIB_OPENSUSE_PATTERNS} ${ZYPPER_INSTALL_SYSTEM_PYTHON} \
zypper sudo ca-certificates-mozilla
# Put in a dummy /etc/resolv.conf over the temporary one we used
# to bootstrap. systemd has a bug/feature [1] that it will assume

View File

@ -9,7 +9,7 @@ Distributions which are supported as a build host:
- RHEL 6, 7
- Ubuntu 14.04 ("trusty")
- Gentoo
- openSUSE Leap 42.2, 42.3, 15.0 and Tumbleweed
- openSUSE Leap 42.3, 15.0, 15.1 and Tumbleweed
Distributions which are supported as a target for an image:
@ -20,4 +20,4 @@ Distributions which are supported as a target for an image:
- RHEL 6, 7
- Ubuntu 12.04 ("precise"), 14.04 ("trusty")
- Gentoo
- openSUSE Leap 42.2, 42.3, 15.0 and Tumbleweed (opensuse-minimal only)
- openSUSE Leap 42.3, 15.0, 15.1 and Tumbleweed (opensuse-minimal only)

View File

@ -0,0 +1,11 @@
---
deprecations:
- |
Support in opensuse and opensuse-minimal for openSUSE 42.2 has been removed
as these are end of life.
upgrade:
- |
The opensuse and opensuse-minimal element are now defaulting to build 15.1.
Building for 42.3 and 15.0 is still supported, however requires setting
DIB_RELEASE to '42.3' resp. '15.0' explicitly.

View File

@ -26,7 +26,7 @@ DEFAULT_SKIP_TESTS=(
# These require "zypper" on the host which is not available on
# all platforms
opensuse-minimal/build-succeeds
opensuse-minimal/opensuse150-build-succeeds
opensuse-minimal/opensuse151-build-succeeds
# non-voting; not used by infra currently
gentoo/build-succeeds
# Needs infra mirroring to move to voting job
@ -38,7 +38,7 @@ DEFAULT_SKIP_TESTS=(
# in the gate. Keep them in a -nv job until we can figure out
# better caching for the images
opensuse/build-succeeds
opensuse/opensuse423-build-succeeds
opensuse/opensuse151-build-succeeds
centos7/build-succeeds
debian/build-succeeds
fedora/build-succeeds