Skip to content

Commit

Permalink
Treat obsoleted and skipped results as passed
Browse files Browse the repository at this point in the history
This can be configured via allowed_results.

See: https://progress.opensuse.org/issues/174583
  • Loading branch information
kalikiana committed Jan 9, 2025
1 parent 40ea78a commit c31e16b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openqa-schedule-mm-ping-test
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ flavor=${flavor:-DVD}
arch=${arch:-x86_64}
version=${version:-Tumbleweed}
test_name=${test_name:-ping_client}
allowed_results=${allowed_results:-passed|obsoleted|skipped}

tmpfile=$(mktemp)
trap 'rm -f "$tmpfile"' EXIT
Expand Down Expand Up @@ -53,7 +54,8 @@ job_templates:
PARALLEL_WITH: ping_server
EOF

hdd=$(runcli openqa-cli api --host "$openqa_url" jobs version="$version" scope=relevant arch="$arch" flavor="$flavor" test="$test_name" latest=1 | runjq -r '.jobs | map(select(.result == "passed")) | max_by(.settings.BUILD) .settings.HDD_1')
jobs=$(runcli openqa-cli api --host "$openqa_url" jobs version="$version" scope=relevant arch="$arch" flavor="$flavor" test="$test_name" latest=1 | runjq -r .jobs)
hdd=$(echo "$jobs" | runjq -r "map(select(.result | test(\"(${allowed_results})\"))) | max_by(.settings.BUILD) .settings.HDD_1")
time openqa-cli schedule \
--monitor \
--host "$openqa_url" \
Expand Down

0 comments on commit c31e16b

Please sign in to comment.