Commit Graph

1528 Commits

Author SHA1 Message Date
mprahl
28470ec46c Don't reassign the value of the modulemd when resuming a build 2017-10-16 14:45:04 -04:00
mprahl
6e8d103a0c Remove unneeded build transition 2017-10-16 14:45:04 -04:00
mprahl
2de4b592d6 Set 'time_modified' at module creation 2017-10-16 14:45:04 -04:00
Jakub Kadlcik
e6a23cfd64 Record components through the backend after module submission 2017-10-16 14:45:04 -04:00
Jakub Kadlcik
7730f0a0ee Allow to inject database session object 2017-10-16 14:45:04 -04:00
mprahl
bd06a803d1 Set the max line length used by the project in tox.ini so flake8 doesn't complain 2017-10-16 14:38:42 -04:00
Ralph Bean
c92a967042 Fix incorrect call to koji API.
This was introduced months ago, but we never hit it.  I just saw it in
the error logs.

It looks like the call to `session.untaggedBuilds` expects a `name`
argument, but `session.listTagged` does *not*.
2017-10-10 18:33:59 -04:00
Matt Prahl
562cad29d7 Merge #733 Default API to verbose and ordered by ID and update the API documentation 2017-10-10 13:01:11 +00:00
mprahl
25b689ef46 Update the documentation 2017-10-06 09:58:34 -04:00
mprahl
9f9cfc358b Default PATCH return value to be the extended_json like POST 2017-10-05 16:17:20 -04:00
mprahl
27250263ea Default verbose to on ordering by id in the module-builds API 2017-10-05 16:17:18 -04:00
Igor Gnatenko
6f408111ac allow any SCM URLs for local builds
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-04 17:18:23 +02:00
Matt Prahl
e44f93178d Merge #728 FIx for issue 673 2017-10-04 14:41:28 +00:00
Jan Kaluza
79a0420328 Raise UnprocessableEntity instead of ValueError in pdc.py to forward the error message to Flask client. 2017-10-04 16:40:02 +02:00
Martin Curlej
15f332e60f added git option which will return correct return code
added tests

fixing typo
2017-10-04 11:44:24 +02:00
Ralph Bean
0e9ccb1895 Remove old SSL config options.
We used to do x509 authn a long time ago.  We have since stopped doing
that, but we kept all of thise confusing SSL/TLS support stuff.

This removes all that, and fixes #685.
2017-10-04 11:37:17 +02:00
Ralph Bean
eed37eced6 Remove some code duplication in views.py
This is mostly just cosmetic.

Fixes #605.
2017-10-03 13:58:42 -04:00
Ralph Bean
d5344b0c63 Fix a typo.
Definitely a typo.  It would be a `NameError`.  There is no `name` here.
2017-10-02 16:22:14 -04:00
mprahl
a9b06a64e9 Bump the version to 1.3.31 v1.3.31 1.3.31 2017-10-02 10:35:21 -04:00
Ralph Bean
7d9edc8f92 Merge #719 Scan for modules stuck in the wait state. 2017-09-29 20:20:42 +00:00
Ralph Bean
6150000d1e Scan for modules stuck in the wait state.
And fake a message to get them building again.

But only if they look to have been stuck for more than 10 minutes.
2017-09-29 14:13:58 -04:00
Ralph Bean
8e27fe16fe Raise a special exception for special messages.
Today, we ignore koji messages with a None `task_id` in two ways.  First
with a conditional, and then with a second check in the message
`__init__` method.  This is a belt-and-suspenders approach.

For other reasons in the UMB messaging plugin, we'd like to put this
check in just one place and use a special exception in the initializer
instead of in a conditional beforehand.
2017-09-29 13:07:06 -04:00
Ralph Bean
f2fb71ccdf Fix NameError.
Here, `task_id` was referenced before it was defined.

This fixes that error and adds a little more color to the log statement.
2017-09-26 14:44:18 -04:00
Jan Kaluža
7c42ae89ea Merge #710 Fix #670 - Tag Content Generator Koji build to special tag based on the base module stream 2017-09-25 07:09:54 +00:00
Jan Kaluza
ad6874b0e6 Fix #670 - Tag Content Generator Koji build to special tag based on the base module stream 2017-09-25 08:36:29 +02:00
Ralph Bean
84b47a25e3 Merge #712 Try to ensure that our macros are sourced last. 2017-09-23 11:52:33 +00:00
Ralph Bean
42aef7d5d2 Try to ensure that our macros are sourced last.
... because we think last-sourced wins and the competition is stiff.
2017-09-22 16:57:54 -04:00
Filip Valder
27ec300cbe Merge #705 pdc: inform user that module can't be found 2017-09-22 06:11:22 +00:00
Ralph Bean
51d6b14cf6 Be careful in the event that there are no rpms associated with a module. 2017-09-21 12:11:17 -04:00
Ralph Bean
f6fdd94fd0 1.3.30 v1.3.30 1.3.30 2017-09-20 21:53:05 -04:00
Ralph Bean
995dbe25fb Merge #704 Support Kerberos authentication in mbs-build 2017-09-20 17:48:54 +00:00
Ralph Bean
3431379c8a Only pull values from config at runtime, not import-time.
This fixes a bug @mikeb ran into.

Not sure how/when it got introduced.
2017-09-20 13:25:14 -04:00
Tomas Tomecek
d62913c3df pdc: inform user that module can't be found
Fixes:
```
  File "/usr/lib/python2.7/site-packages/module_build_service/pdc.py", line 193, in get_module
    retval = session['unreleasedvariants/'](page_size=1, **query)
  File "<string>", line 1, in <lambda>
  File "/usr/lib/python2.7/site-packages/beanbag/namespace.py", line 136, in fn
    *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/beanbag/url_v1.py", line 102, in call
    return self.make_request(path, verb, kwargs, body)
  File "/usr/lib/python2.7/site-packages/beanbag/url_v1.py", line 155, in make_request
    "Bad response code: %d" % (r.status_code,))
beanbag.bbexcept.BeanBagException: Bad response code: 404
```

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2017-09-20 17:19:31 +02:00
Ralph Bean
479ee4f23b Merge #703 Introduce pluggable backends. 2017-09-20 10:52:52 +00:00
mprahl
97ac3de347 Support Kerberos authentication in mbs-build 2017-09-19 16:48:28 -04:00
mprahl
5d9a16e8f0 Support insecure mode on "mbs-build overview" and supress warnings from doing so 2017-09-19 16:48:28 -04:00
mprahl
6165fd5088 Add an API that exposes information about the MBS server 2017-09-19 16:48:28 -04:00
mprahl
b104850fd7 Fix Vagrant SSHFS issue 2017-09-19 14:07:12 -04:00
Ralph Bean
5add97648d Clearer error message. 2017-09-19 13:23:59 -04:00
Ralph Bean
7eaa9c28bf Correct syntax. 2017-09-19 13:22:19 -04:00
Ralph Bean
4d393b9e73 Handle python3 queue rename. 2017-09-19 13:21:29 -04:00
Ralph Bean
c9c3ab7abd Add missing required key. 2017-09-19 13:18:21 -04:00
Ralph Bean
5e08d2ffe4 Introduce pluggable backends.
This allows an operator to write a custom messaging backend to handle
whatever transport and format.
2017-09-19 13:13:40 -04:00
Mike Bonnet
1f077a12ea pass the entire message to get_abstracted_msg()
Other messaging backends may use different formats, so pass the
entire message through and let get_abstracted_msg() handle it.
2017-09-19 13:12:45 -04:00
Mike Bonnet
2a3aea9c97 add tests for MBSConsumer 2017-09-19 13:12:45 -04:00
Jan Kaluza
ff216e1ba9 Do not count reused components to concurrent component builds threshold 2017-09-19 16:10:07 +02:00
Ralph Bean
32ef510b15 1.3.29 v1.3.29 1.3.29 2017-09-18 08:41:16 -04:00
Ralph Bean
f09d97a782 Merge #693 Use repo_include_all to inherit all packages to buildroot once Koji https://pagure.io/koji/issue/588 is merged. 2017-09-18 12:36:29 +00:00
Ralph Bean
a033ec7a65 Merge #697 Fix the transitive dependency resolving to include only active modules. 2017-09-18 12:34:45 +00:00
Jan Kaluza
54a80a677a Fix wrong escaping in mock.cfg - fixes the local builds 2017-09-18 13:28:15 +02:00