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
Ralph Bean
41079a1a0c
Tell koji to use dnf on our builds.
2016-10-14 12:15:55 -04:00
Jan Kaluza
62a07b4026
Check the SCM availability of components of modulemd file in parallel in multiple threads to save time.
2016-10-14 10:58:58 +02:00
Ralph Bean
a10f93b69e
Merge #87 Instantly fail component builds if we fail to submit them
2016-10-13 15:03:40 +00:00
Ralph Bean
00acd777d2
Merge #74 debug is the new go
2016-10-13 14:55:19 +00:00
Lubos Kocman
0106086836
separate inline comment by two spaces
2016-10-13 15:08:49 +02:00
Lubos Kocman
b4d712cf33
Instantly fail component builds if we fail to submit them
...
- Fail builds if builder.build() does not return bool(value) == True
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-10-12 16:32:52 +02:00
Nils Philippsen
8e075bfeb0
Merge branch 'mprahl/fix-jenkins'
2016-10-11 10:41:53 +02:00
Matt Prahl
81e6b69b37
Use the m2ext RPM instead of install via pip in Docker
2016-10-10 13:07:34 -04:00
Matt Prahl
33b9234acd
Change the Jenkins Dockerfile to only have the build dependencies to install via pip
2016-10-10 13:05:50 -04:00
Nils Philippsen
2ae9e872fa
create koji sessions on behalf of users
2016-10-05 15:30:24 +02:00
Lubos Kocman
45c61c9249
Change loglevel for Dev and Test Configuration to DEBUG + note in readme
2016-10-04 15:52:24 +02:00
Lubos Kocman
151d4ebadb
messaging: amq PEP improvements
2016-10-04 15:07:54 +02:00
Lubos Kocman
452aba0373
messaging: publish*, unify order of args, remove positional arg
2016-10-04 15:07:54 +02:00
Lubos Kocman
b00ea5ac95
messaging: fixed typo
2016-10-04 15:07:54 +02:00
Lubos Kocman
6ec05fd058
messaging.py: mng -> msngr
2016-10-04 15:07:54 +02:00
Lubos Kocman
bb1110758e
remove unuseful/obsolete get_amq_addr call
2016-10-04 15:07:54 +02:00
Lubos Kocman
b090a8d7f8
messaging: add space after comma
2016-10-04 15:07:53 +02:00
Lubos Kocman
3daef24158
config.py: get rid of meaningless str() oneliners
2016-10-04 15:07:53 +02:00
Lubos Kocman
372367bb9c
messaging: use single isinstance()
2016-10-04 15:07:53 +02:00
Lubos Kocman
b576dd70d7
config: fixed typo in path
2016-10-04 15:07:53 +02:00
Lubos Kocman
11703ccb41
Improved conditions for message filtering
2016-10-04 15:07:53 +02:00
Lubos Kocman
9783fe6c04
Fixed hasattr
2016-10-04 15:07:53 +02:00
Lubos Kocman
c83eb15194
config.py: example amq config
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-10-04 15:07:53 +02:00
Lubos Kocman
823f851d29
rida.messaging add initial amq support
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-10-04 15:07:53 +02:00
Lubos Kocman
0787abd1b5
rida.messaging: few changes:
...
- pass over conf as param (helps amq implementation)
- modname -> service to be less fedmsg centric
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-10-04 15:07:53 +02:00
Lubos Kocman
2f2688dc01
rida.config: add Apache MQ config options
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-10-04 15:07:53 +02:00
Nils Philippsen
31ec1835db
rename method to KojiModuleBuilder.get_session()
...
KojiModuleBuilder.get_session_from_config() will require the owner as an
argument, therefore drop encoding arguments in the method name.
2016-10-04 13:58:23 +02:00
Nils Philippsen
b94c460184
add owner attribute to Builder classes
2016-10-04 13:58:23 +02:00
Nils Philippsen
300f947425
get rid of unused koji profile module
2016-10-04 13:58:23 +02:00
Nils Philippsen
5368b6b344
actually use Builder factory
2016-10-04 13:58:17 +02:00
Nils Philippsen
ede7543970
make Builder a new-style class
2016-10-04 13:55:35 +02:00
Matt Prahl
388687a19d
Fix subheadings in the README
2016-09-30 11:15:13 -04:00
Nils Philippsen
d1c03c1309
Merge branch 'mprahl/vagrant-ridad'
2016-09-30 17:04:49 +02:00
Matt Prahl
482a6b3cff
Add documentation on using Vagrant for development
2016-09-30 17:04:10 +02:00
Matt Prahl
0aab0b6edb
Add support for running ridad in the Vagrant guest
2016-09-30 17:04:10 +02:00
Lubos Kocman
e6e8d13b5c
fix incorrect rida.logger reference to rida.log
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-09-30 16:59:08 +02:00
Nils Philippsen
632812f15d
Merge branch 'mprahl/message-signing'
2016-09-30 09:59:07 +02:00