Commit Graph

69 Commits

Author SHA1 Message Date
Petr Šabata
2b62d67387 Check whether the module already exists in the database
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 14:29:42 +02:00
Petr Šabata
2ff0c163d3 Make git calls quiet
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 14:20:14 +02:00
Petr Šabata
a45f1888a8 Attempt to fetch the modulemd file
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 14:11:39 +02:00
Petr Šabata
18006ed9b1 createdb.py should use python3
So we don't fail on importing configparser in rida.config.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 14:10:48 +02:00
Petr Šabata
3cc438b379 Extend the SCM code
Parse the scmurls, understand the git hash parts, make the checkout()
method actually check out the given hash, add various properties, make
allowed_scm URLs optional, and drop the common repo code.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 13:46:34 +02:00
Petr Šabata
4da929ac93 Read raw data and add a submit-build.sh test script
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 12:32:28 +02:00
Jan Kaluza
4b91b519d2 Merge branch 'master' of ssh://pagure.io/fm-orchestrator 2016-07-08 10:48:06 +02:00
Jan Kaluza
3c865497bf Use log_backend to choose from 'console', 'file' or 'journal' logging backends. 2016-07-08 10:46:59 +02:00
Petr Šabata
fc91ed08dc Sort imports, remove obsolete TODOs
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 10:15:21 +02:00
Jan Kaluza
6314354fd4 Use built-in 'logging' module for logging. Add Logger.init_logging function to initialize logging according to config file. 2016-07-08 07:28:25 +02:00
Petr Šabata
cf44ccc360 Merge #9 add git functions 2016-07-07 15:29:57 +00:00
Petr Šabata
d51b7809c7 Merge branch 'master' of ssh://pagure.io/fm-orchestrator 2016-07-07 16:33:01 +02:00
Petr Šabata
204920791d Add pyOpenSSL to requirements.txt
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-07 16:32:02 +02:00
Jan Kaluza
fbfdf1a561 Fix type in 'ClientCertRequestHander' 2016-07-07 15:20:09 +02:00
Jan Kaluza
dd71a5a496 Add 'generate_localhost_cert.sh' script to generate localhost server.crt and server.key for testing 2016-07-07 14:43:04 +02:00
Jan Kaluza
36faac7040 Add simple auth based on the client certificate and pkgdb API. 2016-07-07 14:35:47 +02:00
Karsten Hopp
d30d501657 only a few routines remain from the original koji sources. change comment 2016-07-07 14:01:44 +02:00
Karsten Hopp
8494e696bc add simple retry mechanism 2016-07-06 14:23:20 +02:00
Karsten Hopp
d033c32113 add function to check it a giturl exists in dist-git 2016-07-05 17:23:07 +02:00
Karsten Hopp
f3c7eac837 add a function that takes a string with a dist-git url as parameter and returns a cgit url 2016-07-05 14:09:51 +02:00
Karsten Hopp
740a2f576e no need to set an environment, use execvp 2016-07-05 13:36:02 +02:00
Karsten Hopp
a9bcef7d29 add a few functions to return either the git hash or a git URL of master/HEAD of either the git object or a package name 2016-07-05 12:18:36 +02:00
Petr Šabata
ad4bcc846e Add the basic skeleton code for ridad and move some TODOs around
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-04 17:17:43 +02:00
Karsten Hopp
62ad0f40b6 fix merge 2016-07-04 15:24:07 +02:00
Karsten Hopp
e37310ab8b drop -n from git clone command 2016-07-04 15:22:57 +02:00
Karsten Hopp
e5bd3418d2 initial scm version 2016-07-04 14:53:13 +02:00
Karsten Hopp
067330c979 initial scm version 2016-07-04 14:49:14 +02:00
Petr Šabata
b802e72086 Files cleanup
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-01 16:17:46 +02:00
Petr Šabata
815626e47b Merge #8 Add listening for notifications as well. 2016-06-30 18:53:06 +00:00
Petr Šabata
43bd2e233a Merge #7 Add a requirements.txt file. 2016-06-30 18:53:00 +00:00
Ralph Bean
1099752c90 Also "listen" for messaging. 2016-06-30 13:23:30 -04:00
Ralph Bean
1e924139f1 Add a requirements.txt file.
I know you're recommending that people use the copr... but this should
let people develop in a virtualenv (like I do).
2016-06-30 12:41:33 -04:00
Petr Šabata
b6e5ee55ed Merge #6 A little script for submitting test builds. 2016-06-30 16:40:54 +00:00
Petr Šabata
57fd6b9e9b Merge #5 Create database with python. 2016-06-30 16:40:28 +00:00
Petr Šabata
ebb23a4274 Merge #4 Bugfix - this was backwards. 2016-06-30 16:40:10 +00:00
Petr Šabata
6931ce04e7 Merge #3 Basics of messaging. 2016-06-30 16:39:20 +00:00
Ralph Bean
82690718b3 A little script for submitting test builds. 2016-06-30 12:36:08 -04:00
Ralph Bean
a0c3d035a5 Create database with python. 2016-06-30 12:34:18 -04:00
Ralph Bean
a1188f972e Bugfix - this was backwards. 2016-06-30 12:32:03 -04:00
Ralph Bean
c691973601 Basics of messaging. 2016-06-30 12:30:01 -04:00
Petr Šabata
c48ed2285a Merge #2 Add a gitignore file. 2016-06-30 15:39:40 +00:00
Ralph Bean
ac2024ca48 Add a gitignore file. 2016-06-30 10:48:37 -04:00
Ralph Bean
7b3224e2a8 Return error explanations to the user. 2016-06-30 10:47:12 -04:00
Petr Šabata
b7eb131d22 Clean up TODOs and pretend the submission works
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-30 10:54:24 +02:00
Petr Šabata
d54d1dcabb Rename the Session class to Database
This feels way more natural; you don't have sessions with session properties
anymore.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-30 10:40:47 +02:00
Petr Šabata
6e9af1a55e Document the HTTP 422 status in the README
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-29 18:14:27 +02:00
Petr Šabata
9395650eb5 Extend the module build submission handler
This is still not done.  See all the FIXMEs.  Oh my.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-29 18:13:45 +02:00
Petr Šabata
9d3a1b1e03 Add python3 shellbangs to rida and ridad
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-29 17:15:09 +02:00
Petr Šabata
edcc35440a Add basic checks to module build submission handler
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-29 17:14:05 +02:00
Petr Šabata
ef592d0e00 Add config options for default RPM repositories and caches
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-29 10:47:27 +02:00