James Antill
d809d34ed7
Add jenkins-check.sh to run unit tests from docker.
...
Roughly as jenkins does.
2016-08-25 15:23:47 +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
Nils Philippsen
c1eb85044a
Merge branch 'lkocman/ready_state'
2016-08-25 14:27:46 +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
Nils Philippsen
4bb5227aec
add 'connect' parameter which was missing
...
Not sure if that needs to be there, it's not used at all in the method.
Side-effects?
2016-08-24 16:37:55 +02:00
Nils Philippsen
343ad70c5a
Merge branch 'api-search'
2016-08-24 15:23:15 +02:00
Nils Philippsen
015990bc6c
fix typos and "i.e." instead of "e.g."
2016-08-24 15:21:57 +02:00
Matt Prahl
09d857b25d
Add and cleanup documentation
2016-08-24 15:20:20 +02:00
Matt Prahl
4997e06258
Update Vagrant to use Fedora 24
2016-08-24 15:20:20 +02:00
Matt Prahl
361de94693
Add filtering to the module-builds route
2016-08-24 15:20:20 +02:00
Matt Prahl
c79139b82c
Add additional info to the module-build(s) API output
2016-08-24 15:20:20 +02:00
Matt Prahl
864ba5104e
Modify the database timestamps when the build state changes
2016-08-24 15:20:20 +02:00
Matt Prahl
d1a01e5d79
Add owner and timestamp columns to the module_builds table
2016-08-24 15:20:20 +02:00
Nils Philippsen
1cd21434fb
catch exceptions when removing temporary directory
...
Additionally, don't try to remove it when it wasn't created in the first
place.
2016-08-24 15:20:20 +02:00
Matt Prahl
d65f4fed55
Fix migration comments
...
Fill out change log, remove automatically generated comments.
2016-08-24 15:20:20 +02:00
Matt Prahl
1386d3506c
Modify formatting for readability
...
Also, remove misleading comment.
2016-08-24 15:20:20 +02:00
Nils Philippsen
66764e2d5b
Merge branch 'use_variant_id'
2016-08-24 15:12:56 +02:00
Lubos Kocman
6bfc6c4f47
Rida needs to use variant_id rather than variant_name for pdc queries
...
- variant_id: base_runtime where variant_name: The base runtime module
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-08-24 15:09:34 +02:00
Nils Philippsen
4259ecd894
Merge branch 'frostyx/master'
2016-08-24 14:21:51 +02:00
Nils Philippsen
ef4caa3455
Ensure temporary directories are cleaned up always.
...
Previously, if SCM.checkout() raised an exception, the created temporary
directory would be left over.
2016-08-24 14:20:57 +02:00
Jakub Kadlčík
7d487b64fc
Cleanup the temporary directory
2016-08-24 14:13:31 +02:00
Jakub Kadlčík
2c90806aa7
Use mkdtemp instead of TemporaryDirectory
...
because the TemporaryDirectory is python3 only
2016-08-24 14:13:31 +02:00
Jakub Kadlčík
3ba33f4e53
Use Popen's returncode instead of getstatusoutput
...
because the getstatusoutput is python3 only
2016-08-24 14:13:31 +02:00
Jakub Kadlčík
42e2686a99
Install git package to get SCM class working
2016-08-24 14:13:31 +02:00
Nils Philippsen
078def2f53
Merge branch 'api_change'
...
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-08-22 18:26:31 +02:00
Lubos Kocman
adca9244da
rename _build_exists to _get_task_by_artifact
...
- function returns task_id if associated build exists
- fix typo in docstring
- Nils is disappointed by Guido
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-08-22 18:20:30 +02:00
Lubos Kocman
5c49c7d28b
get rid of testbuildroot() manage.py cmd
2016-08-22 18:20:30 +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
Lubos Kocman
dd0b60dcdd
Change external api for GenericBuilder class
...
- merge buildroot_prep and buildroot_resume under buildroot_connect
https://pagure.io/fm-orchestrator/issue/34 (idempotent movement)
- rename add_dependency to add_repo
- provide workflow comparison koji vs copr as a docstring
- update docstrings for GenericBuilder
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-08-22 18:03:50 +02:00
Nils Philippsen
03b06ee427
Merge branch 'containerize'
2016-08-17 12:11:50 +02:00
Tomas Tomecek
b1ae8e952a
vagrantfile: put koji.conf to /etc/rida
...
so connection to koji works
2016-08-17 07:58:14 +02:00
Tomas Tomecek
71d7f382f1
composefile: change SELinux context appropriately
2016-08-17 07:58:14 +02:00
Tomas Tomecek
5666d49bce
readme, containers: provide debugging instructions
2016-08-17 07:58:14 +02:00
Tomas Tomecek
f24898db79
containerize!
2016-08-17 07:58:14 +02:00
Nils Philippsen
4a994d71e7
Merge branch 'api-pagination'
2016-08-15 17:54:49 +02:00
Matt Prahl
961f22f0b4
Add pagination and verbose flag to the /rida/module-builds/ route
...
Adds details about the API changes
2016-08-15 17:54:40 +02:00
Matt Prahl
0bef0e0edc
Adds debug option to runssl function
2016-08-15 17:54:40 +02:00
Lubos Kocman
68bc469bfa
Add remaining koji.stg arches to default config.py
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-08-12 16:32:53 +02:00
Ralph Bean
59ebcdbb84
Get the test suite working again.
2016-08-10 16:15:01 -04:00
Ralph Bean
2790339634
Be more specific here about what kinds of errors trigger a retry.
2016-08-10 16:14:52 -04:00
Ralph Bean
7a8e9e2232
flask.jsonify() doesn't like bare lists.
2016-08-10 15:01:40 -04:00
Ralph Bean
ef97401131
Cannot concatenate ints and strings.
2016-08-10 14:49:12 -04:00
Ralph Bean
cbc9f33954
Apply a fix from our demo-readiness efforts..
2016-08-10 14:06:43 -04:00
Ralph Bean
c9aefef5f2
Merge branch 'Database-Migration-Support-and-Cleanup'
2016-08-10 13:48:45 -04:00
Ralph Bean
124b3c3900
Fix NameError for missing query.
2016-08-10 13:48:15 -04:00
Ralph Bean
36947b07a5
Do away with all this manual copying.
...
A breath of fresh air!!
2016-08-10 13:47:50 -04:00
Ralph Bean
3358a6c184
Move import into local scope.
2016-08-10 13:47:34 -04:00
Lubos Kocman
ad3eb578fb
add arches to module-tag (not just build-tag)
...
* this fixes issue that pungi can't discover arches for compsing module from tag
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-08-03 10:10:39 +02: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
8fdae07e7e
Some logging for buildroot readiness.
2016-07-31 16:26:11 -04:00