Skip to content

Commit

Permalink
Merge pull request #365 from os-autoinst/consistent-snapshots
Browse files Browse the repository at this point in the history
Add check for build state of packages to be tested
  • Loading branch information
mergify[bot] authored Jan 30, 2025
2 parents 84d396d + b8e24ba commit fdea7d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion trigger-openqa_in_openqa
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,15 @@ create_devel_openqa_snapshot() {
elif [[ -e job_post_skip_submission ]]; then
rm job_post_skip_submission
fi
echo "Creating snapshots under $staging_project"
echo "Checking if all relevant packages are built and published before creating snapshot under $staging_project"
for package in $auto_submit_packages; do
local state
state=$($osc results -r openSUSE_Tumbleweed -a x86_64 --no-multibuild "$src_project" "$package")
if grep -q -v 'succeeded\|disabled' <<< "$state"; then
echo -e "Package $package is not yet ready for release\n$state" | tee job_post_skip_submission
delete_packages_from_obs_project "$staging_project"
return
fi
echo "Creating snapshots of $package"
$osc release --no-delay --target-project "$staging_project" --target-repository=openSUSE_Tumbleweed -r openSUSE_Tumbleweed -a x86_64 "$src_project" "$package"
done
Expand Down

0 comments on commit fdea7d8

Please sign in to comment.