Commit Graph

197 Commits

Author SHA1 Message Date
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
1386d3506c Modify formatting for readability
Also, remove misleading comment.
2016-08-24 15:20:20 +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
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
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
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
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
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
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
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
cdc7e366f9 I'm pretty sure this isn't supposed to be here. 2016-07-30 10:18:34 -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
Lubos Kocman
cd6a5d03cc add scmurl to ModuleBuild, get koji_tag from pdc, get_module works with module- prefix 2016-07-29 21:58:08 +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
074267233c We want our dist-tag hack in both srpm-build and build. 2016-07-23 23:57:59 -04:00
Ralph Bean
23308474f2 The filename matters here. 2016-07-23 23:57:54 -04: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
3f9e7a7f5f A convenience method. 2016-07-23 22:30:54 -04:00
Ralph Bean
cb671a19da Fix dist-tag spec hack missed in b0c4fbb1. 2016-07-23 21:09:43 -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
Lubos Kocman
b0c4fbb11c builder.py - fix dist-tag srpm creation, add option to pre-install artifact in buildroot 2016-07-22 19:17:04 +02:00
Ralph Bean
4edada2e15 Try to get tests working again for jenkins... 2016-07-22 11:18:46 -04:00
Lubos Kocman
257c305514 builder/koji: use retry for add_group_packages 2016-07-22 15:57:23 +02:00
Lubos Kocman
1f521d9eda builder: fix adding groups 2016-07-22 15:22:34 +02: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