Skip to content

Commit

Permalink
jobs/{build,build-arch}: don't run metal4k tests on s390x
Browse files Browse the repository at this point in the history
The 4k disk doesn't work right now. See
coreos/fedora-coreos-tracker#1261

Also rework a bit the structure of the "parallel" invocation
for testiso.
  • Loading branch information
dustymabe committed Jul 22, 2022
1 parent f233706 commit 4579c04
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
15 changes: 11 additions & 4 deletions jobs/build-arch.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -482,17 +482,24 @@ lock(resource: "build-${params.STREAM}-${params.ARCH}", extra: [[resource: "rele
cosa compress --compressor xz --artifact metal --artifact metal4k
""")
try {
parallel metal: {
parallelruns = [:]
parallelruns['metal'] = {
shwrap("cosa kola testiso -S --output-dir tmp/kola-testiso-metal")
}, metal4k: {
shwrap("cosa kola testiso -SP --qemu-native-4k --qemu-multipath --output-dir tmp/kola-testiso-metal4k")
}
// metal4k doesn't work on s390x right now: https://github.com/coreos/fedora-coreos-tracker/issues/1261
if (basearch != "s390x") {
parallelruns['metal4k'] = {
shwrap("cosa kola testiso -SP --qemu-native-4k --qemu-multipath --output-dir tmp/kola-testiso-metal4k")
}
}
// process this batch
parallel parallelruns
} catch (Throwable e) {
throw e
} finally {
shwrap("""
cosa shell -- tar -c --xz tmp/kola-testiso-metal/ > kola-testiso-metal.tar.xz
cosa shell -- tar -c --xz tmp/kola-testiso-metal4k/ > kola-testiso-metal4k.tar.xz
cosa shell -- tar -c --xz tmp/kola-testiso-metal4k/ > kola-testiso-metal4k.tar.xz || :
""")
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola-testiso*.tar.xz'
}
Expand Down
11 changes: 8 additions & 3 deletions jobs/build.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,14 @@ lock(resource: "build-${params.STREAM}") {
cosa compress --compressor xz --artifact metal --artifact metal4k
""")
try {
parallel metal: {
parallelruns = [:]
parallelruns['metal'] = {
shwrap("cosa kola testiso -S --output-dir tmp/kola-testiso-metal")
}, metal4k: {
}
parallelruns['metal4k'] = {
shwrap("cosa kola testiso -SP --qemu-native-4k --qemu-multipath --output-dir tmp/kola-testiso-metal4k")
}, uefi: {
}
parallelruns['uefi'] = {
shwrap("cosa shell -- mkdir -p tmp/kola-testiso-uefi")
shwrap("""
cosa shell -- mkdir tmp/iso-live-login-with-rd-debug
Expand All @@ -483,6 +486,8 @@ lock(resource: "build-${params.STREAM}") {
shwrap("cosa kola testiso -S --qemu-firmware=uefi --scenarios iso-live-login,iso-as-disk --output-dir tmp/kola-testiso-uefi/insecure")
shwrap("cosa kola testiso -S --qemu-firmware=uefi-secure --scenarios iso-live-login,iso-as-disk --output-dir tmp/kola-testiso-uefi/secure")
}
// process this batch
parallel parallelruns
} catch (Throwable e) {
throw e
} finally {
Expand Down

0 comments on commit 4579c04

Please sign in to comment.