From 7539e241da3c92c3b14acf91063005a0bdd3ed37 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 6 May 2020 12:49:06 +1000 Subject: [PATCH] ubuntu-minimal: Add Ubuntu Focal test build Add test builds for Focal on x86 and ARM64 Change-Id: Idb23f0e00d37c7447441ea002aad078e8c61f969 --- .zuul.d/jobs.yaml | 2 ++ .../test-elements/focal-arm64-build-succeeds/README.rst | 4 ++++ .../test-elements/focal-arm64-build-succeeds/element-deps | 3 +++ .../environment.d/10-set-distro.bash | 1 + .../focal-arm64-build-succeeds/test-output-formats | 1 + .../test-elements/focal-build-succeeds/README.rst | 4 ++++ .../test-elements/focal-build-succeeds/element-deps | 3 +++ .../focal-build-succeeds/environment.d/10-set-distro.bash | 1 + .../test-elements/focal-build-succeeds/test-output-formats | 1 + releasenotes/notes/ubuntu-focal-0f54ed4543247b7e.yaml | 4 ++++ 10 files changed, 24 insertions(+) create mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/README.rst create mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/element-deps create mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/environment.d/10-set-distro.bash create mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/test-output-formats create mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/README.rst create mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/element-deps create mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/environment.d/10-set-distro.bash create mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/test-output-formats create mode 100644 releasenotes/notes/ubuntu-focal-0f54ed4543247b7e.yaml diff --git a/.zuul.d/jobs.yaml b/.zuul.d/jobs.yaml index f694510a..756cc164 100644 --- a/.zuul.d/jobs.yaml +++ b/.zuul.d/jobs.yaml @@ -26,6 +26,7 @@ - pip-and-virtualenv/source-install-ubuntu - ubuntu-minimal/xenial-build-succeeds - ubuntu-minimal/bionic-build-succeeds + - ubuntu-minimal/focal-build-succeeds - job: name: dib-functests-image @@ -80,6 +81,7 @@ vars: dib_functests: - ubuntu-minimal/bionic-arm64-build-succeeds + - ubuntu-minimal/focal-arm64-build-succeeds - centos-minimal/8-aarch64-build-succeeds # Bionic / Python3 tests diff --git a/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/README.rst b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/README.rst new file mode 100644 index 00000000..624e34e4 --- /dev/null +++ b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/README.rst @@ -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 diff --git a/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/element-deps b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/element-deps new file mode 100644 index 00000000..99857b0c --- /dev/null +++ b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/element-deps @@ -0,0 +1,3 @@ +block-device-efi +openstack-ci-mirrors +vm diff --git a/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/environment.d/10-set-distro.bash b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/environment.d/10-set-distro.bash new file mode 100644 index 00000000..b65a2191 --- /dev/null +++ b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/environment.d/10-set-distro.bash @@ -0,0 +1 @@ +export DIB_RELEASE=focal diff --git a/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/test-output-formats b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/test-output-formats new file mode 100644 index 00000000..c780936b --- /dev/null +++ b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-arm64-build-succeeds/test-output-formats @@ -0,0 +1 @@ +tar,qcow2 \ No newline at end of file diff --git a/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/README.rst b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/README.rst new file mode 100644 index 00000000..624e34e4 --- /dev/null +++ b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/README.rst @@ -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 diff --git a/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/element-deps b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/element-deps new file mode 100644 index 00000000..9c94dfd6 --- /dev/null +++ b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/element-deps @@ -0,0 +1,3 @@ +block-device-mbr +openstack-ci-mirrors +vm diff --git a/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/environment.d/10-set-distro.bash b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/environment.d/10-set-distro.bash new file mode 100644 index 00000000..b65a2191 --- /dev/null +++ b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/environment.d/10-set-distro.bash @@ -0,0 +1 @@ +export DIB_RELEASE=focal diff --git a/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/test-output-formats b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/test-output-formats new file mode 100644 index 00000000..c780936b --- /dev/null +++ b/diskimage_builder/elements/ubuntu-minimal/test-elements/focal-build-succeeds/test-output-formats @@ -0,0 +1 @@ +tar,qcow2 \ No newline at end of file diff --git a/releasenotes/notes/ubuntu-focal-0f54ed4543247b7e.yaml b/releasenotes/notes/ubuntu-focal-0f54ed4543247b7e.yaml new file mode 100644 index 00000000..f1594849 --- /dev/null +++ b/releasenotes/notes/ubuntu-focal-0f54ed4543247b7e.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The ``ubuntu-minimal`` element now supports the Focal release.