Jan Kaluza
b502c18369
Version 2.0.0.
v2.0.0
2018-04-05 14:22:26 +02:00
Jan Kaluža
4b9a5fb551
Merge #904 Rename a variable for clarity in load_local_builds
2018-04-05 12:13:38 +00:00
Jan Kaluža
142d8e947a
Merge #905 Share the same "index" in the dist tag between all MSE builds.
2018-04-05 12:11:53 +00:00
Jan Kaluza
65513afd1a
Share the same in the dist tag between all MSE builds.
2018-04-05 10:42:56 +02:00
mprahl
d4d9360662
Rename a variable for clarity in load_local_builds
2018-04-04 11:12:08 -04:00
mprahl
c44686349e
Remove no longer applicable documentation section on message signing
2018-04-04 10:53:53 -04:00
mprahl
ee3ad85eb8
Workaround to get manage.py working in Vagrant
2018-04-04 10:50:44 -04:00
Matt Prahl
cf9593bf5a
Merge #901 Remove the bootstrap scripts that are no longer needed
2018-04-04 00:15:30 +00:00
mprahl
0966db2cea
Remove the bootstrap scripts that are no longer needed
2018-04-03 10:20:20 -04:00
mprahl
a4903876f2
Remove deprecated mbs-build tool
2018-04-03 10:09:29 -04:00
mprahl
0defabc88c
Transition CentOS CI to using Docker for running its tests
2018-04-03 09:58:57 -04:00
mprahl
19db295795
Fix flake8 errors
2018-04-03 09:58:57 -04:00
mprahl
20d68628d2
Add a Dockerfile for running unit tests on CentOS
2018-04-03 09:58:57 -04:00
mprahl
caadb13f0e
Remove the COPR tests
...
The COPR tests were causing failures and since most of them were
skipped and haven't been updated in a long time, let's just delete
them.
2018-04-03 09:58:57 -04:00
mprahl
bed9bf7a87
Remove the dependency on python-systemd
2018-04-03 09:58:57 -04:00
mprahl
ea1fc93325
Remove the Docker development environment
...
This development environment has not been maintained in a long time
and it doesn't work anymore. Let's remove it for now and reintroduce
containers when we start using OpenShift for development.
2018-04-03 09:58:57 -04:00
Jan Kaluza
9b6fd2ba39
Split utils.py to multiple files based on the methods use-case.
2018-04-03 09:58:57 -04:00
Jan Kaluza
9503e4624e
Support local build of modules with MSE.
2018-04-03 09:58:57 -04:00
Jan Kaluza
604a336649
Backport jsonify method which supports list as input.
2018-04-03 09:58:57 -04:00
Jan Kaluza
bf873dbaea
Do not set app.config['SERVER_NAME'] if app_context exists.
2018-04-03 09:58:57 -04:00
mprahl
5b278211e6
Add API v2 which will return a list of modules on build submissions based on module stream expansion
2018-04-03 09:58:57 -04:00
mprahl
41814b42de
Add siblings to the extended JSON output of module builds
2018-04-03 09:58:57 -04:00
mprahl
8dfdeaf33b
Use the latest libmodulemd in the Vagrant environment
2018-04-03 09:58:57 -04:00
mprahl
26d49f23ec
Install python-solv in Vagrant
2018-04-03 09:58:57 -04:00
mprahl
0c7fab3f65
Update Vagrant to use Fedora 27
2018-04-03 09:58:57 -04:00
Jan Kaluza
da95c94528
Support resolving MMDs without any buildrequire.
2018-04-03 09:58:57 -04:00
Jan Kaluza
6fc8c646de
Add 'mbs-manager import_module'.
2018-04-03 09:58:57 -04:00
Jan Kaluza
1d46b332b3
Requires version 1.0 of Modulemd
2018-04-03 09:58:57 -04:00
Jan Kaluza
e5e9a24fce
Allow adding bool to XMD. Fix flake8 issues.
2018-04-03 09:58:57 -04:00
Jan Kaluza
2482e47c07
Fix issues from review. Drop xmd['mbs']['requires']. Do not allow building MSE builds against non-MSE builds.
2018-04-03 09:58:57 -04:00
Jan Kaluza
31ddbe51a5
Add generate_expanded_mmds which returns list of MMDs which can be submitted as MSE builds and submit them.
2018-04-03 09:58:57 -04:00
Igor Gnatenko
90f292c7f5
tests/mmd_resolver: add test for multiple runtime requires
...
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
32d053dd98
tests/mmd_resolver: simplify testing
...
And try to use some real names.
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
d38d55451d
tests/mmd_resolver: test empty inclusion/exclusion dependency
...
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
85af781920
mmd_resolver: add support for streams exclusion
...
Also fix support for dependencies with empty streams list.
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
ebd6dba78f
mmd_resolver: allow configuring output of solve() by policy
...
Also make results more determenistic.
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
52e73b64c2
mmd_resolver: store alternatives per source package
...
Input:
* (c0) gtk: [1] + foo: [1]
* (c1) gtk: [1] + foo: [1, 2]
Before:
* c0 + gtk:1 + foo:1
* c1 + gtk:1 + foo:2
After:
* c0 + gtk:1 + foo:1
* c1 + gtk:1 + foo:1
* c1 + gtk:1 + foo:2
Acked-by: Jan Kaluža <jkaluza@redhat.com >
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
e3490d129a
mmd_resolver: generate combinations only for top-level dependencies
...
Reported-by: Petr Šabata <contyk@redhat.com >
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
mprahl
ee43b1bb7d
Flake8 fixes
2018-04-03 09:58:57 -04:00
mprahl
eb0b2e1c38
Add the database resolver plugin
2018-04-03 09:58:57 -04:00
mprahl
d338a390b9
Set local builds to the ready state on import
2018-04-03 09:58:57 -04:00
Jan Kaluža
c925ebbd34
tests/mmd_resolver: add tests for multi-dependency modules
...
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
0f26e1af62
tests/mmd_resolver: deduplicate code for generation test modules
...
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
8174b933b0
tests/mmd_resolver: add support for multi-dependency modules
...
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
9d3bcf4a06
mmd_resolver: replace asserts with meaningful exceptions
...
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
7cbd0a0301
mmd_resolver: rework solvables generation
...
Now we have good separation between runtime and buildtime dependencies:
If mmd has context, it is built artefact which supposed to have only one
dependency entry, we create solvable with real arch for it. Otherwise we
create multiple solvables with "src" arch.
In "src" solvables, "context" is a number which represents index in
dependencies array.
Stream is not included anymore in "evr" because it's incomparable.
Version is not included anymore in "name" because it's there just for
comparison, nothing more (it's not different module-stream).
As a side, add_requires/add_conflicts/add_provides were replaced with
non-deprecated add_deparray method.
With all this, we are ready to handle MMDs which have multiple elements
in dependencies (modulemd v2).
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
060275f094
mmd_resolver: remove useless provides from modules
...
That would be never used and is totally useless.
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
652c445b2c
mmd_resolver: simplify conflict rule
...
Conflicting with module(foo) is more than enough to make sure that we
will have only one copy of solvables providing it.
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
9ce5dffb14
mmd_resolver: rewrite function for finding alternatives
...
Previous version was assuming that number of alternatives is static
which is wrong, they can be appearing depending on solvables.
Also it was checking even impossible combinations (due to using
itertools.product).
Now we check only real possibilities.
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Igor Gnatenko
4ff944477d
mmd_resolver: set 'src' arch for build repo solvables
...
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00