Skip to content

Commit 41271e2

Browse files
committed
tmt: parallelize iso and qemu test tracks
Split the single kola plan into kola-qemu and kola-iso so Testing Farm provisions two independent machines and runs the tracks concurrently.
1 parent 5bebef6 commit 41271e2

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

tmt/plans/kola-iso.fmf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
discover:
2+
how: fmf
3+
test:
4+
- init
5+
- build-iso
6+
- test-iso
7+
adjust+:
8+
- when: arch == x86_64 or arch == aarch64
9+
provision:
10+
hardware:
11+
cpu:
12+
processors: ">= 4"
13+
memory: ">= 8 GB"
14+
disk:
15+
- size: ">= 50 GB"
16+
virtualization:
17+
is-supported: true
18+
prepare:
19+
- how: install
20+
package:
21+
- libvirt
22+
- qemu-kvm
23+
- qemu-img
24+
- skopeo
25+
- virt-install
26+
- wget
27+
- jq
28+
- git
29+
- how: shell
30+
script: podman pull quay.io/coreos-assembler/coreos-assembler:latest
31+
execute:
32+
how: tmt
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ discover:
44
- init
55
- build-qemu
66
- test-qemu
7-
- build-iso
8-
- test-iso
97
adjust+:
108
- when: arch == x86_64 or arch == aarch64
119
provision:

tmt/tests/build-iso.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@ set -eo pipefail
33
set -x
44

55
source $HOME/utils.sh
6+
7+
mkdir -p $COSA_DIR
8+
cosa init --force ${TESTING_FARM_GIT_URL} --branch ${TESTING_FARM_GIT_REF}
9+
cosa import docker://$IMAGE_URL
10+
CONFIG_COMMIT=$(jq -r ".\"coreos-assembler.oci-imported-labels\".\"vcs-ref\"" ${COSA_DIR}/builds/latest/$(arch)/meta.json)
11+
pushd ${COSA_DIR}/src/config
12+
git config --global --add safe.directory ${COSA_DIR}/src/config
13+
git checkout $CONFIG_COMMIT
14+
popd
615
cosa osbuild live metal metal4k

0 commit comments

Comments
 (0)