From 39487ea083658643ec4965197e1c41060d2b1fae Mon Sep 17 00:00:00 2001 From: nicksinger Date: Fri, 9 Oct 2026 15:57:54 +0200 Subject: [PATCH] fix(mm-ping-test): Use latest TW snapshot The last 64bit snapshot or Tumbleweed is from August 2025. This change switches the test to uefi and therefore allows it to use a more recent snapshot. Related ticket: https://progress.opensuse.org/issues/207066 --- openqa-schedule-mm-ping-test | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/openqa-schedule-mm-ping-test b/openqa-schedule-mm-ping-test index 36c3ded2..f761a03f 100755 --- a/openqa-schedule-mm-ping-test +++ b/openqa-schedule-mm-ping-test @@ -12,7 +12,7 @@ version=${version:-Tumbleweed} test_name=${test_name:-ping_client} # we expect build numbers in the ISO 8601 format so we're looking for build strings starting with eight latin numerals build_regex=${build_regex:-^[0-9]+$} -machine=${machine:-64bit} +machine=${machine:-uefi} tmpfile=$(mktemp) trap 'rm -f "$tmpfile"' EXIT @@ -84,14 +84,22 @@ main() { *) break ;; esac done + jobdata=$(runcli openqa-cli api --host "$openqa_url" jobs version="$version" scope=relevant arch="$arch" machine="$machine" flavor="$flavor" test="$test_name" latest=1) + # shellcheck disable=SC2016 # not expanding the filter is deliberate + jobdata_newest=$(runjq -r --arg regex "$build_regex" '.jobs | map(select(.result == "passed")) | map(select (.settings.BUILD | match($regex))) | max_by(.settings.BUILD)' <<< "$jobdata") # shellcheck disable=SC2016 - hdd=$(runcli openqa-cli api --host "$openqa_url" jobs version="$version" scope=relevant arch="$arch" machine="$machine" flavor="$flavor" test="$test_name" latest=1 | runjq -r --arg regex "$build_regex" '.jobs | map(select(.result == "passed")) | map(select (.settings.BUILD | match($regex))) | max_by(.settings.BUILD) .settings.HDD_1') + hdd=$(runjq -r --arg regex "$build_regex" '.settings.HDD_1' <<< "$jobdata_newest") + # shellcheck disable=SC2016 + pflash_vars=$(runjq -r --arg regex "$build_regex" '.settings.UEFI_PFLASH_VARS' <<< "$jobdata_newest") time openqa-cli schedule \ --monitor --follow \ --host "$openqa_url" \ --param-file SCENARIO_DEFINITIONS_YAML="$tmpfile" \ DISTRI="$distri" VERSION="$version" FLAVOR="$flavor_override" ARCH="$arch" \ BUILD="$(date -Im)" _GROUP_ID=0 \ + UEFI=1 \ + UEFI_PFLASH_VARS="$pflash_vars" \ + UEFI_PFLASH_RESOLUTION=1024x768 \ HDD_1="$hdd" }