Commit Graph

1023 Commits

Author SHA1 Message Date
Jan Kaluza
7cf77d0fee Make testing with different configuration values easier and less error-prone by using mock.patch to change the configuration. 2017-03-13 07:48:29 +01:00
Jan Kaluža
d87010dba0 Merge #411 Fix #405 - Fix num_consecutive_builds. 2017-03-11 05:52:09 +00:00
Ralph Bean
135bd96d7f Merge #410 Recover from errors with completed builds. 2017-03-10 17:49:11 +00:00
Jan Kaluža
b715f18e16 Merge #403 Copr builder improvements 2017-03-10 11:28:15 +00:00
Jakub Kadlčík
b051ea2b4d Set copr as build system for this test 2017-03-09 09:34:59 +01:00
Jan Kaluza
b569fa6c21 Fix #405 - Fix num_consecutive_builds. 2017-03-09 08:59:09 +01:00
Jan Kaluža
91193cf676 Merge #404 Expect 'branch' while handling submission of module and use it to set the stream of module. Also verify that the commit hash belongs to that branch. 2017-03-09 05:04:19 +00:00
Ralph Bean
c4b0f618c6 Recover from errors with completed builds.
The base-runtime build from today had two of its 180 builds that
succeeded, but MBS failed to notice (due to an unhealthy way that I
killed it and restarted it earlier in the day).  The result was that the
component builds were done, but the module stayed stuck in the build
state even though its work was over.

This change alters the poller (which checks for builds that failed in
the buildSRPMFromSCM step which doesn't emit a message for our
consumer), to additionally check for builds that succeeded but which we
didn't notice.
2017-03-07 21:18:10 -05: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
Jan Kaluza
4b3e295e48 Expect 'branch' while handling submission of module and use it to set the stream of module. Also verify that the commit hash belongs to that branch. 2017-03-07 11:25:06 +01:00
Jan Kaluža
ab59a1eac6 Merge #402 Add OIDC_REQUIRED_SCOPE and fix the test_auth.py to use Authorization header. 2017-03-07 09:31:05 +00:00
Jakub Kadlčík
233042c340 Process copr fedmsg messages 2017-03-07 00:44:47 +01:00
Jakub Kadlčík
e849c5da16 Test parsing buildsys.state.change message 2017-03-07 00:43:22 +01:00
Jakub Kadlčík
a2af794bed Stop assuming that copr build is already completed 2017-03-07 00:43:22 +01:00
Jakub Kadlčík
ba0c4eb9da Add missing build_id param to build_srpm method 2017-03-07 00:43:22 +01:00
Jakub Kadlčík
2312efce45 Not use PDC for copr builder 2017-03-07 00:43:22 +01:00
Jan Kaluza
b11ea14358 Add OIDC_REQUIRED_SCOPE and fix the test_auth.py to use Authorization header. 2017-03-06 14:56:09 +01:00
Ralph Bean
1104a3ae10 Update README with new tasks API format. 2017-03-05 23:57:51 -05:00
Ralph Bean
4509367d3e Use JSON for component API instead of strings.
This is more flexible and is nicer to other programs that try to parse
or consume this data.
2017-03-03 15:59:17 -05:00
Ralph Bean
c0cf9da84d Demote these log statements. 2017-03-03 12:44:29 -05:00
Ralph Bean
a459b91fde 1.3.3 v1.3.3 2017-03-03 10:06:06 -05:00
Ralph Bean
e7b7d7cd2f Merge #396 Add MODULES_ALLOW_REPOSITORY and MODULES_DEFAULT_REPOSITORY with the same meaning as RPMS_* equivalents. 2017-03-03 15:05:25 +00: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
Jan Kaluza
8aa3ce3c27 Add MODULES_ALLOW_REPOSITORY and MODULES_DEFAULT_REPOSITORY with the same meaning as RPMS_* equivalents. 2017-03-03 15:36:10 +01:00
Filip Valder
25bfac2b3c Merge #392 Fix another attribute error. 2017-03-03 14:23:05 +00:00
Filip Valder
1ece0e0a8a reference to #397 2017-03-03 15:19:42 +01:00
Filip Valder
467c2bb36a rename "mbs_module_name" to "mbs_module_target" 2017-03-03 14:09:01 +01:00
Filip Valder
21bf0a7d53 Merge #393 Make fake MBS messages JSON serializable. 2017-03-03 12:57:46 +00:00
Jan Kaluza
cc204e6b62 Fix logging in poller. 2017-03-03 13:16:44 +01: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
Ralph Bean
e1a9034e0f Fix another attribute error. 2017-03-03 06:47:30 -05:00
Ralph Bean
f12d6e0394 Don't validate internal messages.
These fail the validate check every time (because they're not real
messages; they're not signed).
2017-03-03 06:44:12 -05:00
Ralph Bean
8f81e6e1ca Still more logging. 2017-03-03 06:25:54 -05:00
Ralph Bean
0822df7a30 Better logging here. 2017-03-03 06:25:54 -05:00
Filip Valder
35335a2b23 Merge #389 Fix #386 - Retry until we get build containing xmd data 2017-03-03 11:10:39 +00:00
Filip Valder
689c671551 Retry until we get build containing xmd data. 2017-03-03 11:23:00 +01:00
Jan Kaluza
6d74f32462 Remove 'module_' prefix from the disttag in module-build-macros. 2017-03-03 11:22:58 +01:00
Ralph Bean
b7a99c5da8 Use the correct attribute of ComponentBuild.
Fixes #384.
2017-03-02 17:03:46 -05:00
Matt Prahl
6567d37b69 Merge #382 Assign further_work either way. 2017-03-02 21:15:45 +00:00
Ralph Bean
add68410a8 Don't require a '-' suffix here.
This is necessary so that we can allow the `f26-modularity` tag as our
bootstrapped tag.

https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=3f5610df5831c8c3fb93b9ac2c6a07c3a1b3df64
2017-03-02 15:41:58 -05:00
Ralph Bean
c57d52ee56 Simplify this. 2017-03-02 14:30:05 -05:00
Ralph Bean
e9c9097755 Assign further_work either way. 2017-03-02 14:17:22 -05:00
Ralph Bean
9e62eacf3e 1.3.2 v1.3.2 2017-03-02 13:01:23 -05:00
Ralph Bean
29ea44025b Some more temporary bootstrapping utilities. 2017-03-02 13:00:34 -05:00
Matt Prahl
51c1e3b7ea Merge #380 Please include the state name, even in the API json. 2017-03-02 17:05:35 +00:00
Matt Prahl
4cd652e5f7 Merge #377 Fix the depsolving wrapper. 2017-03-02 17:04:45 +00:00
Ralph Bean
ae8d453da3 Use mmd.xmd for exact pinning of dep tags. 2017-03-02 11:59:46 -05:00