Commit Graph

16 Commits

Author SHA1 Message Date
Jan Kaluža
59d070df35 Merge #278 Fix #276 - Use PDC to resolve buildroot components instead of MBS database 2017-01-12 14:34:13 +00:00
Ralph Bean
6cfe487d46 Change message topic service to be more short.
This is just so that the topic doesn't end up being super long like
`org.fedoraproject.prod.module_build_service.module.state.change`

The new value will be:
`org.fedoraproject.prod.mbs.module.state.change`

Currently, the only thing listening for this is pdc-updater, which I
will patch.
2017-01-10 12:34:17 -05:00
Jan Kaluza
0f797c2917 Remove fake base-runtime module from DB and old resolve_profiles method because they are not used anymore. Fix the tests to work with remove fake base-runtime. 2017-01-10 15:58:26 +01:00
Filip Valder
f82e3c8006 fix #264: failed 'failed module' handling due to missing koji tag 2016-12-15 12:08:03 +01:00
Jan Kaluza
d06c13d973 Fix the bug when module build freezes when all the components in batch have been already built by builder. 2016-12-12 21:03:44 +01:00
Jan Kaluza
1c66edc53e Include modulemd in the module.state.change messages so it can be handled by pdc-updater. 2016-12-07 13:18:39 +01:00
Matt Prahl
91af4a1840 Change cancel build API to be a PATCH instead 2016-11-30 15:00:32 -05: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
Matt Prahl
244b77f54c Add component build throttling 2016-11-16 15:24:17 -05: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
Filip Valder
0b7441e8fb imported but not used 2016-11-07 20:27:03 +01:00
Filip Valder
e4d69962fa fix: incorporate @ralph 's recommendation: flask.url_for 2016-11-07 20:14:29 +01:00
Filip Valder
dd4790f514 fix: issue #159 return state_url in JSON after module build submission 2016-11-07 13:13:01 +01:00
Jan Kaluza
8339e389be Fix out-of-memory caused by loading ModuleBuild for every ComponentBuild row from database. Now we lazyload it. 2016-11-03 10:17:03 +01:00
Jan Kaluza
cc5836d3ce Fix 'We have no record of ...' when Koji task finishes by comparing task_id with task_id and not with buil_id. 2016-10-31 11:27:42 +01:00
Matt Prahl
b4082dc551 Rename module from rida to module_build_service
Rename routes from /rida/1/module-builds/ to /module-build-service/1/module-builds/
2016-10-24 10:30:23 -04:00