mprahl
b0728b1080
Make the published messages smaller
2018-05-10 11:49:02 -04:00
mprahl
00e46c205b
Show siblings and component_builds in the standard modules API
2018-05-10 11:48:00 -04:00
Ralph Bean
d0ae77c324
py3: Unicode strings must be encoded to bytes before hashing.
2018-05-08 14:17:36 -04:00
Qixiang Wan
d83e6897ca
Change ModuleBuild.context to db column
...
1. Changed ModuleBuild's context property to db column, it's
non-nullable and default value is '00000000' to keep it consistent
with previous behaviour.
2. Changed ModuleBuild.contexts_from_mmd to return a tuple of
(ref_build_context, build_context, runtime_context, context).
3. Updated tests affected by this change.
2018-04-28 11:46:31 +08:00
Jan Kaluza
8d1d439737
Generate 'context' from hash based on buildrequires/requires stream. Reuse components only from module with the same stream_build_context.
2018-04-24 15:45:26 +02:00
mprahl
19db295795
Fix flake8 errors
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
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
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
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
Yash Nanavati
ed25afd9ec
Code changes for Python 3 support
2018-03-04 03:22:38 -05: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
f16bf5f5a5
Add a SQLAlchemy hook to modify "time_modified" on module build entries
2018-02-06 10:45:07 -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
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
Jan Kaluza
7de120c17b
Get the weight of Koji tasks and use it to sort the components in a batch instead of builds time.
2017-11-28 10:52:17 -05:00
mprahl
0e7dd2dad3
Add a "short" query parameter to show less detail on the "module-builds" API
2017-11-17 13:19:48 -05:00
mprahl
ef5dc64f2b
Transition stale failed builds to the "garbage" state and untag their components
2017-11-17 12:07:51 -05:00
mprahl
9890277620
Make "state_url" optional in the "extended_json" function since creating an app context causes SQLAlchemy issues on the backend
2017-11-17 12:07:51 -05:00
mprahl
243e8873d5
Don't trigger init handler when importing a local build and mark the build as done after import
2017-11-10 08:33:53 -05:00
mprahl
3ccbb3dd57
Fix duplicate state traces
2017-11-08 10:18:47 -05:00
mprahl
18e7f608b1
Solidify how the previous module state is determined when resuming a failed module build
2017-11-06 16:54:10 -05:00
mprahl
d8f126e978
Allow resuming from a failure during the "init" phase
...
This also shifts build failure transitions from individual functions
in utils.py to the init module handler.
2017-11-06 14:15:12 -05:00
mprahl
089a0c3db4
Fix typo
2017-11-02 08:37:59 -04:00
mprahl
45cce653eb
Add the ability to specify different rebuild methods
2017-11-01 15:39:43 -04:00
Martin Curlej
1eb3c653dd
Changed the filters so they execute when everything is build
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
2017-10-31 16:04:31 -04:00
Martin Curlej
60b3d97c97
flake8 cleanup
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
removed some noqa tags
2017-10-25 12:13:59 +02:00
mprahl
eedf0a1684
Default verbose to false but present a lot more information when verbose is false
2017-10-23 20:19:51 -04:00
mprahl
2de4b592d6
Set 'time_modified' at module creation
2017-10-16 14:45:04 -04:00
Jan Kaluza
ad6874b0e6
Fix #670 - Tag Content Generator Koji build to special tag based on the base module stream
2017-09-25 08:36:29 +02:00
Ralph Bean
3b93dc7143
Restore the old message format.
...
The message format broke in 3cb41aa5dc
The resulted in tracebacks in pdc-updater when it tried to learn things
about a module that was just submitted. It relied on certain fields
(`stream`) being in the message body. This change restores those fields
to get things working again.
2017-09-15 23:34:57 +02:00
Jan Kaluza
999baa2992
Wait for components to be tagged also in final tag before marking module as done.
2017-09-15 15:25:29 +02:00
Filip Valder
3cb41aa5dc
Changes in MBS restful API:
...
- Refactor MBS API code
- Unify module-/component_build API philosophy/design/approach
- Naming fixes
- _utc_datetime_to_iso moved from ModuleBuildAPI and is now a module-level function.
- Existing v1 API remains unchanged. ComponentBuildAPI now supports individual component build listing + verbose mode.
- documented in README
- various component_build API tests added
2017-09-11 14:48:22 +02:00
Filip Valder
2e2856169a
Update and reformat README, CONTRIBUTING guide and sync code comments
2017-08-25 14:45:42 +02:00
Jan Kaluza
aac4227eb8
Add 'mbs-build local [[--add-local-build n:s:v], ...]' to use local builds as dependency.
2017-08-17 10:00:19 +02:00
Filip Valder
7ef2975984
PEP8 fixes
2017-07-17 18:29:10 +02:00
Neha Prasad
006efacb8e
add scm url to api
2017-07-14 12:09:33 -04:00
Jan Kaluza
1621c1e4fd
Create app_context before database session.
2017-07-11 09:41:55 +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
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
Ralph Bean
65950304ca
Merge #505 Allow querying for module builds by koji tag.
2017-04-11 13:02:15 +00:00
Jan Kaluza
8ebf1d8205
Show build id in ModuleBUild __repr__
2017-04-11 14:11:47 +02: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
mprahl
e7cbce51db
Stop using .strip('-build')
2017-04-07 09:20:19 -04:00
Jan Kaluza
8bbe2d359f
Trigger newRepo by MBS instead of waiting on Kojira in case when we have sucessfully tagged all the components
2017-04-06 17:19:35 +02:00