Commit Graph

42 Commits

Author SHA1 Message Date
Filip Valder
38c0ea6147 Basic monitoring w/-o MBS-specific metrics 2019-02-12 16:08:41 +00:00
Mike Bonnet
b4d3c51219 don't assign the exception to a variable to make flake8 happy 2019-02-08 17:43:43 +00:00
Chenxiong Qi
0c642a0944 Fix deprecation warnings from log.warn and inspect.getargspec
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2018-12-04 18:35:56 +08:00
mprahl
28acfd8a44 Construct the NVR for the KojiTagChange messages
Brew publishes the NVR on tag change messages, but Koji upstream does
not. This constructs the NVR based on the name, version, and release
in the messages.
2018-08-07 14:38:42 -04:00
mprahl
f08135352a Use the NVR instead of the component name when responding to a tag message
This addresses an issue when a module contains builds that have different
names in their NVR than the component name in MBS. This happens with
SCLs for instance. MBS wouldn't be able to find the component to mark
as tagged in the database since it was searching by the wrong name, so the
build would just stall. This uses the NVR now to find the correct build
in the database.
2018-08-07 11:54:28 -04:00
mprahl
a78c564073 Revert "Store the component's build ID and use that to identify the build when acting on a tag message"
This reverts commit 9bd16beeef.
2018-08-07 10:32:50 -04:00
mprahl
9bd16beeef Store the component's build ID and use that to identify the build when acting on a tag message
This resolves an issue where the component name is different than the
package being tagged due to a macro such as those used for SCLs.
2018-08-03 20:45:00 -04:00
mprahl
36a9026ca8 Remove references to COPR 2018-06-28 10:00:06 -04:00
Martin Curlej
60b3d97c97 flake8 cleanup
Signed-off-by: Martin Curlej <mcurlej@redhat.com>

removed some noqa tags
2017-10-25 12:13:59 +02:00
Ralph Bean
8e27fe16fe Raise a special exception for special messages.
Today, we ignore koji messages with a None `task_id` in two ways.  First
with a conditional, and then with a second check in the message
`__init__` method.  This is a belt-and-suspenders approach.

For other reasons in the UMB messaging plugin, we'd like to put this
check in just one place and use a special exception in the initializer
instead of in a conditional beforehand.
2017-09-29 13:07:06 -04:00
Ralph Bean
c9c3ab7abd Add missing required key. 2017-09-19 13:18:21 -04:00
Ralph Bean
5e08d2ffe4 Introduce pluggable backends.
This allows an operator to write a custom messaging backend to handle
whatever transport and format.
2017-09-19 13:13:40 -04:00
Filip Valder
7ef2975984 PEP8 fixes 2017-07-17 18:29:10 +02:00
Jakub Kadlčík
7c81a72138 Update CoprBuildEnd message to reflect actual data 2017-04-10 20:28:53 +02:00
Jan Kaluza
8bbe2d359f Trigger newRepo by MBS instead of waiting on Kojira in case when we have sucessfully tagged all the components 2017-04-06 17:19:35 +02:00
Jakub Kadlčík
70b3782231 Fake repo.done message without publishing it 2017-03-28 19:13:38 +02:00
Jakub Kadlčík
ffbec05c63 Update CoprBuildEnd docstring 2017-03-23 19:56:00 +01:00
Jakub Kadlčík
a24b49e162 Generate buildsys.repo.done locally 2017-03-21 07:59:35 +01:00
Jakub Kadlčík
61b74293b1 Rather extend koji message so we can have additional arguments for copr 2017-03-21 07:47:25 +01:00
Jakub Kadlčík
cdde6f5e20 Use kobo.rpmlib instead of rpmUtils 2017-03-07 16:03:48 +01:00
Jakub Kadlčík
17f94d0220 Handle copr messages only when it is set as build system 2017-03-07 15:52:15 +01:00
Jakub Kadlčík
233042c340 Process copr fedmsg messages 2017-03-07 00:44:47 +01:00
Ralph Bean
5e3ea846f3 Merge #398 Ignore koji messages with a null task id 2017-03-03 15:04:42 +00:00
Ralph Bean
766656d65f Ignore all messages from the secondary koji instances. 2017-03-03 09:55:31 -05:00
Ralph Bean
34f779785c Don't handle koji messages with null task_id values.
Otherwise, we query for null==null in our DB and chaos ensues.
2017-03-03 09:53:12 -05:00
Ralph Bean
57e96c422e Make fake MBS messages JSON serializable.
Which prevents errors when fedmsg-hub tries to checkpoint its progress
on disk in prod.
2017-03-03 07:00:36 -05:00
Filip Valder
6b343896dd s/rida/mbs/ 2017-02-28 17:59:02 +01:00
Matt Prahl
385045d778 Reuse components from previous module builds 2017-02-21 14:22:30 -05:00
Filip Valder
abf37e98e1 in_memory messaging -> fallback to '*' topics 2017-01-12 19:57:34 +01:00
Filip Valder
34ef9ce5fd Add support for message topic prefixes + explicit services/categories (incl. code lints) 2017-01-12 19:30:34 +01:00
Ralph Bean
6cfe487d46 Change message topic service to be more short.
This is just so that the topic doesn't end up being super long like
`org.fedoraproject.prod.module_build_service.module.state.change`

The new value will be:
`org.fedoraproject.prod.mbs.module.state.change`

Currently, the only thing listening for this is pdc-updater, which I
will patch.
2017-01-10 12:34:17 -05:00
Ralph Bean
e5270d0932 Some clarifying comments. 2016-12-15 16:45:32 -05:00
Ralph Bean
5c3d46595a Use the same key for this that we used to use. 2016-12-15 16:27:17 -05:00
Ralph Bean
908f440357 Make BaseMessage instances appear a bit more like JSON so they can make it through moksha validation. 2016-12-15 16:27:17 -05:00
Ralph Bean
9d3b85426d Bring back the in-memory messaging backend. 2016-12-15 16:27:17 -05:00
Matt Prahl
c4091aff92 Remove in-memory messaging 2016-12-15 16:27:15 -05:00
Matt Prahl
261549c8c2 Migrate scheduler to be run by fedmsg-hub 2016-12-15 16:27:15 -05:00
Jan Kaluza
d06c13d973 Fix the bug when module build freezes when all the components in batch have been already built by builder. 2016-12-12 21:03:44 +01:00
Jan Kaluza
9eff11fdb0 Use timeout for build tests to prevent hanging, import queue from six.moves, fix init_logging import for jenkins 2016-12-06 11:33:15 +01:00
Jan Kaluza
b45905cbd0 Add 'in_memory' messaging backend and use it during build_module_locally to drop dependency on fedmsg-relay for local builds. 2016-12-06 10:21:42 +01:00
Jan Kaluza
cc5836d3ce Fix 'We have no record of ...' when Koji task finishes by comparing task_id with task_id and not with buil_id. 2016-10-31 11:27:42 +01:00
Matt Prahl
b4082dc551 Rename module from rida to module_build_service
Rename routes from /rida/1/module-builds/ to /module-build-service/1/module-builds/
2016-10-24 10:30:23 -04:00