34 Commits

Author SHA1 Message Date
Dirk Müller
730630f06f
Use f-strings where possible 2024-05-07 21:52:32 +02:00
Fabian Vogt
b751486ca1 gocd/rabbit-openqa.py: Ignore jobs without group
Jobs without a group are not production jobs either.
This also avoids a KeyError later.
2023-10-26 14:42:11 +02:00
Fabian Vogt
18009e544e gocd/rabbit-openqa.py: Ignore projects without a staging setup
Catch a 404 HTTPError and print an error instead of terminating.
2023-06-29 09:15:26 +02:00
Fabian Vogt
85fec9252d Handle special DVD+Image BUILD values in SLE Micro Staging jobs
See the added comment in update_staging_status.
2023-01-25 18:43:00 +01:00
Fabian Vogt
c53e264aa2
Merge pull request #2894 from Vogtinator/stagingimages
gocd/rabbit-openqa.py: Always include flavor, name and machine in the check
2023-01-24 13:26:40 +01:00
Fabian Vogt
a719f0eac3 gocd/rabbit-openqa.py: Also try to match disk images (#2888)
In addition to looking for tests using *.iso files also consider .qcow2
and .raw.xz files for matching HDD_1.
2022-11-24 10:54:46 +01:00
Fabian Vogt
d83a3a6b2f gocd/rabbit-openqa.py: Ignore isos which don't have an OpenQAMapping
Every medium to be tested needs to include a staging specific part which
OpenQAMapping specifies. If this does not match we better not use it as
it might find some unrelated tests.
2022-11-24 10:43:34 +01:00
Fabian Vogt
fefa25bb44 gocd/rabbit-openqa.py: Always include flavor, name and machine in the check
Simplify the code in exchange of making the staging view slightly more
cluttered.
2022-11-23 16:04:13 +01:00
Fabian Vogt
4cc3198cc4 gocd/rabbit-openqa.py: Ignore jobs in "Development" groups
If the group the job is in contains "Development", ignore the job.
2022-11-23 15:23:17 +01:00
Fabian Vogt
2c628eb033 gocd/rabbit-openqa.py: Add --dry option 2022-11-23 15:23:17 +01:00
Fabian Vogt
6aeb68891d gocd/rabbit-openqa.py: Remove unused parameters
Their values aren't used anywhere.
2022-11-23 15:23:17 +01:00
Stephan Kulow
9dd1cad299 rabbit-openqa: If OSRT:OpenQAMapping contains garbage, just continue 2022-07-15 12:59:17 +02:00
Stephan Kulow
aaab4af930 Target F401 - Unused imports 2022-02-18 18:29:27 +01:00
Stephan Kulow
27c364b0c9 Target E251 - Unexpected spaces around keyword
https://www.flake8rules.com/rules/E251.html
2022-02-18 17:28:13 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
4e9c8eabbe Target E305 - Have two empty lines of a class 2022-02-18 17:11:46 +01:00
Stephan Kulow
0561e06cb1 Target E261 - two spaces before inline comment 2022-02-18 16:39:16 +01:00
Stephan Kulow
a7ac9876b2
Merge pull request #2709 from coolo/fix_suse_openqa
rabbit-openqa: Don't crash on openqa jobs without BUILD
2022-02-18 15:52:22 +01:00
Stephan Kulow
fcd43743fb rabbit-openqa: Don't crash on openqa jobs without BUILD 2022-02-18 14:44:50 +01:00
Stephan Kulow
2de74cfc52 Replace variable name 'l' (x is fine)
https://www.flake8rules.com/rules/E741.html
2022-02-18 14:21:59 +01:00
Fabian Vogt
86ff0a5047 rabbit-openqa.py: Ignore PR verification runs with / in BUILD
Those tests shouldn't influence staging results.
2021-09-16 16:13:34 +02:00
Stephan Kulow
18d3f20789 No longer trigger obsrsync directly from rabbitmq messages
Rely on rabbit-repoid git instead
2020-03-16 08:58:45 +01:00
Stephan Kulow
236cf1ab38 Split the work done in rabbit-openqa into smaller chunks
As the rabbitmq heartbeart interval is a hard limit, we need to make sure
we're not overloading the time in between
2020-03-13 15:20:01 +01:00
Stephan Kulow
bef4dc3083 Let the rabbit monitors run for 3 hours instead of one
This makes the startup time easier to justify
2020-03-04 13:00:43 +01:00
Stephan Kulow
fce860f36f Actually subscribe to the repo.build_finished event 2020-01-29 10:54:18 +01:00
Stephan Kulow
3064810f96 Notify the obs_rsync plugin already when the scheduler is finished
openqa will keep polling the repository for ready to sync, waiting
for published event is a problem for ToTest repositories that aren't
published. openqa will start syncing when it becomes 'unpublished'
2020-01-28 12:11:59 +01:00
Stephan Kulow
9f29951161 Unify openqa checks over multiple ISOs
Fixing microos and kubic both having a 'container-host' test. We only
differ them because they run on different machines. If that changes one
day, we have to rename one
2019-12-10 02:01:13 +01:00
Jimmy Berry
b68a46d352 Move PubSubConsumer to osclib.PubSubConsumer to allow for proper import. 2019-09-11 18:55:22 -05:00
Stephan Kulow
3263891aa4 rabbit-openqa: Catch exceptions as PUT to openqa might result in 404 2019-07-22 09:46:42 +02:00
Stephan Kulow
d2b94b38ef rabbit-openQA: Notify openQA about images repositories published 2019-07-19 12:32:27 +02:00
Stephan Kulow
a73054b189 Fix rabbitmq acknowledge: first ACK then check the content 2019-05-20 11:43:25 +02:00
Stephan Kulow
6297dacf8b Acknowledge the rabbitmq message
We need to ACK the rabbitmq message for the server to erase it in the
queue - otherwise they are piling up endlessly. As we quit the services
every hour the queue is reset at that point, but that still makes monitoring
the server quite hard as the queues tend to be full all the time
2019-05-18 20:57:05 +02:00
Stephan Kulow
9858031bed Run the monitors in python3 containers 2019-05-15 20:32:50 +02:00
Stephan Kulow
67df42770d No longer package rabbit-openqa but add gocd config for it 2019-03-20 06:47:37 +01:00