Commit Graph

430 Commits

Author SHA1 Message Date
Jakub Kadlčík
070693baa3 Add owner param to CoprModuleBuilder constructor 2016-10-24 20:46:50 +02:00
Jakub Kadlčík
69e4fca381 Copy copr.conf to /etc/rida 2016-10-24 20:46:50 +02:00
Jakub Kadlčík
900b9dd88d Use rida.conf for specifying path to copr config 2016-10-24 20:46:50 +02:00
Jakub Kadlčík
d0a7753be3 Require copr > 1.74 for module repo API 2016-10-24 20:46:50 +02:00
Jakub Kadlčík
64ae340122 Use python-copr to get DNF repo URL 2016-10-24 20:46:49 +02:00
Jakub Kadlčík
f28d69dc83 Use Copr API to get DNF repo URL 2016-10-24 20:46:49 +02:00
Jakub Kadlčík
b70ee8ea1f Add get_module_repo function with only Copr implementation 2016-10-24 20:46:49 +02:00
Jakub Kadlčík
22bbeed185 Fix failing tests on Builder backend 2016-10-24 20:46:49 +02:00
Jakub Kadlčík
11ebd8371b Install rpm-build package
KojiModuleBuilder.get_disttag_srpm method requires rpmbuild command
2016-10-24 20:46:49 +02:00
Jakub Kadlčík
5c78ce3421 Define empty buildroot_connect buildroot_add_repos Copr methods 2016-10-24 20:46:07 +02:00
Jakub Kadlčík
24ce215f4e Add link to building workflow 2016-10-24 20:46:07 +02:00
Jakub Kadlčík
397d445f83 Submit a modulemd to Copr service 2016-10-24 20:46:07 +02:00
Jakub Kadlčík
de796c2b73 Use Builder wrapper instead of KojiModuleBuilder 2016-10-24 20:46:07 +02:00
Jakub Kadlčík
57b0c8b86c Add CoprModuleBuilder skeleton 2016-10-24 20:46:07 +02:00
Ralph Bean
188d74be13 Add fedmsg-relay to docker-compose. 2016-10-24 14:20:53 -04:00
Ralph Bean
6be342f355 Start fedmsg-relay in the vagrant guest. 2016-10-24 14:19:54 -04: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
Ralph Bean
a551ad9214 Fix the test suite.
This was added in #92.

But the function got renamed in 31ec1835db.

Merge hell.
2016-10-21 11:47:20 -04:00
Matt Prahl
6ed38a2b81 Merge #108 Fix syntax error. 2016-10-21 12:48:32 +00:00
Ralph Bean
256c2a44cd Fix syntax error. 2016-10-20 14:57:22 -04:00
Ralph Bean
ca360c9713 Specify a script_location to alembic so "alembic history" works. 2016-10-20 14:54:31 -04:00
Ralph Bean
5d48fb02d6 Give this migration a description. 2016-10-20 14:53:49 -04:00
Ralph Bean
8f9d4e8403 Record the state_reason regardless of the state transition.
As discussed near the end of #92, we want to record the `state_reason`
string no matter what state we're transition to.
2016-10-20 14:26:31 -04:00
Ralph Bean
db09d8e0f3 PEP8. 2016-10-20 14:26:28 -04:00
Ralph Bean
67f72b8379 Merge #92 Fix #85 - Add 'fail_reason' to ComponentBuild and ModuleBuild models to have a user-friendly error message when build fails. 2016-10-20 18:25:27 +00:00
Jan Kaluža
a18ccf4f11 Merge #101 Fix #88 - Reject SCM URLs which do not match the URL structure expected by pdc-updater. 2016-10-20 15:27:50 +00:00
Ralph Bean
f54b047f48 Merge #77 Create (koji) builder session on behalf of users 2016-10-20 15:20:12 +00:00
Jan Kaluza
50273b4dbd Fix #85 - Add 'state_reason' to ComponentBuild and ModuleBuild models to have a user-friendly error message when build fails. 2016-10-20 10:18:25 +02:00
Jan Kaluza
728eaf2277 Fix #88 - Reject SCM URLs which do not match the URL structure expected by pdc-updater. 2016-10-20 09:54:11 +02:00
Matt Prahl
b53a2895bd Merge #98 Set fedmsg in active mode, just like we have in our dev environment. 2016-10-19 17:19:22 +00:00
Ralph Bean
320957ef68 Add the fedmsg-relay inbound endpoint, for Jenkins. 2016-10-19 13:17:57 -04:00
Matt Prahl
c494b0ccfe Merge #99 Add some config settings from the dev instance. 2016-10-19 17:15:43 +00:00
Matt Prahl
d17ac9141a Merge #100 Use a fresh db session with every backend msg. 2016-10-19 17:06:20 +00:00
Ralph Bean
b2ddf67cb6 Further PR review. Consolidate these lines. 2016-10-19 13:05:54 -04:00
Ralph Bean
1666c1c57e Rollback a transaction on failure, if there is one. 2016-10-19 10:26:14 -04:00
Ralph Bean
325a09d721 Add an empty endpoints config value, just for Jenkins. 2016-10-19 09:14:31 -04:00
Ralph Bean
90990c319c Undo most of that based on PR review. 2016-10-19 09:09:31 -04:00
Ralph Bean
e35f7af7a0 Use a fresh db session with every backend msg.
This fixes #93.  See that issue for a description of the problem.

This change will create a new session for every event handled by the
backend and will force a commit and close the session at the end of each
message.

For bonus points, we should employ the ZopeTransactionManager extension
in the future, but I'm not sure how it will play with the
flask_sqlalchemy extension.  Will check on that later.
2016-10-18 15:11:57 -04:00
Ralph Bean
b92fdb799f Add some config settings from the dev instance. 2016-10-18 13:45:08 -04:00
Ralph Bean
1b53951dfe Set fedmsg in active mode, just like we have in our dev environment. 2016-10-18 13:32:21 -04:00
Matt Prahl
b117678475 Merge #95 A little less repr in the scheduler logs. 2016-10-18 15:13:57 +00:00
Ralph Bean
c84f96c0ca Merge #91 Tell koji to use dnf on our builds. 2016-10-18 15:11:07 +00:00
Ralph Bean
b1fce413f5 Merge branch 'amq-messaging' 2016-10-18 10:45:59 -04:00
Ralph Bean
04d773b3fb Get the test suite working agian for https://pagure.io/fm-orchestrator/pull-request/73 2016-10-18 10:33:04 -04:00
Ralph Bean
f4fd94cc74 A little less repr in the scheduler logs.
For the base-runtime module, the current repr here generates pages and
pages of spam in the logs.  The change here should greatly reduce that
spam, and produce something that's much more interesting and readable.
2016-10-18 10:20:23 -04:00
Nils Philippsen
0b6ef0dd31 Merge branch 'lkocman/enable-resubmit' 2016-10-17 14:54:56 +02:00
Lubos Kocman
744af59189 Add functionality to resume failed build
Resume only failed module build tasks (this should be configurable in
the future).

Signed-off-by: Lubos Kocman <lkocman@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
2016-10-17 14:53:11 +02:00
Lubos Kocman
c15d8f5889 Use correct rida.log for logging
Improved logging for rida/views.py (helps to debug resubmission).

Signed-off-by: Lubos Kocman <lkocman@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
2016-10-17 14:52:57 +02:00
Lubos Kocman
614100163d Transition module build to failed if PDC wasn't updated
This allows resume... otherwise we're stuck in building.

Signed-off-by: Lubos Kocman <lkocman@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
2016-10-17 14:52:14 +02:00
Lubos Kocman
dbcc33edae remove log.debug for unrelated messages (too spammy)
Signed-off-by: Lubos Kocman <lkocman@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
2016-10-17 14:45:02 +02:00