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
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
Matt Prahl
d17ac9141a
Merge #100 Use a fresh db session with every backend msg.
2016-10-19 17:06:20 +00: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
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
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
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
2ae9e872fa
create koji sessions on behalf of users
2016-10-05 15:30:24 +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
Matt Prahl
94723614f5
Remove the use of pprint in main.run function
2016-09-22 16:08:52 +02:00
Matt Prahl
ec8126c226
Fix/cleanup Python 3 compatibility
2016-09-22 12:48:51 +02:00
Matt Prahl
d37659afd8
Modify message functions to accept conf instead of backend
2016-09-21 14:58:10 +02:00
Matt Prahl
23f057b750
Use abstract message classes instead of legacy code
2016-09-21 14:58:10 +02:00
Matt Prahl
180b376ee2
Remove stray space in log string
2016-09-21 13:48:22 +02:00
Lubos Kocman
ed8b2ee97a
Remove unused state variable. Pyflakes complained
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-08-25 14:38:48 +02:00
Lubos Kocman
a53f37ecff
direct transition to ready from done
...
As of now we don't do anything useful in between done (read: module
build is done) and ready (read: module is ready for consumption).
Thus I recommend direct transition and return to it back
when we have automatic dependency rebuild done.
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-08-25 14:27:36 +02:00
Lubos Kocman
68e32ee8c7
idempotent KojiBuilder implementation of rida/builder.py
...
- Allows to call build() and connect() multiple times. This needs to be
followed by allowing to resubmit module build tasks in REST.
- rename buildroot_add_repo() to buildroot_add_repos() (input data is artifacts)
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-08-22 18:20:24 +02:00
Ralph Bean
cbc9f33954
Apply a fix from our demo-readiness efforts..
2016-08-10 14:06:43 -04:00
Ralph Bean
124b3c3900
Fix NameError for missing query.
2016-08-10 13:48:15 -04:00
Matt Prahl
7a928c3e8c
Adds database migration support, converts rida.conf to config.py, adds Vagrant support, seperates out app views to views.py, control of the app now manage.py
2016-08-01 13:22:01 -04:00
Ralph Bean
666dad2a2a
Last tweak and fixes for async stuff.
2016-07-31 11:27:34 -04:00
Ralph Bean
ec57fe0522
Some cleanup and fixes to the async work.
2016-07-31 07:13:27 -04:00
Ralph Bean
0c48edbd1a
Attempt to recursively build component like mockchain --recurse
2016-07-31 05:18:32 -04:00
Ralph Bean
283c48dbbc
Try to refactor a bunch of our scattered retry logic.
2016-07-30 11:02:57 -04:00
Ralph Bean
5049b3f639
Merge #32 kill the wait statements.
2016-07-30 09:04:58 +00:00
Lubos Kocman
239bbf7ec7
add pdc retry for initial module info
2016-07-29 21:58:46 +02:00
Ralph Bean
bcbaf2cf61
kill the wait statements.
2016-07-29 12:15:02 -04:00
Ralph Bean
0b0021b5ea
Merge branch 'master' into ridad
...
Also, fix tests.
2016-07-27 13:34:32 -04:00
Lubos Kocman
87c9ff085c
typo: rida.logging -> rida.logger
2016-07-25 15:08:27 +02:00
Ralph Bean
874da0ecb8
Be strict about this.
...
Better to fail early here than to submit a build, wait 15 minutes, only
to find out it fails.
2016-07-23 22:31:11 -04:00
Ralph Bean
9177f4ed5c
No need to worry about this condition.
2016-07-23 21:06:34 -04:00
Ralph Bean
08b694cd6b
Remove erroneous block.
2016-07-23 20:42:39 -04:00
Ralph Bean
a8d2bc64e3
Merge branch 'ridad' of ssh://pagure.io/fm-orchestrator into ridad
2016-07-23 20:36:15 -04:00
Ralph Bean
5a75e8b7df
msg_id is required.
2016-07-23 20:36:06 -04:00
Lubos Kocman
fd814ef043
add msg_id when we fake message
2016-07-22 19:18:45 +02:00
Lubos Kocman
5ef69b02fb
pre-install macros in buildroot
2016-07-22 19:18:21 +02:00
Ralph Bean
4edada2e15
Try to get tests working again for jenkins...
2016-07-22 11:18:46 -04:00
Lubos Kocman
d507dcdb0d
fixed typo dot -> comma in repos.py
2016-07-22 14:40:43 +02:00
Lubos Kocman
6c6a5b40b6
builder/repos: use artifact_name when reffering to a name and artifact when you refer NameVersionRelase
...
* fixed wait_buildroot - pass buildInfos instad of nvrs
* add few debug messages to repos.py
2016-07-22 14:36:53 +02:00
Lubos Kocman
3b636cd2d0
add . at beginning of dist-tag
2016-07-22 14:03:11 +02:00
Ralph Bean
618bbbe34f
Log tidying.
2016-07-20 16:06:36 -04:00
Ralph Bean
8b3ed86fa8
Change the names of these classmethods to be a little more generic.
2016-07-20 15:50:48 -04:00
Ralph Bean
d08c7b936b
Keep and use the full scm url instead of reconstructing it.
2016-07-20 14:42:56 -04:00
Ralph Bean
544b99ba09
A TODO for later..
2016-07-20 14:35:45 -04:00
Ralph Bean
dcc8a8b732
Another log statement to try and figure out whats going on.
2016-07-20 14:35:37 -04:00