1510 Commits

Author SHA1 Message Date
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
Jan Kaluza
9bac6bc83e Fix the transitive dependency resolving to include only active modules. 2017-09-18 13:23:46 +02:00
Jan Kaluza
c6b2189110 Use repo_include_all to inherit all packages to buildroot once Koji https://pagure.io/koji/issue/588 is merged. 2017-09-18 09:39:47 +02:00
Ralph Bean
3b93dc7143 Restore the old message format.
The message format broke in 3cb41aa5dc

The resulted in tracebacks in pdc-updater when it tried to learn things
about a module that was just submitted.  It relied on certain fields
(`stream`) being in the message body.  This change restores those fields
to get things working again.
2017-09-15 23:34:57 +02:00
Ralph Bean
7bb88621d1 Move error handling up.
We need to check for the error here *before* we make a second request
for the "last page".  If we don't, we can end up submitting a query
asking for "page 0" which fails without a helpful message.
2017-09-15 16:38:29 -04:00
Ralph Bean
72d1c83735 Complain early. 2017-09-15 13:03:15 -04:00
Ralph Bean
452cf47392 Make ldap3 optional, to workaround packaging issues. 2017-09-15 12:50:51 -04:00
Ralph Bean
5038225964 1.3.28 v1.3.28 1.3.28 2017-09-15 12:18:53 -04:00
Ralph Bean
fa8ac2001d Merge #681 Add Kerberos + LDAP Authentication 2017-09-15 16:10:22 +00:00
mprahl
0f6d7a55c5 Add Kerberos + LDAP authentication support 2017-09-15 12:02:57 -04:00
Ralph Bean
a2d89ae18d Merge #688 Fix #661: mbs hard-codes x86_64 as the local architecture 2017-09-15 15:58:27 +00:00
Ralph Bean
27e845c2ad Merge #684 Fix #634: Conflict with packages filtered out from the build-requires to ensure they won't appear in a buildroot. 2017-09-15 15:23:01 +00:00
Ralph Bean
aba5e3b529 Merge #686 Wait for components to be tagged also in final tag before marking module as done. 2017-09-15 15:22:16 +00:00
Jan Kaluza
999baa2992 Wait for components to be tagged also in final tag before marking module as done. 2017-09-15 15:25:29 +02:00
mprahl
79a79fdcf2 Support calling the tests by using pytest instead of just py.test 2017-09-15 09:21:59 -04:00
mprahl
8db5de5a81 Add .vscode to .gitignore 2017-09-15 09:21:59 -04:00
Filip Valder
be7c8d7aff Fix #661: mbs hard-codes x86_64 as the local architecture 2017-09-15 15:18:02 +02:00
Jan Kaluza
7ebb4a8bc5 Conflict with packages filtered out from the build-requires to ensure they won't appear in a buildroot. 2017-09-15 13:47:33 +02:00
Filip Valder
7e3914e8b3 Remove parameterized
The reason is mentioned in PR#684:
"I've talked with @fivaldi to rewrite the test to not use parameterized,
since it is not in Fedora."
2017-09-15 13:31:48 +02:00