Ralph Bean
4edada2e15
Try to get tests working again for jenkins...
2016-07-22 11:18:46 -04:00
Ralph Bean
0197def83e
Remove koji from requirements.txt so that jenkins will fly.
2016-07-22 11:11:54 -04:00
Ralph Bean
24e7baa6ca
Merge branch 'ridad'
2016-07-15 12:14:22 -04:00
Ralph Bean
2eee1c8ed6
Descriptions of the states.
2016-07-15 12:13:30 -04:00
Ralph Bean
f09369a90e
Some better logging for ridad.
2016-07-15 12:12:42 -04:00
Lubos Kocman
8d17d3a763
Add bunch of todos for init phase
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-07-15 18:04:16 +02:00
Lubos Kocman
c6049da301
modules.py: updated db to pdc calls
2016-07-15 17:55:51 +02:00
Lubos Kocman
1857b109a2
database: use .one() instead of .all() + assert
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-07-15 17:53:36 +02:00
Ralph Bean
d0aaf87d4c
Merge #20 Work on ridad.
2016-07-15 15:33:22 +00:00
Ralph Bean
371c23d6bb
Descriptions of the states.
2016-07-15 11:23:32 -04:00
Lubos Kocman
1e44e3b299
pdc: unreleasedvariants
2016-07-15 16:04:33 +02:00
Lubos Kocman
ec01f80189
temp. sleepy-hack to wait for pdc-updater to finish his job
2016-07-15 15:10:50 +02:00
Lubos Kocman
5222b25c97
Fixed new -> init, temp. disabled sanity_check, handling states correctly
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-07-15 15:09:36 +02:00
Lubos Kocman
4eae650878
rida/pdc.py: add release
2016-07-15 15:06:53 +02:00
Lubos Kocman
d53f57f230
database module: fixed session is not callable and fixed filter_by -> filter (previously raised error)
2016-07-15 15:06:32 +02:00
Lubos Kocman
ef48854aa6
IOError prints filename. Very useful for debugging
2016-07-15 15:05:35 +02:00
Lubos Kocman
490da57176
config: add ssl_enabled=True. fas auth would simply not work without ssl
2016-07-15 15:05:10 +02:00
Nils Philippsen
6f7e12d35e
Use API result structure for dependencies.
...
Finds runtime and build dependencies in PDC UnreleasedVariant objects
in the fields 'runtime_deps' and 'build_deps'. Both are lists of
dictionaries, each with currently one field 'dependency' which contains
the name of the other variant on which this one depends, with an
optional version constraint. E.g.:
{
"variant_id": ...,
...
"runtime_deps": [
{
"dependency": "foo>=2"
}
],
"build_deps": [
{
"dependency": "foo>=2"
}
]
}
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-07-14 16:21:28 +02:00
Nils Philippsen
81cd81a620
PDC uses plural names for API endpoints.
...
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-07-14 16:15:12 +02:00
Lubos Kocman
70ca8ee885
except -> except AttributeError for getpeercert
2016-07-14 14:32:38 +02:00
Lubos Kocman
64ce1a517a
fixed typo in rida.py
2016-07-14 14:32:04 +02:00
Lubos Kocman
020e75865b
Merge branch 'master' of ssh://pagure.io/fm-orchestrator into ridad
2016-07-14 13:48:05 +02:00
Ralph Bean
40a3448dca
Some handlers and one test.
2016-07-13 16:55:51 -04:00
Ralph Bean
0859641cb8
A useful utility classmethod.
2016-07-13 16:55:41 -04:00
Ralph Bean
ff831df01d
Adjust this name.
2016-07-13 16:55:34 -04:00
Ralph Bean
14a4536583
Reorganize the db somewhat..
2016-07-13 15:40:39 -04:00
Ralph Bean
c25f681731
Allow turning of ssl for rida.py
...
Even if it means that authn won't work.
Nice for development.
2016-07-13 14:40:59 -04:00
Ralph Bean
e470b4f0da
Bring back a main entrypoint for ridad.py.
2016-07-13 14:39:46 -04:00
Ralph Bean
e644f0b9df
Some structure for event handling in ridad.py.
2016-07-13 14:39:23 -04:00
Ralph Bean
12a9f6d7db
Give the Database a context manager interface.
2016-07-13 14:39:00 -04:00
Ralph Bean
bd30153feb
Move ridad into an importable location and validate module state strings.
2016-07-13 14:03:17 -04:00
Ralph Bean
b5bd9d4cb1
No need for the extra loop here.
2016-07-13 12:56:29 -04:00
Ralph Bean
5563886c07
basic logging for ridad.
2016-07-13 12:56:19 -04:00
Ralph Bean
5e7244fe9c
Allow configurable host and port for rida.py
2016-07-13 11:34:36 -04:00
Ralph Bean
80cd8c3fad
Get things working on py2 as well as py3.
2016-07-13 11:25:02 -04:00
Petr Šabata
594555ae7a
Merge #14 Small py3 fix.
2016-07-13 15:00:37 +00:00
Lubos Kocman
75258ff53e
Make test-buildroot.py executable
...
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-07-13 10:31:49 +02:00
Lubos Kocman
9eb5c25e25
Add rida/pdc.py - A rida related product definition center calls
...
* renamed and split config.pdc to config.pdc_url, config.pdc_insecure, config.pdc_develop
* test-pdc.py contains example usage
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
2016-07-13 10:31:13 +02:00
Ralph Bean
1dc0624329
Small py3 fix.
2016-07-12 10:19:23 -04:00
Ralph Bean
907556ddb4
Break the ssl stuff out into a function and validate that the files are present.
2016-07-12 10:17:56 -04:00
Petr Šabata
f286582e3e
Revert "add python3-fedmsg-core to requirements file"
...
This is a list of PyPI packages for virtualenv-based development.
This reverts commit 2aad1007a9 .
2016-07-12 14:01:24 +02:00
Karsten Hopp
2aad1007a9
add python3-fedmsg-core to requirements file
2016-07-12 13:53:51 +02:00
Petr Šabata
ab7b65d6a5
Add the database and key files to .gitignore
...
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 18:32:48 +02:00
Petr Šabata
fb231cd384
SCM cleanup
...
Removing the Fedora-centric functions; we won't need those here.
Also dropping the GIT+SSH scheme; rida won't have SSH access to
pretty much anywhere. Also removing the is_scm_url() method; we
already perform similar check in __init__.
Removing the koji copyright notice; all of the code is our own now.
I've also changed to documentation so that apidoc can parse it.
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 18:18:50 +02:00
Petr Šabata
3566271601
Add polling_interval to config
...
This will be used by ridad.
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 18:18:10 +02:00
Petr Šabata
5f56a7c95f
Make submit-build.sh a bit more user-friendly
...
By adding some line breaks.
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 18:17:16 +02:00
Petr Šabata
bb814d3d55
rida.py cleanup
...
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 14:45:40 +02:00
Petr Šabata
d7b69fcece
Check if all the submitted components are available
...
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 14:36:39 +02:00
Petr Šabata
851d12197b
Add is_available() method to SCM, make _run() a static method
...
And add checks _run() checks to checkout().
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 14:35:47 +02:00
Petr Šabata
e378f03c9e
Change the default configuration to use production RPM repos
...
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 13:44:10 +02:00