Commit Graph

45 Commits

Author SHA1 Message Date
mprahl
78fea1678b Flake8 fix 2017-11-27 16:20:11 -05:00
Martin Curlej
a1fd9daa73 Moved skiptests cli option 2017-11-21 09:07:32 +01:00
Matt Prahl
ea26e0281a Merge #788 Fix bug and clean up scm.get_latest 2017-11-14 13:38:23 +00:00
mprahl
1622494b17 Replace the name of the "branch" parameter in "scm.get_latest" to "ref" 2017-11-13 09:20:20 -05:00
Ralph Bean
8431d2698b Explicit imports of builders in the test suite. 2017-11-10 16:03:14 -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
58d160cce4 Transition a failed module to wait instead of init upon resuming 2017-11-03 15:12:39 -04:00
mprahl
45cce653eb Add the ability to specify different rebuild methods 2017-11-01 15:39:43 -04: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
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
mprahl
62d438651a Fix tests 2017-10-16 15:09:42 -04: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
Jan Kaluza
83628ec74f Add 'requires' of 'build-required' modules to buildroot when building module. 2017-09-08 09:25:44 +02:00
Jan Kaluza
4f4a6c92b0 Use PDC ordering to get the latest module. 2017-09-07 09:16:19 +02:00
Jan Kaluza
aac4227eb8 Add 'mbs-build local [[--add-local-build n:s:v], ...]' to use local builds as dependency. 2017-08-17 10:00:19 +02:00
Filip Valder
09b3f32dbb Fix #619: Support for module YAML file validation within a SCM repository 2017-08-07 13:10:53 +02:00
Filip Valder
7ef2975984 PEP8 fixes 2017-07-17 18:29:10 +02:00
Jan Kaluza
b4c0f49e4b Fix get_reusable_component in case when database returns components in different order than what we have in MBS. 2017-06-05 15:03:59 +02:00
Jan Kaluza
af2d2f8ad1 Do not reuse components when rpm macros change 2017-05-22 13:42:02 +02:00
mprahl
6f44a995f4 Raise an error when a module includes a module with the same component 2017-04-24 08:55:25 -04:00
Nils Philippsen
ec2be36d6e pep8: don't surround '=' with spaces for keyword args 2017-04-21 12:54:06 +02:00
Jan Kaluza
f8bb6e8e99 Fix another place where test results depend on the yaml parsing order. 2017-04-19 12:30:39 +02:00
Jan Kaluza
c828f60444 Do not replace branch names in mmd.components.rpms.ref by the commit hash, use our private mmd.xmd.mbs namespace to store that info. 2017-04-13 08:36:04 +02:00
Jan Kaluza
626c0ad99a Get only active modules as a dependency of another modules 2017-04-07 17:52:45 +02:00
Filip Valder
0ccb5d3939 just compare the two sets (w/-o any ordering) 2017-04-07 10:36:46 +02:00
Jan Kaluza
4c5732957c include %module_name, %module_stream and %module_version in the module-build-macros and fix sending active=True in pdc.py 2017-03-31 15:18:53 +02:00
Jan Kaluža
8bdb151840 Merge #360 Fix format_mmd function for empty scmurl 2017-03-28 14:06:17 +00:00
Jakub Kadlčík
2c3e47d1d5 Update version and ref for base-runtime 2017-03-28 16:01:48 +02:00
Jan Kaluza
1487fd01f2 Remove is_waiting_for_repo_regen and use buildroot_ready instead. Do not get buildroot dependencies from the buildrequires recursively. Do not validate Koji tags to inherit. 2017-03-22 17:29:05 +01:00
Jan Kaluza
09601cfbb6 Do not allow starting next batch if the Koji is still building new repo. 2017-03-22 14:40:18 +01:00
Jan Kaluza
2fda828cd3 Use fedora production PDC in tests. 2017-03-21 18:30:20 +01:00
Jakub Kadlčík
95dee6c463 Not fail when 'ref' is missing 2017-03-20 19:46:14 +01:00
Jakub Kadlčík
9b02605370 Fix format_mmd function for empty scmurl 2017-03-20 19:46:10 +01:00
Jan Kaluza
0fb8bd221f Reset batch counter and state_reason when resubmiting module 2017-03-17 12:11:08 +01:00
Jan Kaluza
a72a97754a Fix typo in test_reuse_component_init_data name, set SERVER_NAME config variable in config.py, return commit in MockedSCM.get_latest 2017-03-17 08:58:58 +01:00
Jan Kaluza
830b1dd111 Add tests for 'continue' part of start_next_batch and component resubmit 2017-03-16 11:20:51 +01:00
Jan Kaluza
97706324a7 Fix the module fail when num_consecutive_builds limit is met and tagging issue when all the builds are reused in a single batch 2017-03-15 11:55:55 +01:00
Filip Valder
6b189c4b4a Koji tag validation: Catch situation when tag arg has no value + refactoring + add comments. 2017-03-02 15:01:52 +01:00
Matt Prahl
5af8bc99f0 Change format_mmd test to be more consistent. 2017-03-01 15:00:54 -05:00
Ralph Bean
ca61d6bb29 Allow passing in multiple tag names to the validation decorator.
We have problems when we try to wrap one decorator around another.
There are ways to do that with the
[decorator](https://pypi.python.org/pypi/decorator) module nicely,
however.. they are ugly.

Take a look at this:

https://github.com/micheles/decorator/blob/master/src/decorator.py#L217-L218

And this:

https://github.com/micheles/decorator/blob/master/src/decorator.py#L185-L188

The approach in this PR is.. simpler.
2017-02-28 17:15:55 -05:00
Filip Valder
6dd223fd12 support for dicts + tests 2017-02-28 20:54:03 +01:00
Filip Valder
be3b05e673 Additional tests for validate_koji_tag:
- Verify that ProgrammingError exception does what it is intended to do.
- Two (str/list) negative tests for validate_koji_tag decorator itself.
- Two (str/list) positive tests for validate_koji_tag decorator itself.
- Support validation in a test for Koji builder.
2017-02-28 09:08:32 +01:00
Matt Prahl
8ca616ec57 Add new tests for reusing components 2017-02-21 14:22:31 -05:00