Commit Graph

49 Commits

Author SHA1 Message Date
Jan Kaluza
7fa1dda076 Fix #476 - use '--release f26' when building srpm for local builds 2017-04-05 12:46:44 +02:00
Jan Kaluza
acf0e7097c Use FAS groups to manage MBS admins 2017-04-04 16:39:10 +02:00
Filip Valder
e6d80c0293 introduce tox & pytest as well as other stuff (flake8, bandit and prepare for future automated build&release steps) 2017-03-31 11:15:32 +02:00
Jan Kaluza
c5f9d713cc Introduce 'admins' config option and allow users defined there to cancel any module build. 2017-03-29 12:58:44 +02:00
Jan Kaluza
298bf63120 Fix #409 - Remove koji_tag_inherit_from and whitelist all the components we are going to build instead. 2017-03-14 11:28:47 +01:00
Jan Kaluza
f18925c677 Use compact dist-tag by using DEFAULT_DIST_TAG_PREFIX and first 8 characters of sha1 hash of module name/stream/version. 2017-03-13 16:49:56 +01:00
Jan Kaluza
7cf77d0fee Make testing with different configuration values easier and less error-prone by using mock.patch to change the configuration. 2017-03-13 07:48:29 +01:00
Jan Kaluza
8aa3ce3c27 Add MODULES_ALLOW_REPOSITORY and MODULES_DEFAULT_REPOSITORY with the same meaning as RPMS_* equivalents. 2017-03-03 15:36:10 +01:00
Matt Prahl
6ff2c19b60 Have new tags inherit from 'module-package-list' and remove the 'force' parameter when tagging a build 2017-02-28 15:00:44 -05:00
Filip Valder
a4366d9be7 Koji tag validation
- Decorator supporting str/list args
- ProgrammingError exception which may uncover typos in the names of args to validate
- Configurable whitelist of koji tag prefixes
- Add basic validation to test_build.TestModuleBuilder
2017-02-28 09:08:32 +01:00
Jan Kaluža
18f9089643 Merge #323 Possibility to submit yaml file 2017-02-21 14:21:45 +00:00
Matt Jia
be65a0ff81 allow to explicitly disable client authentication 2017-02-21 11:08:37 +10:00
Jakub Kadlčík
3e2ee93dd8 Rename conf option to YAML_SUBMIT_ALLOWED 2017-02-19 22:35:55 +01:00
Ralph Bean
88aca055ce Replace query to FAS with OIDC groups scope check.
This removes our query to FAS and fixes #304.

It is more flexible too, where we can now configure production to only
allow in members of the `modularity-wg` group, and then later open it up
to all packagers after F26 is out (as was agreed with FESCo).

In the process of working on this, I discovered that #305 is not
necessary.  We don't need our own scope; we can just use the `groups`
scope as done here.
2017-02-10 15:50:41 -05:00
Filip Valder
89351fbc24 Re-factor configuration loading, fix default topics (shall be a list),
update docs.
2017-01-31 14:00:15 +01:00
Filip Valder
34ef9ce5fd Add support for message topic prefixes + explicit services/categories (incl. code lints) 2017-01-12 19:30:34 +01:00
Jan Kaluza
ab567803e8 Fix #41 - Tag builds only in the end of the badge to not regen repository all the time. 2017-01-05 15:24:46 +01:00
Matt Prahl
6182053c4a Add noserunner.py as a valid way to test MBS 2016-12-12 09:00:44 -05:00
Filip Valder
379af8fe7e register/set 'debug' conf variable 2016-12-09 17:29:41 +01:00
Filip Valder
2eda23233e implement MODULE_BUILD_SERVICE_DEVELOPER_ENV functionality 2016-12-09 13:30:57 +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
e075fbb24d fallback to conf.config if there's no global configuration 2016-12-05 15:17:37 +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
Filip Valder
88e6ddf953 configuration logic goes to config.py 2016-11-21 22:54:18 +01:00
Filip Valder
ca198daebf Default network timeouts 2016-11-18 10:24:34 +01:00
Matt Prahl
efd5d203b3 Merge #184 Add Build Rate Limiting 2016-11-16 20:51:07 +00:00
Matt Prahl
2cb7ce99c6 Add NUM_CONSECUTIVE_BUILDS configuration option 2016-11-16 15:24:16 -05:00
Jan Kaluza
c9aff6f9e7 Allow configurable mock resultsdir and backup logs after each 2016-11-16 10:24:39 +01:00
Ralph Bean
7cb1e7cf8f Move and reformat the defaults list as described in PR review. 2016-11-15 09:50:35 -05:00
Filip Valder
15e8903d39 add: desc for configuration items 2016-11-15 13:25:14 +01:00
Filip Valder
27b76daa65 more accurate comments/exceptions 2016-11-15 10:29:49 +01:00
Filip Valder
ea99293919 fix: conf variable needn't be registered in DEFAULTS to be able to use _setifok_ handler 2016-11-11 16:04:57 +01:00
Filip Valder
051cbb1d0f fix: to be more specific 2016-11-11 14:54:13 +01:00
Filip Valder
3313cbb007 convention: avoid confusion with __setitem__ 2016-11-11 14:53:43 +01:00
Filip Valder
6a026e4d5b fix: helps identifying conf var name instead of generic TypeError 2016-11-11 14:24:55 +01:00
Filip Valder
5c3a46c194 fix: reasonable defaults or taken from runtime configuration (top-level ocnfig.py) 2016-11-11 14:22:32 +01:00
Filip Valder
b9382f8e9f refactor: registering conf items is not required 2016-11-11 14:05:57 +01:00
Jan Kaluza
7b9e4f7234 Initial version of mock backend 2016-11-10 09:57:00 +01:00
Ralph Bean
f3ebe112a2 Make our use of proxyuser configurable. 2016-10-28 15:46:15 -04:00
Ralph Bean
41bdf32aa2 Merge #131 Allow optional authz, to make dev much simpler. 2016-10-27 08:43:17 +00:00
Ralph Bean
11149b13d2 Remove unused function. 2016-10-26 15:44:29 -04:00
Ralph Bean
1ce135412f Allow optional authz, to make dev much simpler. 2016-10-26 15:44:21 -04:00
Matt Prahl
ed5a5c83b3 Merge #129 Updating 'module_build_service/config.py' and adding 'python-mock' to Vagrantfile 2016-10-26 12:13:27 +00:00
Jan Kaluza
a2c870c336 Fix #109 - Use priority 10 (configurable) for Koji builds 2016-10-26 10:21:45 +02:00
Courtney Pacheco
3be788f602 Updating 'module_build_service/config.py' and adding 'python-mock' to Vagrantfile 2016-10-26 04:21:01 -04:00
Jan Kaluza
a7c2386983 Fix #117,#51 - Add rida.builder.Builder.tag_to_repo method to get the URL to repository based on a tag name. Also create target when creating build target to ensure this repo is generated for Koji builder. 2016-10-25 12:10:16 +02:00
Jakub Kadlčík
57b0c8b86c Add CoprModuleBuilder skeleton 2016-10-24 20:46:07 +02: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