Skip to content

Commit

Permalink
Merge pull request #358 from Martchus/factory-submissions
Browse files Browse the repository at this point in the history
Allow triggering openQA-in-openQA tests if submission is pending
  • Loading branch information
mergify[bot] authored Nov 29, 2024
2 parents 2967c95 + 439c59d commit 0aec775
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions os-autoinst-obs-auto-submit
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ osc="${osc:-"$prefix retry -e -- osc"}"
# submit from staging project if specified
[[ $staging_project && $staging_project != none ]] && src_project=$staging_project from_staging=1

if [[ -e job_post_skip_submission ]]; then
echo "Skipping submission, reason: "
cat job_post_skip_submission
exit 0
fi

TMPDIR=${TMPDIR:-$(mktemp -d -t os-autoinst-obs-auto-submit-XXXX)}
trap 'rm -rf "$TMPDIR"' EXIT

Expand Down
8 changes: 6 additions & 2 deletions trigger-openqa_in_openqa
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ create_devel_openqa_snapshot() {
auto_submit_packages=$(list_packages "$dst_project")
staged_packages=$(list_packages "$staging_project") || true # osc ls returns non-zero return code for empty projects
if [[ $staged_packages ]]; then
echo "Skipping, there are still openQA-in-openQA tests pending"
exit 0
echo "Only triggering tests from $src_project (not overriding $staging_project and doing a submission) because openQA-in-openQA tests or a submission is still pending (as $staging_project still contains packages)" \
| tee job_post_skip_submission
staging_project=$src_project
return
elif [[ -e job_post_skip_submission ]]; then
rm job_post_skip_submission
fi
echo "Creating snapshots under $staging_project"
for package in $auto_submit_packages; do
Expand Down

0 comments on commit 0aec775

Please sign in to comment.