Commit Graph

167 Commits

Author SHA1 Message Date
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
Jan Kaluža
f14fc00a09 Merge #240 Use timeout for build tests to prevent hanging, import queue from six.moves, fix init_logging import for jenkins 2016-12-07 11:19:38 +00:00
Filip Valder
8c7e631cac Merge #241 Fix frontend's context 2016-12-07 10:28:41 +00:00
Jan Kaluza
fe37b6c11e Prefix tag in buildroot_add_repos with 'module-', because tags are prefixed like that in koji and PDC. 2016-12-07 11:18:05 +01:00
Filip Valder
3d4cc41c27 use just once during upgradedb otherwise frontend's request processing
is out of application context

From docs: Setting a SERVER_NAME also by default enables URL generation
without a request context but with an application context.
2016-12-06 14:21:25 +01:00
Jan Kaluza
9eff11fdb0 Use timeout for build tests to prevent hanging, import queue from six.moves, fix init_logging import for jenkins 2016-12-06 11:33:15 +01:00
Jan Kaluza
b45905cbd0 Add 'in_memory' messaging backend and use it during build_module_locally to drop dependency on fedmsg-relay for local builds. 2016-12-06 10:21:42 +01:00
Filip Valder
79715ecfbe missing: import logging 2016-12-05 15:18:26 +01:00
Filip Valder
8c09742b8b went to module_build_service/manage.py few commits ago, just forgot to delete it during rebase 2016-12-05 15:18:26 +01:00
Filip Valder
e075fbb24d fallback to conf.config if there's no global configuration 2016-12-05 15:17:37 +01:00
Filip Valder
c06bf7c7be fix & rename ... perhaps might be configurable? 2016-12-05 15:17:37 +01:00
Filip Valder
4a78d4ece9 test whether it works like this 2016-12-05 15:17:37 +01:00
Filip Valder
b00a34f1f2 let's try this fix for 'RuntimeError: working outside of application context' 2016-12-05 15:17:37 +01:00
Filip Valder
316dd43778 better use conf items/vars 2016-12-05 15:17:37 +01:00
Filip Valder
d9976818a4 change security bits for cert_key_file 2016-12-05 15:17:37 +01:00
Filip Valder
56a2004320 not very smart... 2016-12-05 15:17:37 +01:00
Filip Valder
7c4443fd3e this shall be accessible for module_build_service's product users in order to be able to upgrade underlying DB 2016-12-05 15:16:41 +01:00
Filip Valder
77cd112275 move & lint 2016-12-05 15:16:41 +01:00
Filip Valder
d166b7e213 move & lint 2016-12-05 15:16:41 +01:00
Filip Valder
3eb152f7d6 simplify things 2016-12-05 15:16:41 +01:00
Filip Valder
3d0e83d8e1 load source file config.py as module 2016-12-05 15:16:41 +01:00
Jan Kaluza
8b3244405f Make the OIDC error messages more verbose and include non-secret client-secrets.json 2016-12-05 11:40:00 +01:00
Jan Kaluza
8cb4e0de5d Use OIDC to auth the users, replace submit-build.sh by submit-build.py which does hackish way of OIDC just to test things. 2016-12-02 14:52:04 +01:00
Ralph Bean
d453352f84 Merge #231 Copr - real building && finalize method 2016-12-01 21:47:21 +00:00
Ralph Bean
9303be7a4e Merge #228 Drop alembic fake base-runtime code. 2016-12-01 15:56:10 +00:00
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
Matt Prahl
91af4a1840 Change cancel build API to be a PATCH instead 2016-11-30 15:00:32 -05:00
Ralph Bean
a2122f84a4 Move insert_fake_baseruntime to utils.py. 2016-11-30 13:11:14 -05: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 Kaluža
bb5dd5f75c Merge #227 Fix #105 - Add new cancel API call which can be used to cancel the module build. 2016-11-30 15:56:34 +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
Jan Kaluza
f7350a395f Allow file:// URLs when building modules locally 2016-11-30 10:33:20 +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
Ralph Bean
20cf4a9ea8 Merge #218 Try to build testmodule.yaml as unit-test with fake builder backend. 2016-11-28 16:35:10 +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