Jakub Kadlčík
bdec1bb85f
Dont create module if any build failed
2016-12-01 02:54:53 +01:00
Jakub Kadlčík
74ab8ab8cc
Refactor duplicit build_from_scm method
2016-12-01 02:19:06 +01:00
Jakub Kadlčík
c68a1908bd
Wait in loop until all builds are finished
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
fffefb5f48
Fallback to koji when module is not in copr
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
99d2dfbc87
There really should be 'failed'
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
84b7b08f25
Upgrade copr builder to support modulemd 1.0.2
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
94c1b80cb2
Workaround missing module_build_tag in copr
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
83a71e0443
Wait some time until builds are finished
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
0134f3a32d
Move module composing in copr to finalize method
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
7c8349e50c
Call finalize method on builder
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
f9220a4470
Pretend that build was successful so that rida submits next batch
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
0e3083fc4c
Copy build_srpm and build_from_scm from MockModuleBuilder
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
638a287a29
Add TODO that is much clearer than docstring
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
6702b9498f
Send module information in multiple fields
2016-12-01 02:16:56 +01:00
Jakub Kadlčík
e03272e966
Convert characters not supported in copr project names
2016-12-01 02:16:56 +01:00
Jan Kaluža
016c4f4c54
Merge #229 Mock backend: set the metadata_expire to 3600 seconds, install the module-build-macros package, fix the logs rename after build.
2016-11-30 16:12:15 +00:00
Jan Kaluza
6a0ad1074b
Mock backend: set the metadata_expire to 3600 seconds, install the module-build-macros package, fix the logs rename after build.
2016-11-30 16:54:39 +01:00
Jan Kaluza
1e4e1be91e
Fix #105 - Add new cancel API call which can be used to cancel the module build.
2016-11-30 12:20:50 +01:00
Ralph Bean
27484f2c32
Merge #225 Fix #223 , #224 - Use generated Mock config, define local RPM repository there and make it available in Mock chroot after batch is built.
2016-11-28 16:39:21 +00:00
Jan Kaluza
dd3eb61b53
Fix #223 , #224 - Use generated Mock config, define local RPM repository there and make it available in Mock chroot after batch is built.
2016-11-25 12:15:32 +01:00
Jan Kaluza
77366b94ce
Try to build testmodule.yaml as unit-test with fake builder backend.
2016-11-24 14:01:28 +01:00
Ralph Bean
439721da99
Gather build groups from module profiles.
...
Fixes #181 .
When initializing the buildroot for a module build, we used to set up
some build 'groups' for the tag: `build` and `srpm-build`. These are
the lists of RPMs that koji is supposed to install into the buildroot
before anything else is done. Crucial stuff goes here, like `git` in
the `srpm-build` group so that koji can clone the repo in the first
place.
We had those lists hardcoded before. This list changes that to use the
`buildroot` and `srpm-buildroot` profiles of the modules which are our
dependencies (recursively).
This will allow people like @psabata and the base-runtime to make
changes to the build groups for the generational core and work around
their own problems, instead of having to ask us to expand that list.
There were a couple ways to do this:
- I could've cloned the SCM repos for all dependencies and gotten their
profiles from the modulemd source there. This seemed flimsy because
we only want to depend on the profiles of modules that were *really*
built.
- We could modify PDC to stuff the modulemd contents in there. We
already get some dep and tag info from PDC. My thought here was that
it would be too heavyweight to store every copy of the modulemd file
in PDC for every build ever. We already have it in MBS.
- Lastly, and this is what I did here, I just referred to MBS' own
database to get the profiles. This seems to work just fine.
One side-effect is that we need the build profiles from the manually
bootstrapped modules that were put together by hand, and were never
built in the MBS. In order to work around that, I added an alembic
upgrade script which pre-populates the database with one fake
bootstrapped base-runtime module. We can expand on that in the future
if we need.
2016-11-21 13:25:52 -05:00
Filip Valder
99c3c1e717
catch on IOError and retry
2016-11-18 14:37:54 +01:00
Ralph Bean
a45eba41e8
Merge #194 Allow configurable mock resultsdir and backup logs after each component build
2016-11-16 20:47:18 +00:00
Jakub Kadlčík
f62ea2f82e
This repo_from_tag belongs to copr builder
2016-11-16 11:23:48 +01:00
Jan Kaluza
c9aff6f9e7
Allow configurable mock resultsdir and backup logs after each
2016-11-16 10:24:39 +01:00
Ralph Bean
83bc4eb077
Add a _module_build macro flag.
...
Fixes #185 .
2016-11-14 14:08:04 -05:00
Matt Prahl
1db4797136
Merge #177 Add support for modulemd-1.0 backward-incompatible changes like commit being replaced by ref
2016-11-14 14:34:08 +00:00
Jan Kaluza
966a73251a
Add support for modulemd-1.0 backward-incompatible changes like commit being replaced by ref
2016-11-14 15:32:51 +01:00
Jakub Kadlčík
9ea879b49f
Add some TODOs
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
864789d1d4
Refactor __init__ method of copr builder
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
fbe362bbd7
Fix issue with creating project for group
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
ebb71af659
Implement buildroot_connect for copr
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
a625bc89a1
Remove outdated methods
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
8ad0e6bea9
Filter module by name
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
33bb92422b
Return 4-tuple as expected
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
35983917cd
Add missing docstrings
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
63c0d68360
Do not create copr client in every method
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
de3ff3efc3
Implement adding external repos to copr
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
6948b31d7e
Build package from source parameter
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
6357afd43f
Add missing docstring
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
34a2ea7856
Implement GenericBuilder.repo_from_tag for copr backend
2016-11-10 13:27:46 -05:00
Jan Kaluza
7b9e4f7234
Initial version of mock backend
2016-11-10 09:57:00 +01:00
Ralph Bean
28183b9d3f
Fix an error in the KojiBuilder.
...
The issue is that _get_task_by_artifact returns either None or a dict of
info and we weren't handling that correctly. My mistake.
2016-11-02 10:23:42 -04:00
Ralph Bean
b2d1cf9f0d
Merge #154 Fix #126 - remove Builder class
2016-11-02 12:54:04 +00:00
Jan Kaluza
d9916a1634
Fix #126 - remove Builder class
2016-11-01 14:44:42 +01:00
Jan Kaluza
42138810d5
Fix KojiModuleBuilder.build return values in tests
2016-11-01 12:05:08 +01:00
Ralph Bean
7ff97cbe43
Merge #147 Pass around more info on pre-built components
2016-10-31 15:14:38 +00:00
Jan Kaluža
9124a24f21
Merge #144 Some helpful kerberos logging.
2016-10-31 09:06:42 +00:00
Ralph Bean
99b0993fe0
Pass around more info on pre-built components so we can resume module builds.
2016-10-29 16:12:24 -04:00