Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

baierjan
Copy link
Member

@baierjan baierjan force-pushed the consistent-snapshots branch from abd2509 to 6103a9b Compare January 16, 2025 16:06
trigger-openqa_in_openqa Outdated Show resolved Hide resolved
Comment on lines 72 to 79
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
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Member Author

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.

@baierjan baierjan force-pushed the consistent-snapshots branch from 6103a9b to 6e9f19a Compare January 17, 2025 15:51
@baierjan baierjan force-pushed the consistent-snapshots branch from 6e9f19a to b8e24ba Compare January 17, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants