Commit Graph

256 Commits

Author SHA1 Message Date
Jan Kaluza
a07b44411c Set the state_reason when format_mmd raises in frontend and do not overwrite the state_reason in backend. 2017-06-06 14:49:49 +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
Ralph Bean
2ab6193987 Rename consecutive to concurrent.
Fixes #574.
2017-05-31 13:54:11 -04:00
Jan Kaluža
acc74bd6e0 Merge #565 Support 'order_by' and 'order_desc_by' in filter_module_builds(...) 2017-05-25 13:14:32 +00:00
Jan Kaluza
f27b0ddb81 Regenerate the repo when module-build-macros is reused to ensure it is in the buildroot. 2017-05-24 14:26:08 +02:00
Jan Kaluza
b082c81c20 Support 'order_by' and 'order_desc_by' in filter_module_builds(...) 2017-05-23 09:52:19 +02:00
Jan Kaluza
af2d2f8ad1 Do not reuse components when rpm macros change 2017-05-22 13:42:02 +02:00
Jan Kaluža
4593ee5d95 Merge #526 Do not tag built components if there is any failed one. 2017-05-17 09:48:05 +00:00
Stanislav Ochotnicky
5eb4c1652f Modify content generator based on Koji dev feedback
- Change the type of build from modulemd to just module
- Change build output type from modulemd to file
- Provide the typeinfo also for the modulemd.yaml output
- Convert dashes to underscores for build version (i.e. mbs stream).
  koji build versions can't have dashes - we can provide real value in
  the extra section
- Add name, stream, version data into build extra section
- Add tool information for modulemd
- Add buildroot components from host running mbs
- Added few methods licensed under BSD 3-clause (from atomic-reactor)
2017-05-15 10:39:01 +02:00
Jan Kaluza
7d7a45f997 Do not tag built components if there is any failed one. 2017-05-12 10:39:48 +02:00
Matt Prahl
5c6a0459c9 Merge #547 Skip the batch when there are no components to build. 2017-05-11 13:58:25 +00:00
Jan Kaluža
6a7555777b Merge #548 Delete build target when module build is complete after configurable time 2017-05-11 13:57:34 +00:00
Jan Kaluza
22758419c0 Delete build target after config.koji_target_delete_time seconds. 2017-05-11 14:43:05 +02:00
Jan Kaluža
9a4da7241d Merge #528 Add functionality of koji content generator imports 2017-05-11 12:23:36 +00:00
Jan Kaluza
186295bf17 Skip the batch when there are no components to build. 2017-05-10 09:10:14 +02:00
Jan Kaluza
22db6bb64a Do not recreate properties in Config class - fixes the home dir expansion 2017-05-09 14:20:06 +02:00
Ralph Bean
3f8cacd8e5 Convert all dates to ISO in the API.
This should fix #523.

There, @james is right.  Converting to "human" time values in an API
just makes things harder for API users.  We should leave
human-conversion to real UIs (like cli tools or web UIs).
2017-05-04 13:13:50 -04:00
Stanislav Ochotnicky
9127687fee Implement import content generator output into koji
This commit prepares a directory with outputs that will be uploaded to
koji (just the mmd file for now). It also adjusts koji_import to call
CGImport with the metadata and the directory to import the results.

Last step will be to call this method at the end of successful module
build
2017-05-04 15:45:46 +02:00
Stanislav Ochotnicky
bb464b80b2 Fix content generator using name instead of mmd content
The original variable name was confusing and caused the misuse. This has
been fixed as well
2017-05-04 15:45:45 +02:00
Stanislav Ochotnicky
acb59d23f1 Add an example mmd file into the test database
This will actually be used to test the content generator functionality
2017-05-04 15:45:42 +02:00
Ralph Bean
155853fa3c Merge #522 Add Koji content generator class 2017-05-02 16:10:23 +00:00
Jan Kaluža
f441077706 Merge #515 Add config option for allowing custom scmurls 2017-05-02 12:57:48 +00:00
Jan Kaluža
85554e519a Merge #520 Do not build module-build-macros when all the components will be reused from previous module build. 2017-05-02 10:12:50 +00:00
Jan Kaluza
024877592c Do not build module-build-macros when all the components will be reused from previous module build. 2017-05-02 12:09:23 +02:00
Jakub Kadlčík
a86084746d Rename ALLOW_CUSTOM_URLS to ALLOW_CUSTOM_SCMURLS 2017-05-02 11:29:47 +02:00
Stanislav Ochotnicky
33add7aff7 Add Koji content generator class
This commit adds support classes for koji content generator imports.
Using this class will come later
2017-05-02 10:55:40 +02:00
Jakub Kadlčík
dde4e4b801 Add VCR file for test_submit_custom_scmurl 2017-04-27 19:30:06 +02:00
Jakub Kadlčík
03f8a54fdd Test allow_custom_urls config option 2017-04-24 21:17:41 +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
Jan Kaluza
ccf66804e5 Store built modules using mock in ~/modulebuild by default and use that directory for koji_tags cache by default too. 2017-04-24 16:15:35 +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
b711d3fe5d pep8: remove trailing white space 2017-04-21 12:54:06 +02:00
Nils Philippsen
ec2be36d6e pep8: don't surround '=' with spaces for keyword args 2017-04-21 12:54:06 +02:00
Jan Kaluža
297d72c1e1 Merge #510 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-20 19:05:19 +00:00
Jan Kaluza
f8bb6e8e99 Fix another place where test results depend on the yaml parsing order. 2017-04-19 12:30:39 +02:00
Matt Prahl
dd72504395 Merge #509 Pass the whole ModuleBuild object to the builder 2017-04-13 15:54:18 +00:00
Jakub Kadlčík
e8dd847cea Run init_data() before querying a module 2017-04-13 17:42:12 +02:00
Jakub Kadlčík
e3c3167fae Don't mock the ModuleBuild class with namedtuple for tests 2017-04-13 16:44:55 +02:00
Jan Kaluža
27523d32f3 Merge #508 Do not start new batch in poller when new_repo is running 2017-04-13 08:33:20 +00: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
Jakub Kadlčík
b78b0346d2 Pass the module build into builder 2017-04-12 23:53:55 +02:00
Jan Kaluza
9e6e199a22 Use db.session.refresh instead of expunge and fix typo in create_builder 2017-04-12 07:25:00 +02:00
Jan Kaluza
9a193c36af Do not start new batch in poller when new_repo is running 2017-04-11 19:51:55 +02:00
Ralph Bean
65950304ca Merge #505 Allow querying for module builds by koji tag. 2017-04-11 13:02:15 +00:00
Filip Valder
0338e12699 Merge #462 Fix #434 - return Not Found in case of a commit hash which is not found within the repository 2017-04-11 08:45:18 +00:00
Jan Kaluža
9f2d964cef Merge #491 Copr builder improvements #3 2017-04-11 05:51:46 +00:00
Ralph Bean
57f357b188 VCR data. 2017-04-10 14:33:49 -04:00
Ralph Bean
fae7848fa4 Allow querying for module builds by koji tag.
This way, if a component build fails and you want to find out who
submitted it, you can track the:

    koji build -> koji tag -> module build -> owner
2017-04-10 14:32:08 -04:00
Jakub Kadlčík
7c81a72138 Update CoprBuildEnd message to reflect actual data 2017-04-10 20:28:53 +02:00
Filip Valder
a192dab1e2 return Unprocessable Entity in case of a commit hash which is not found within the repository 2017-04-10 16:41:24 +02:00