Commit Graph

53 Commits

Author SHA1 Message Date
Chenxiong Qi
fa697a950d Add celery app instance with base config
This patch allows to schedule tasks and launch workers with basic
config. To launch a worker:

    celery -A module_build_service.celery_app -l info

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-01-16 14:39:45 -05:00
Chenxiong Qi
87f4f3e546 Use distro.linux_distribution instead
platform.linux_distribution is removed since Python 3.8.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2019-11-18 10:41:41 +08:00
Chenxiong Qi
9fd3731ff7 Remove KerberosAuthenticate and get kerberos username from REMOTE_USER
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2019-10-17 10:20:59 +08:00
Filip Valder
38c0ea6147 Basic monitoring w/-o MBS-specific metrics 2019-02-12 16:08:41 +00:00
Martin Curlej
dfe7660519 Removed PDC dependency from MBS and replaced it with MBS prod instance.
Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Removed pdc from comments.

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Adding missing files.

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Updated PR according to review.

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Local modules builds now

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Removed copr from config

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Fixed bugs

Signed-off-by: Martin Curlej <mcurlej@redhat.com>
2018-07-04 10:13:18 +02:00
Ralph Bean
0fff05c5f5 Drop these two deps.
They're not needed anymore, right?
2018-05-08 14:05:30 -04:00
mprahl
665f55236d Remove unused dependencies 2018-04-05 13:07:13 -04:00
mprahl
aa990d3de3 Use six instead of future 2018-04-05 11:32:21 -04:00
Igor Gnatenko
ebd6dba78f mmd_resolver: allow configuring output of solve() by policy
Also make results more determenistic.

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2018-04-03 09:58:57 -04:00
mprahl
f0852d9009 Port to libmodulemd and support v2 modulemd without module stream expansion 2018-04-03 09:58:57 -04:00
Yash Nanavati
1d3fd2af64 Minor changes towards Python 3 Compatability 2018-02-28 09:01:51 -05:00
mprahl
482a846659 Fix CentOS CI 2018-01-16 14:48:21 -05:00
mprahl
a67b53f5c3 Add a "context" field on component and module releases in Koji for uniqueness for when Module Stream Expansion is implemented 2018-01-16 10:36:09 -05:00
mprahl
bc4a612b38 Stop using site_packages when running tox 2018-01-08 08:59:14 -05:00
mprahl
c0ec0f82c1 Remove urlgrabber as a dependency 2018-01-03 10:21:37 -05:00
mprahl
97ac3de347 Support Kerberos authentication in mbs-build 2017-09-19 16:48:28 -04:00
mprahl
0f6d7a55c5 Add Kerberos + LDAP authentication support 2017-09-15 12:02:57 -04:00
mprahl
b2f07c13e0 Update Vagrant box to Fedora 26 and include some fixes 2017-09-11 16:31:48 -04:00
Matt Prahl
e836b8cbe1 Merge #635 kobo version requirement 2017-08-10 00:54:38 +00:00
Yashvardhan Nanavati
5ab15a4261 kobo version requirement 2017-08-09 17:13:16 -04:00
Filip Valder
9b19e52bc7 add dogpile.cache & re-sort 2017-07-17 17:47:01 +02:00
Petr Šabata
84df0b4ef1 Use modulemd.dump_all to create local repodata
Both pungi and dnf use the new multidocument format, with the
old one not really being supported by anything at this point.
Let's be compatible.

This change requires modulemd-1.2.0+.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2017-05-26 09:40:37 +02:00
Jan Kaluza
3ad87b2f46 Add 'overview' command to mbs-build. 2017-04-10 11:29:19 +02:00
Matt Prahl
a5cc4eb280 Add a module's commit hash, scmurl, and the buildrequires' commit hashes, stream, and version in the modulemd 2017-02-21 09:53:05 -05:00
Jan Kaluza
1d8bc3e33a Use concurrent.futures instead of our own ThreadPool implementation 2017-02-21 08:02:50 +01:00
Filip Valder
c51adf1796 get rid of 'WARNING - Cannot find qpid python module. Make sure you have python-qpid installed.' 2017-01-18 16:24:28 +01:00
Ralph Bean
7058833d22 python-systemd is actually optional.
Yup.
2017-01-17 14:16:36 -05:00
Ralph Bean
efd47569ae vcrpy is a test requirement. 2017-01-17 11:54:41 -05:00
Jan Kaluza
4acc1d69aa Use vcrpy for tests to simulate PDC responses. 2017-01-12 11:52:49 +01:00
Ralph Bean
c9d1a000be Also psutil. 2016-12-15 16:27:17 -05:00
Ralph Bean
a45232b734 We require moksha.hub now. 2016-12-15 16:27:17 -05:00
Filip Valder
395ded0243 fix #238: add httplib2 and the corresponding python-httplib2 2016-12-06 10:26:22 +01:00
Filip Valder
048aae305e mock dependency 2016-12-05 15:16:41 +01:00
Filip Valder
08c564d419 fix systemd dep name 2016-12-05 15:16:41 +01:00
Filip Valder
791c710508 add systemd dependency 2016-12-05 15:16:41 +01:00
Filip Valder
efe688aa6f re-ordered; fix: flask with capital 'F' 2016-12-05 15:16:41 +01:00
Jan Kaluza
966a73251a Add support for modulemd-1.0 backward-incompatible changes like commit being replaced by ref 2016-11-14 15:32:51 +01:00
Jan Kaluza
a34098d44a Use modulemd-0.1 before we upgrade to latest one 2016-11-09 20:00:45 +01:00
Jakub Kadlčík
05b1ea3ed9 Revert "Require copr > 1.74 for module repo API"
Revert until copr > 1.74 with required API method is released.
Also all copr dependencies should be optional.
This reverts commit 438df130d5958215f93cc448d06ec2dba3b42f97.
2016-10-24 20:46:50 +02:00
Jakub Kadlčík
d0a7753be3 Require copr > 1.74 for module repo API 2016-10-24 20:46:50 +02:00
Matt Prahl
c77be1c4d3 Add the dependencies required for fedmsg signing 2016-09-27 16:40:03 -04:00
Nils Philippsen
2233f60f58 implement BaseMessage.__repr__
Take advantage of the information contained in signature/parameter
objects to represent positional and keyword arguments properly. Fall
back to using the funcsigs module on Python 2.
2016-09-22 16:08:52 +02:00
Ralph Bean
b12bda2d55 Check FAS for packager status, not pkgdb.
Before this, we were consulting pkgdb to see if the given user was the
maintainer of any packages.

That mostly works... but technically, we want to consult FAS to see if
the user is in the packager group.

We found this when @mprahl was unable to submit builds to rida.  I added
him to the packager group, but nothing changed!  (As written, he had to
actually own a package).

This change fixes all that so that we query FAS instead of pkgdb.

Tests are added.
2016-09-07 16:35:25 -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
0b0021b5ea Merge branch 'master' into ridad
Also, fix tests.
2016-07-27 13:34:32 -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
caaeb4c7bc Use munch instead of _get_opts_from_dict. 2016-07-20 14:48:08 -04:00
Ralph Bean
80cd8c3fad Get things working on py2 as well as py3. 2016-07-13 11:25:02 -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