Commit Graph

337 Commits

Author SHA1 Message Date
mprahl
11e39ab0c3 Fix multiple transitions to the failed state 2017-11-06 16:46:57 -05:00
mprahl
d8f126e978 Allow resuming from a failure during the "init" phase
This also shifts build failure transitions from individual functions
in utils.py to the init module handler.
2017-11-06 14:15:12 -05:00
mprahl
e91f4fdea6 Revert "added git option which will return correct return code"
This caused an issue when the modulemd had the ref's for its components
as commit hashes instead of branches.

This reverts commit 15f332e60f.
2017-11-03 16:20:33 -04:00
mprahl
58d160cce4 Transition a failed module to wait instead of init upon resuming 2017-11-03 15:12:39 -04:00
Ralph Bean
9b006e1ba5 The Case of the Mysterious Dist Tag
We ran into a crazy bug in stg today where the `disttag` of every
component build .. for every module .. was the same!  (duh duh duh).

Turns out this had to do with the way we were writing the name, stream,
and version values back into the yaml file we recorded.  More correctly,
how we *weren't* writing those values back.
2017-11-02 13:36:18 -04:00
mprahl
089a0c3db4 Fix typo 2017-11-02 08:37:59 -04:00
mprahl
45cce653eb Add the ability to specify different rebuild methods 2017-11-01 15:39:43 -04:00
mprahl
6cf24baebb Don't allow a user to resubmit a module build that is already in the init state 2017-11-01 10:10:10 -04:00
Martin Curlej
1eb3c653dd Changed the filters so they execute when everything is build
Signed-off-by: Martin Curlej <mcurlej@redhat.com>
2017-10-31 16:04:31 -04:00
mprahl
c7e6fff1d8 Handle module builds without components 2017-10-31 14:47:26 -04:00
Nick Coghlan
d159350fff Default to reverse ordering by ID in APIs
Adjusts the affected tests to assume the
exact current set of default test data.

These tests were also testing the exact
same query URL, so they've been consolidated
into a single test.
2017-10-31 09:15:08 -04:00
Jan Kaluza
b56f56a486 Use dogpile.cache to cache the default_buildroot_groups result 2017-10-26 14:03:23 +02:00
Martin Curlej
60b3d97c97 flake8 cleanup
Signed-off-by: Martin Curlej <mcurlej@redhat.com>

removed some noqa tags
2017-10-25 12:13:59 +02:00
mprahl
eedf0a1684 Default verbose to false but present a lot more information when verbose is false 2017-10-23 20:19:51 -04:00
mprahl
f5de140521 Schedule components based on build time 2017-10-23 15:33:57 -04:00
mprahl
8e41f9f335 Try to reuse all components in the batch before starting it 2017-10-23 15:33:57 -04:00
Igor Gnatenko
1e6708b34f MockedSCM -> FakeSCM
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-18 17:37:13 +02:00
Matt Prahl
4eaec38ee4 Merge #743 Avoid test collection warning from pytest 2017-10-18 15:28:18 +00:00
Nick Coghlan
5d0287b06f Avoid test collection warning from pytest
pytest thinks `TestModuleBuilder` looks like a test
class name, so it complains about the presence of
an `__init__` method.

Changing the name of the helper class avoids the
warning.
2017-10-18 19:25:15 +10:00
mprahl
62d438651a Fix tests 2017-10-16 15:09:42 -04:00
mprahl
27250263ea Default verbose to on ordering by id in the module-builds API 2017-10-05 16:17:18 -04: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
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
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
995dbe25fb Merge #704 Support Kerberos authentication in mbs-build 2017-09-20 17:48:54 +00:00
mprahl
6165fd5088 Add an API that exposes information about the MBS server 2017-09-19 16:48:28 -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
2a3aea9c97 add tests for MBSConsumer 2017-09-19 13:12:45 -04:00
Jan Kaluza
9bac6bc83e Fix the transitive dependency resolving to include only active modules. 2017-09-18 13:23:46 +02: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
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
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
Ralph Bean
c29fd257e4 Merge #655 CoprModuleBuider - some unit tests for it 2017-09-12 13:03:14 +00:00
Filip Valder
3cb41aa5dc Changes in MBS restful API:
- Refactor MBS API code
- Unify module-/component_build API philosophy/design/approach
- Naming fixes
- _utc_datetime_to_iso moved from ModuleBuildAPI and is now a module-level function.
- Existing v1 API remains unchanged. ComponentBuildAPI now supports individual component build listing + verbose mode.
- documented in README
- various component_build API tests added
2017-09-11 14:48:22 +02:00
Jakub Kadlcik
8db83b11ab Mock also _create_chroot_safe so nothing is really created 2017-09-09 13:51:07 +02:00
Jakub Kadlcik
d39ebf5ccb Mock CoprClient.create_project method
So the python-copr-1.79-1 is not required for the chroots= parameter
2017-09-09 13:45:52 +02:00
Jakub Kadlcik
7353d4ce0b Copr uses latest-Fedora-Modular-26 repo 2017-09-09 13:43:45 +02:00
Jakub Kadlcik
58af071602 Not depend on values order 2017-09-09 13:43:42 +02:00
Jakub Kadlcik
de26b5614e Dont require copr config file 2017-09-09 10:07:42 +02:00
Jakub Kadlcik
f492e096b6 Fix mock path to copr module builder 2017-09-09 10:07:42 +02:00
Jakub Kadlcik
06e2d2b688 Move copr tests to proper directory 2017-09-09 10:07:42 +02:00
Jakub Kadlcik
376ca596c5 Add some unit tests for Copr 2017-09-09 10:07:42 +02:00
Jan Kaluža
379fe8ed9b Merge #674 Move vcrpy cache to gzipped tarball and extract it before tests execution. 2017-09-08 12:59:32 +00:00
Jan Kaluza
aa8a0574e4 Move vcrpy cache to gzipped tarball and extract it before tests execution. 2017-09-08 11:35:24 +02:00
Jan Kaluža
2a6cbe6ddb Merge #647 Add 'requires' of 'build-required' modules to buildroot when building module. 2017-09-08 07:38:41 +00:00
Jan Kaluza
83628ec74f Add 'requires' of 'build-required' modules to buildroot when building module. 2017-09-08 09:25:44 +02:00