Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run spread tests on noble too #222

Merged
merged 10 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/spread-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
matrix:
include:
- group: ubuntu-arm
systems: 'ubuntu-20.04-arm-64 ubuntu-22.04-arm-64'
systems: 'ubuntu-20.04-arm-64 ubuntu-22.04-arm-64 ubuntu-24.04-arm-64'
- group: ubuntu
systems: 'ubuntu-18.04-64 ubuntu-20.04-64 ubuntu-22.04-64 ubuntu-23.04-64 ubuntu-23.10-64'
systems: 'ubuntu-18.04-64 ubuntu-20.04-64 ubuntu-22.04-64 ubuntu-23.10-64 ubuntu-24.04-64'
steps:
- name: Cleanup job workspace
id: cleanup-job-workspace
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ vendor/

# snap
ubuntu-image*.snap

# Work dirs
tmp/
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.PHONY: snap
snap: ## Create a ubuntu-image snap
@snapcraft clean && snapcraft --use-lxd -v

.PHONY: collect-mkfs-confs
collect-mkfs-confs:
@./tools/collect-mkfs-confs.sh
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ubuntu-image (3.5) UNRELEASED; urgency=medium
section is valid.
* Rework partitions handling to avoid overridding GPT header
and get the image size mostly right.
* Test running ubuntu-image on noble

[ Maciej Borzecki ]
* Improve handling of structures without a filesystem.
Expand Down
6 changes: 3 additions & 3 deletions mkfs/db
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
xenial,1.42.13-1ubuntu1.2
bionic,1.44.1-1ubuntu1.4
focal,1.45.5-2ubuntu1.1
jammy,1.46.5-2ubuntu1.1
noble,1.47.0-2.4~exp1ubuntu4
focal,1.45.5-2ubuntu1.2
jammy,1.46.5-2ubuntu1.2
noble,1.47.0-2.4~exp1ubuntu4.1
oracular,1.47.1-1ubuntu1
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ summary: Create Ubuntu images
description: |
Official tool for building Ubuntu images, currently supporing Ubuntu Core
snap-based images and preinstalled Ubuntu classic images.
version: "3.4+snap9"
version: "3.4+snap10"
grade: stable
confinement: classic
base: core24
Expand Down
17 changes: 13 additions & 4 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ backends:
- ubuntu-22.04-64:
storage: 45G
workers: 1
- ubuntu-23.04-64:
- ubuntu-23.10-64:
storage: 45G
workers: 1
- ubuntu-23.10-64:
- ubuntu-24.04-64:
storage: 45G
workers: 1
google-arm:
Expand All @@ -50,6 +50,10 @@ backends:
image: ubuntu-os-cloud/ubuntu-2204-lts-arm64
workers: 1
storage: 45G
- ubuntu-24.04-arm-64:
image: ubuntu-os-cloud/ubuntu-2404-lts-arm64
workers: 1
storage: 45G
qemu:
memory: 4G
systems:
Expand All @@ -62,16 +66,21 @@ backends:
- ubuntu-22.04-64:
username: ubuntu
password: ubuntu
- ubuntu-23.04-64:
- ubuntu-23.10-64:
username: ubuntu
password: ubuntu
- ubuntu-23.10-64:
- ubuntu-24.04-64:
username: ubuntu
password: ubuntu

path: /home/ubuntu-image

prepare: |
# Make sure there is a hostname file because it could be missing
# We will need it to have debootstrap properly run
if [ ! -f /etc/hostname ]; then
echo "hostname" > /etc/hostname
fi
# NOTE: This part of the code needs to be in spread.yaml as it runs before
# the rest of the source code (including the tests/lib directory) is
# around. The purpose of this code is to fix some connectivity issues and
Expand Down
1 change: 1 addition & 0 deletions tests/commons/snap/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ environment:
IMG/ubuntu_core_18_amd64: ubuntu-core-18-amd64
IMG/ubuntu_core_20_amd64: ubuntu-core-20-amd64
IMG/ubuntu_core_22_amd64: ubuntu-core-22-amd64
IMG/ubuntu_core_24_amd64: ubuntu-core-24-amd64

execute: |
mkdir -p /tmp/${IMG}/workdir
Expand Down
Loading