Skip to content

Commit

Permalink
CI: Fix openQA for not published TW snapshot
Browse files Browse the repository at this point in the history
The openQA CI tests trigger only looked up the
latest Tumbleweed snapshot and then selecting the
"published" one which fails if the latest snapshot
was actually not published, as happened on
20240718.

Instead of filtering the builds to 1 and then
assuming we can select "published" from that list
this commit changes the lookup to read the default
number of builds, which is by default 10, and then
selects the latest published.

Related progress issue: https://progress.opensuse.org/issues/164210
  • Loading branch information
okurz committed Jul 19, 2024
1 parent 3d2d1b8 commit 2599029
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/openqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
run: >-
echo build=$(openqa-cli api
--host ${OPENQA_HOST:-https://openqa.opensuse.org}
job_groups/${OPENQA_BUILD_LOOKUP_GROUP_ID:-1}/build_results limit_builds=1 only_tagged=1
| jq -r '[ .build_results[] | select(.tag.description=="published") | .build ][]'
job_groups/${OPENQA_BUILD_LOOKUP_GROUP_ID:-1}/build_results only_tagged=1
| jq -r '[ .build_results[] | select(.tag.description=="published") | .build ][0]'
) >> "$GITHUB_OUTPUT"
- name: Trigger and monitor a basic openQA test on o3
run: >-
Expand Down

0 comments on commit 2599029

Please sign in to comment.