Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just HDD selection, we cannot use HDD_1 from obsoleted/skipped hosts, right?

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 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this call is the problematic one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I'm looking into extending the monitor command now: os-autoinst/openQA#6101

--monitor \
--host "$openqa_url" \
Expand Down
Loading