Skip to contentSkip to conversation

mfi-common: break out dom0arches variable (nfc)

PATCH In review Ian Jackson 2 participants 5 messages Sep 9, 2021 – Sep 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 mfi-common: break out dom0arches variable (nfc)

This will allow test choices to depend on the actual rather than entire dom0arches.

No change to output from standalone-generate-dump-flight-runvars.

---
 mfi-common | 6 ++++++
 1 file changed, 6 insertions(+)
mfi-common +6 -0
index 2834411f..70e17f7a 100644
@@ -643,6 +643,7 @@ test_matrix_iterate () {
       *)          echo >&2 "kernbuild ?  $kern"; exit 1 ;;
       esac
 
+      dom0arches=''
       for dom0arch in i386 amd64 armhf arm64; do
 
         case ${xenarch}_${dom0arch} in
@@ -654,6 +655,11 @@ test_matrix_iterate () {
             *) continue ;;
         esac
 
+        dom0arches+=" $dom0arch"
+      done
+
+      for dom0arch in $dom0arches; do
+
         eval "
             arch_runvars=\"\$ARCH_RUNVARS_$dom0arch\"
         "
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/4 mfi-common: Change dom0arch list order (nfc)

Change the order to match fmtarches_outer in do_pv_debian_tests.

We are going to want to add an indirection here but not change anything.

No change to output from standalone-generate-dump-flight-runvars.

---
 mfi-common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mfi-common +1 -1
index 70e17f7a..02278420 100644
@@ -644,7 +644,7 @@ test_matrix_iterate () {
       esac
 
       dom0arches=''
-      for dom0arch in i386 amd64 armhf arm64; do
+      for dom0arch in i386 armhf amd64 arm64; do
 
         case ${xenarch}_${dom0arch} in
             amd64_amd64) ;;
Signature · 1 line
2.20.1
#2 lore raw

PATCH 3/4 fmtarches: Use dom0arches, not hardcoded arch list

In reply to Ian Jackson

This will make us reallocate fmt tests when the arch list changes. It's not ideal because it means tests jumping about across arches and might let regressions go through but it's better than just dropping them, and doing a better approach is complex.

This changes some jobs and adds others, roughly:

  +               test-amd64-i386-libvirt-fraw
  -               test-amd64-i386-xl-raw
  +               test-amd64-i386-xl-vhd
  +               test-arm64-arm64-libvirt-raw
  +               test-arm64-arm64-xl-vhd
  +               test-armhf-armhf-libvirt-qcow2

(as reported by standalone-generate-dump-flight-runvars)

---
 make-flight | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
make-flight +1 -1
index e0d11c80..ecbb195b 100755
@@ -652,7 +652,7 @@ do_pv_debian_tests () {
   # Within each fmt we rotate through the list of arches
   # The starting list rotates once per ts, so that we try to
   # exercise each fmt on each arch family.
-  local fmtarches_outer="i386 armhf amd64 arm64"
+  local fmtarches_outer="$dom0arches"
   local endfmt="do_pv_debian_tests-missing-ts-fmt-for-dom0arch="
 
   for ts in xl libvirt ; do
Signature · 1 line
2.20.1
#3 lore raw

PATCH 4/4 mfi-common: Drop Linux dom0 i386 tests for newer Linux branches

In reply to Ian Jackson

This makes radical changes to the test ste for the linux-linus and linux-next branches.

Mostly, tests are dropped but some 64-bit dom0 tests are added to replace them.

---
 mfi-common | 5 +++++
 1 file changed, 5 insertions(+)
mfi-common +5 -0
index 02278420..771843f0 100644
@@ -655,6 +655,11 @@ test_matrix_iterate () {
             *) continue ;;
         esac
 
+        case "${branch}_${dom0arch}" in
+          linux-5.4_i386 | linux-[2-4].*_i386) ;; # keep 32-bit for old linux
+          linux-*_i386) continue;;
+        esac
+
         dom0arches+=" $dom0arch"
       done
 
Signature · 1 line
2.20.1
Reviewed-by on v1 4/4
#4 lore raw

Re: [OSSTEST PATCH 4/4] mfi-common: Drop Linux dom0 i386 tests for newer Linux branches

Quoted 8 lines · Ian Jackson

This makes radical changes to the test ste for the linux-linus and linux-next branches.

Mostly, tests are dropped but some 64-bit dom0 tests are added to replace them.

Thanks!

Juergen