Bläddra i källkod

Merge "Add arm64 based functional test"

tags/2.33.0
Zuul Gerrit Code Review 3 månader sedan
förälder
incheckning
f6d32a684f
7 ändrade filer med 35 tillägg och 2 borttagningar
  1. +18
    -1
      .zuul.d/jobs.yaml
  2. +3
    -0
      .zuul.d/project.yaml
  3. +5
    -1
      diskimage_builder/elements/openstack-ci-mirrors/environment.d/11-dib-distribution-mirror.bash
  4. +4
    -0
      diskimage_builder/elements/ubuntu-minimal/test-elements/bionic-arm64-build-succeeds/README.rst
  5. +3
    -0
      diskimage_builder/elements/ubuntu-minimal/test-elements/bionic-arm64-build-succeeds/element-deps
  6. +1
    -0
      diskimage_builder/elements/ubuntu-minimal/test-elements/bionic-arm64-build-succeeds/environment.d/10-set-distro.bash
  7. +1
    -0
      diskimage_builder/elements/ubuntu-minimal/test-elements/bionic-arm64-build-succeeds/test-output-formats

+ 18
- 1
.zuul.d/jobs.yaml Visa fil

@@ -75,6 +75,16 @@
- ubuntu-systemd-container/bionic-build-succeeds
- ubuntu-systemd-container/xenial-build-succeeds

- job:
name: dib-functests-arm64
description: |
ARM64 build tests
abstract: true
parent: dib-functests-base
vars:
dib_functests:
- ubuntu-minimal/bionic-arm64-build-succeeds

# Trusty / Python 2 tests
- job:
name: dib-functests-trusty-python2
@@ -199,8 +209,15 @@
vars:
dib_python: python2

# Build and boot functional tests
# ARM64 tests
- job:
name: dib-functests-arm64-bionic
description: |
ARM64 image tests building on am ARM64 Bionic host
nodeset: ubuntu-bionic-arm64
parent: dib-functests-arm64

# Build and boot functional tests
- job:
name: dib-nodepool-functional-src-base
description: |


+ 3
- 0
.zuul.d/project.yaml Visa fil

@@ -32,6 +32,9 @@
- dib-functests-bionic-python3-image
- dib-functests-bionic-python3-extras
- dib-functests-bionic-python3-containers
check-arm64:
jobs:
- dib-functests-arm64-bionic
gate:
jobs:
- openstack-tox-pylint


+ 5
- 1
diskimage_builder/elements/openstack-ci-mirrors/environment.d/11-dib-distribution-mirror.bash Visa fil

@@ -21,7 +21,11 @@ $_xtrace
# note 11- is after 10- which is where DISTRO_NAME is set usually

if [[ "${DISTRO_NAME}" == "ubuntu" ]]; then
export DIB_DISTRIBUTION_MIRROR=$NODEPOOL_UBUNTU_MIRROR
if [[ "${ARCH}" == "arm64" ]]; then
export DIB_DISTRIBUTION_MIRROR=${NODEPOOL_UBUNTU_PORTS_MIRROR}
elif [[ "${ARCH}" == "amd64" ]]; then
export DIB_DISTRIBUTION_MIRROR=$NODEPOOL_UBUNTU_MIRROR
fi
export DIB_DEBOOTSTRAP_EXTRA_ARGS+=" --no-check-gpg"
elif [[ "${DISTRO_NAME}" == "debian" ]]; then
export DIB_DISTRIBUTION_MIRROR=$NODEPOOL_DEBIAN_MIRROR


+ 4
- 0
diskimage_builder/elements/ubuntu-minimal/test-elements/bionic-arm64-build-succeeds/README.rst Visa fil

@@ -0,0 +1,4 @@
Verify we can build a ubuntu-minimal image.

Note this test includes the vm element to test the bootloader install,
and specifies to output a .qcow2

+ 3
- 0
diskimage_builder/elements/ubuntu-minimal/test-elements/bionic-arm64-build-succeeds/element-deps Visa fil

@@ -0,0 +1,3 @@
block-device-efi
openstack-ci-mirrors
vm

+ 1
- 0
diskimage_builder/elements/ubuntu-minimal/test-elements/bionic-arm64-build-succeeds/environment.d/10-set-distro.bash Visa fil

@@ -0,0 +1 @@
export DIB_RELEASE=bionic

+ 1
- 0
diskimage_builder/elements/ubuntu-minimal/test-elements/bionic-arm64-build-succeeds/test-output-formats Visa fil

@@ -0,0 +1 @@
tar,qcow2

Laddar…
Avbryt
Spara