Skip to content

PoC: amqp script to listen when a build is finished and trigger openQA tests#470

Open
foursixnine wants to merge 14 commits intoos-autoinst:masterfrom
foursixnine:foursixnine-gitea-amqp
Open

PoC: amqp script to listen when a build is finished and trigger openQA tests#470
foursixnine wants to merge 14 commits intoos-autoinst:masterfrom
foursixnine:foursixnine-gitea-amqp

Conversation

@foursixnine
Copy link
Copy Markdown
Member

@foursixnine foursixnine commented Oct 7, 2025

This is based on the work for #468

So it has many of the open points from that PR

The main difference is that this version only cares if a given pull request in --project for --branch is approved by --build-bot

few extra things are missing, like passing the list of binaries (packages) that are in the given incident/increment/pr (which has to be queried from the obs project corresponding to the PR.

I used as a test PR https://src.opensuse.org/products/PackageHub/pulls/160

python3 amqp-listen-gitea.py --verbose 3  --myself foursixnine-openqa \
 --simulate-build-finished-event tests/data/gitea-amqp/amqp-autogits_workflow_pr_bot-pull_request_review_approved-20251006-154156.json \
 --build-bot autogits_obs_staging_bot --project products/PackageHub --branch leap-16.0

As a side note the target url (for gitea status check) is now pointing to the build overview page instead of a single job

@Martchus
Copy link
Copy Markdown
Contributor

Martchus commented Oct 7, 2025

GitHub only shows a few changes despite the many commits. Maybe this should be rebased?

@foursixnine
Copy link
Copy Markdown
Member Author

GitHub only shows a few changes despite the many commits. Maybe this should be rebased?

GH is technically correct, as the changes for #468 aren't merged, I guess I could create a PR on @perlpunk's fork?

My changes mostly revolve around handle_build_finished

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.

3 participants