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
Jan Kaluža
e7587cb77b
add MMDResolver to find possible combinations between modules
...
Using libsolv for solving part and libmodulemd for getting the data.
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com >
2018-04-03 09:58:57 -04:00
Jan Kaluza
253d29bcef
Rewrite ModuleBuild methods to get all streams and all builds using the latest version, not build id.
2018-04-03 09:58:57 -04:00
mprahl
28e821fee0
Start querying modules by context when it's available
...
When implementing module stream expansion, we'll need to make sure
the buildrequires are queried using their context as well.
2018-04-03 09:58:57 -04:00
mprahl
f19f76872c
Use the build object directly instead of its JSON in the modules handler
2018-04-03 09:58:57 -04:00
mprahl
d3f92bf5d3
Make the resolver functions less PDC specific
2018-04-03 09:58:57 -04:00
Jan Kaluza
e22cbbab31
Add get_modules_build_required_by_module_recursively to get the input for libsolv solver.
2018-04-03 09:58:57 -04:00
Jan Kaluza
1bbe8d69f1
Add ModuleBuild methods for getting list of streams, last build in a name:stream and all builds in name:stream:version.
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
Nils Philippsen
329a7acd76
Add GLib.Variant helpers
2018-04-03 09:58:57 -04:00
mprahl
2ace817afd
Remove duplicate _get_module call
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
Matt Prahl
680da620d7
Merge #870 Minor changes towards Python 3 Compatability
2018-02-28 14:08:53 +00:00
Yash Nanavati
1d3fd2af64
Minor changes towards Python 3 Compatability
2018-02-28 09:01:51 -05:00
mprahl
654820ac31
Fix error that occurs when a batch hasn't started but a repo regen message is received
...
Fixes #864
2018-02-19 13:56:46 -05:00
Matt Prahl
e1ed09d0a2
Merge #860 Decrease time.sleep times in tests to save 60 seconds for test-suite run.
2018-02-08 15:40:45 +00:00
Jan Kaluza
683056de0a
Decrease time.sleep times in tests to save 60 seconds for test-suite run.
2018-02-08 09:03:32 +01:00
Jan Kaluza
4001d3c488
Use in-memory SQLite database in tests to make them 40% faster.
2018-02-08 08:01:24 +01:00
mprahl
e77ce2c5b1
Fix flake8 errors
2018-02-07 15:01:49 -05:00
Matt Prahl
a5c174d9d3
Merge #858 Make components reuse faster by getting the 'previous_module_build', 'mmd' and 'old_mmd' from DB just once.
2018-02-07 19:56:29 +00:00
Jan Kaluza
f32367cee9
Make components reuse faster by getting the 'previous_module_build', 'mmd' and 'old_mmd' from DB just once.
2018-02-07 20:50:49 +01:00
Matt Prahl
bb865758cb
Merge #857 Don't fail a module build when there are no buildrequires
2018-02-07 11:59:09 +00:00
mprahl
d06bd3a49e
Don't fail a module build when there are no buildrequires
2018-02-06 11:09:31 -05:00
mprahl
575c2b8f05
Make the poller not resume paused module builds if there was recent activity on the build
...
This fixes an issue that occurs when someone submits a module build and most of its components
get reused and the poller just so happens to try to resume the build.
2018-02-06 10:45:07 -05:00
mprahl
f16bf5f5a5
Add a SQLAlchemy hook to modify "time_modified" on module build entries
2018-02-06 10:45:07 -05:00
mprahl
8f024e6b04
Remove the dependency on vcrpy in unit tests and modernize some of the test data
2018-02-05 22:17:18 -05:00
mprahl
b7998d4402
Remove the need for nose and solely rely on pytest
2018-02-05 22:11:31 -05:00
mprahl
0f13164ac8
Use a set instead of a list when making sure the buildrequires match on a modulemd
2018-02-05 22:11:31 -05:00
mprahl
fa0020d164
Properly get the module name when a YAML file is submitted
2018-02-02 11:02:45 -05:00
mprahl
4fcb432a33
Fix PDCClient calls to unreleasedvariants
2018-02-02 11:02:45 -05:00
mprahl
8afa30a324
Make the import to PDCClient consistent for easier mocking
2018-02-02 11:02:45 -05:00
Matt Prahl
fb8e9cf02c
Merge #851 Set the owner on Koji CG builds
2018-01-31 00:28:18 +00:00
Matt Prahl
83978c66df
Merge #849 Use external repos tied to the Koji tags on local builds
2018-01-31 00:27:12 +00:00
mprahl
df594da8a5
Remove the Koji proxyuser functionality
2018-01-30 11:49:03 -05:00
mprahl
477fa2ed6a
Set the owner on Koji CG builds
2018-01-30 09:23:09 -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
Filip Valder
5b4a8f6240
New: Resolver API for pluggable resolvers
2018-01-29 15:54:19 +01:00
mprahl
94aff8935e
Reset the component state reasons when a module build is resumed
2018-01-23 09:42:38 -05:00
mprahl
667e946444
Reset the module-build-macros state when building it from a resumed module build
2018-01-23 09:41:59 -05:00
mprahl
bf80ce4537
Don't traceback on failed task cancellations and log those exceptions
2018-01-22 15:20:41 -05:00
mprahl
3c07ea38e4
Cancel new repo tasks on module build failures
2018-01-22 14:39:30 -05:00
mprahl
7b7211e4ee
Fix an error that occurs when a module build is resumed and module-build-macros was cancelled
2018-01-22 13:30:43 -05:00
Matt Prahl
a48cb841fb
Merge #841 Use Koji repos if possible during local builds
2018-01-19 13:45:35 +00:00
mprahl
55d07aa8f5
Use Koji repos if possible during local builds
2018-01-18 17:02:03 -05:00
Ralph Bean
01c8295269
Add an incrementing prefix to the dist_hash.
...
For #823 .
2018-01-17 16:54:02 -05:00
mprahl
430ac4ba31
Use the "build_context" field when evaluating if a previous module's buildrequires changed
2018-01-16 10:36:09 -05:00
mprahl
a67b53f5c3
Add a "context" field on component and module releases in Koji for uniqueness for when Module Stream Expansion is implemented
2018-01-16 10:36:09 -05:00
Ralph Bean
c21f1d34a3
Faster SCM tests.
...
Fixes #832 .
The slow tests there are hobbled by this `retry(...)` decorator with hardcoded
timeouts. We want those to be relatively long in prod and relatively short in
test and dev.
2018-01-15 16:30:52 -05:00