Commit Graph

45 Commits

Author SHA1 Message Date
Jan Kaluza
e5e9a24fce Allow adding bool to XMD. Fix flake8 issues. 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
ed25afd9ec Code changes for Python 3 support 2018-03-04 03:22:38 -05:00
Yash Nanavati
1d3fd2af64 Minor changes towards Python 3 Compatability 2018-02-28 09:01:51 -05:00
mprahl
2651d53603 Use external repos tied to the Koji tags on local builds 2018-01-29 14:34:04 -05:00
mprahl
2a018a649f Add consistency to the type of quotes used in "buildroot_add_repos" 2018-01-29 14:33:35 -05:00
mprahl
55d07aa8f5 Use Koji repos if possible during local builds 2018-01-18 17:02:03 -05: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
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
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
Filip Valder
be7c8d7aff Fix #661: mbs hard-codes x86_64 as the local architecture 2017-09-15 15:18:02 +02:00
Filip Valder
f86654c655 Fix #641 - mock configuration is hardcoded 2017-09-13 15:09:56 +02:00
Jan Kaluza
8c3ca6986e Filter out packages in Mock backend based on the mmd filter 2017-08-31 10:47:16 -04:00
Jan Kaluža
77ac0db625 Merge #644 Add 'mbs-build local [[--add-local-build n:s:v], ...]' to use local builds as dependency. 2017-08-17 08:07:43 +00: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
6a2e9aeddd Fix #576: Remove empty/useless log files 2017-08-16 13:39:59 +02:00
Filip Valder
7ef2975984 PEP8 fixes 2017-07-17 18:29:10 +02:00
Ralph Bean
a755104bd4 Fix the test suite.
We had some circular imports that caused the tests (and more?) to fail.

I ran into this when looking at the tests for #583 and #595.
2017-07-06 21:02:32 -04:00
Owen W. Taylor
40ececa5a0 MockModuleBuilder: Fix thread safety problem with distgit-clone-wrapper
Multiple build threads would try to write to the same distgit-clone-wrapper
location, which could result in ETXTBSY when one thread tried to execute
a script that another was writing to or vice-versa.

Instead of using a wrapper script, use a sh -c invocation for distgit_get.

https://pagure.io/fm-orchestrator/issue/592
2017-06-16 06:14:07 -04:00
Owen W. Taylor
786dd2f301 MockModuleBuilder: move generated artifacts to the final directory, instead of copying them
There's no good reason to have artifacts in both the thread-specific results directory
and in the main results directory, so just move them across instead of copying them.

https://pagure.io/fm-orchestrator/issue/591
2017-06-15 16:30:04 -04:00
Owen W. Taylor
280facdbe0 MockModuleBuilder: Pass an explicit pkglist to createrepo_c
createrepo_c recursively looks for RPMs in the target directory and
subdirectories, meaning that it was finding RPMs in the thread-specific
directories. Pass in an explicit list of RPMs at the toplevel.

https://pagure.io/fm-orchestrator/issue/591
2017-06-15 16:25:04 -04:00
Jan Kaluza
4b16cf9a64 Fix various bugs in 'mbs-build local' 2017-06-07 13:16:26 +02:00
Jakub Kadlčík
c7e8ba2f1d MockModuleBuilder does not use build_from_scm function anymore 2017-05-30 14:50:09 +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
Jakub Kadlčík
99ba03b52d Move also distgit_src_get command to config 2017-05-17 16:23:16 +02:00
Jakub Kadlčík
8c8ea65b2e Don't hardcode dist-git clone command 2017-05-16 16:26:24 +02:00
Jakub Kadlčík
9e4c43a315 Use commit hash from source as branch 2017-05-16 15:20:28 +02:00
Jakub Kadlčík
8a258c3ad7 Use master branch 2017-05-16 14:51:40 +02:00
Jakub Kadlčík
1af400de02 Obtain SRPM from distgit via mock SCM 2017-05-16 14:51:40 +02:00
Jakub Kadlčík
14757ec3ad Implement classes for building srpms via mock 2017-05-16 14:51:40 +02:00
Jan Kaluza
e9e7f44d70 Mock: Set user_bootstrap_container to False to fix module builds with latest Mock 2017-05-09 14:22:44 +02:00
Jakub Kadlčík
fd989ea233 Allow git repositories to be http(s):// 2017-05-02 11:24:18 +02:00
Jan Kaluža
5bdc87b8bb Merge #518 Mock backend: Create repository from Koji tag locally instead of using the one stored in kojipkgs. 2017-04-24 14:50:44 +00:00
Nils Philippsen
ec2be36d6e pep8: don't surround '=' with spaces for keyword args 2017-04-21 12:54:06 +02:00
Jan Kaluza
94848511e3 Mock backend: Create repository from Koji tag locally instead of using the one stored in kojipkgs. 2017-04-21 10:37:00 +02:00
Jakub Kadlčík
b78b0346d2 Pass the module build into builder 2017-04-12 23:53:55 +02:00
Jakub Kadlčík
3ba114c0b1 Merge builder.py changes from master
* 47c4363 Fix #467 - Inject modules.yaml to mock repository
* eaeaf29 unused method
* 6412a7f use module owner for whitelisting Koji packages
* 80f78c7 rename to match what it actually does
* 4c57329 include %module_name, %module_stream and %module_version in the module-build-macros and fix sending active=True in pdc.py
2017-04-07 08:22:59 +02:00
Jakub Kadlčík
3817d37e35 Move send_repo_done to utils 2017-04-07 08:22:59 +02:00
Jakub Kadlčík
18502030f2 Rename _execute_cmd to not be private 2017-04-07 08:22:59 +02:00
Jakub Kadlčík
a4a3f1734d Move common functions to utils file 2017-04-07 08:22:59 +02:00
Jakub Kadlčík
02c9f43dbe Set proper authors for particular builders 2017-04-07 08:22:59 +02:00
Jakub Kadlčík
9dafe673fe Clean up the docstrings 2017-04-07 08:22:59 +02:00
Jakub Kadlčík
0453a7da35 Clean up the unused imports 2017-04-07 08:22:59 +02:00
Jakub Kadlčík
fe1eff5c49 Split builders into separate files 2017-04-07 08:22:59 +02:00