-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add check for build state of packages to be tested #365
base: master
Are you sure you want to change the base?
Conversation
abd2509
to
6103a9b
Compare
trigger-openqa_in_openqa
Outdated
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 | ||
return | ||
fi | ||
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code needs to run after the snapshot creation and on the snapshot. Otherwise it still isn't guaranteed that packages are built and published when the snapshot is created. Of course this means the code needs to delete the problematic snapshot in the error case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's exactly the problem I described in the linked progress ticket. This was intended as a quick hack without changing much. I plan to address this issue in a subsequent work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I though about it a little, I still think I really want to make that check before telling osc to make the copy as I want to know the state of the package I am about to copy over (remember, we are not doing any rebuild in the target project). I reordered the code a little to minimize the window between checking the state and calling osc release
which should help. As we have only one source package for openQA (and one for os-autoinst) it should be just a quick look and copy over for each of them.
6103a9b
to
6e9f19a
Compare
6e9f19a
to
b8e24ba
Compare
Reference: https://progress.opensuse.org/issues/174451