978 Commits

Author SHA1 Message Date
Ralph Bean
9e62eacf3e 1.3.2 v1.3.2 2017-03-02 13:01:23 -05:00
Ralph Bean
29ea44025b Some more temporary bootstrapping utilities. 2017-03-02 13:00:34 -05:00
Matt Prahl
51c1e3b7ea Merge #380 Please include the state name, even in the API json. 2017-03-02 17:05:35 +00:00
Matt Prahl
4cd652e5f7 Merge #377 Fix the depsolving wrapper. 2017-03-02 17:04:45 +00:00
Ralph Bean
ae8d453da3 Use mmd.xmd for exact pinning of dep tags. 2017-03-02 11:59:46 -05:00
Ralph Bean
dac43c62b8 Please include the state name, even in the API json. 2017-03-02 11:45:04 -05:00
Ralph Bean
8d2b7729bd Restore the original functionality, even if it is weird. 2017-03-02 11:23:04 -05:00
Ralph Bean
724599fb77 Fix the depsolving wrapper.
It was try to convert koji tags back to modules locally, which caused
errors with the new bootstrap tag.
2017-03-02 11:16:43 -05:00
Filip Valder
b738e0201b error->warn 2017-03-02 15:50:52 +01:00
Filip Valder
7b63710608 gracefully fail module build if there's an error while processing message handler 2017-03-02 15:39:03 +01:00
Filip Valder
6b189c4b4a Koji tag validation: Catch situation when tag arg has no value + refactoring + add comments. 2017-03-02 15:01:52 +01:00
Filip Valder
7e1a08901c Merge #368 Use prod ipsilon. Our scope is live. 2017-03-02 09:34:29 +00:00
Ralph Bean
92990c94a2 Make this a little more quiet.
Otherwise, it logs for *every single koji build* that comes across the
bus.  Too noisy to see what the MBS is actually doing.
2017-03-01 16:12:35 -05:00
Matt Prahl
5af8bc99f0 Change format_mmd test to be more consistent. 2017-03-01 15:00:54 -05:00
Ralph Bean
7ff90677e7 Use prod ipsilon. Our scope is live. 2017-03-01 12:50:12 -05:00
Ralph Bean
8516ad6f11 1.3.1 v1.3.1 2017-02-28 20:17:03 -05:00
Ralph Bean
aec6deb0d2 Include tests/scm_data in the next release. 2017-02-28 20:03:32 -05:00
Ralph Bean
cf70ee524e 1.3.0 v1.3.0 2017-02-28 19:52:47 -05:00
Ralph Bean
da0d5f5c09 Merge #362 [Waits on PR#365] Have new tags inherit from 'module-package-list' and remove the 'force' parameter when tagging a build 2017-03-01 00:49:02 +00:00
Matt Prahl
b254ba40cc Use the latest testmodule version 2017-02-28 17:39:30 -05:00
Ralph Bean
ca61d6bb29 Allow passing in multiple tag names to the validation decorator.
We have problems when we try to wrap one decorator around another.
There are ways to do that with the
[decorator](https://pypi.python.org/pypi/decorator) module nicely,
however.. they are ugly.

Take a look at this:

https://github.com/micheles/decorator/blob/master/src/decorator.py#L217-L218

And this:

https://github.com/micheles/decorator/blob/master/src/decorator.py#L185-L188

The approach in this PR is.. simpler.
2017-02-28 17:15:55 -05: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
6dd223fd12 support for dicts + tests 2017-02-28 20:54:03 +01:00
Filip Valder
6b343896dd s/rida/mbs/ 2017-02-28 17:59:02 +01:00
Filip Valder
13b7bcd03e Support for state tracing of modules and components
- DB migration scripts.
- Models: ComponentBuildTrace, ModuleBuildTrace.
- ModuleBuild.state_trace method for querying for a particular module's
state history.
- SQLAlchemy before commit session event handler for recording
module/component state changes.
- REST API verbose mode for getting state trace of a particular module.
- Tests use make_session, so that event handlers are in effect.
- Short info in README about verbose mode.
- Tests verifying whether state trace information about a module appears
in verbose mode.
- Other minor fixes (RidaBase -> MBSBase, PEP8...)
2017-02-28 16:15:43 +01:00
Matt Prahl
7dfb647e08 Merge #347 Possibility to specify optional parameters when submitting build 2017-02-28 14:26:20 +00:00
Filip Valder
be3b05e673 Additional tests for validate_koji_tag:
- Verify that ProgrammingError exception does what it is intended to do.
- Two (str/list) negative tests for validate_koji_tag decorator itself.
- Two (str/list) positive tests for validate_koji_tag decorator itself.
- Support validation in a test for Koji builder.
2017-02-28 09:08:32 +01: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
Matt Prahl
e11fe095de Merge #359 Update testmodule hash to 4cef8cb 2017-02-27 19:33:56 +00:00
Jakub Kadlčík
4c85e01b6c Update testmodule hash to 4cef8cb 2017-02-27 19:59:18 +01:00
Jakub Kadlčík
70103c41e2 Test submitting optional parameters 2017-02-27 17:23:05 +01:00
Jakub Kadlčík
9429114836 Get empty string if Content-Type is not in headers 2017-02-27 16:20:01 +01:00
Jakub Kadlčík
cef690f260 Not accept copr parameters when different builder is used 2017-02-27 15:53:39 +01:00
Ralph Bean
0fe6c88945 Merge #354 Allow MBS to run behind a reverse proxy. 2017-02-27 13:00:31 +00:00
Jakub Kadlčík
34ea4a8efe Move validate_optional_params function to utils.py 2017-02-26 22:23:50 +01:00
Jakub Kadlčík
48f27cd7ea Get one() result instead of first() 2017-02-26 22:19:31 +01:00
Matt Prahl
56d6d90ece Enforce that the mmd can't define a different module name, stream, or version 2017-02-24 10:37:40 -05:00
Ralph Bean
1cf582e866 Allow MBS to run behind a reverse proxy.
This fixes #352.
2017-02-24 10:23:35 -05:00
Jakub Kadlčík
5c52fce586 Update to the accurate down_revision 2017-02-23 20:55:51 +01:00
Jakub Kadlčík
7799515994 Use function for validating optional params to reduce code duplicity 2017-02-23 20:51:31 +01:00
Jakub Kadlčík
62e26ba652 Use better way of checking for forbidden columns 2017-02-23 20:51:31 +01:00
Jakub Kadlčík
5a65f50b52 Use built-in to_dict() function 2017-02-23 20:51:31 +01:00
Jakub Kadlčík
38bdc92248 Have immutable default value for optional_params 2017-02-23 20:51:31 +01:00
Jakub Kadlčík
6bd9e7026f Use optional module build params in CoprModuleBuilder 2017-02-23 20:51:31 +01:00
Jakub Kadlčík
92dce63091 Allow submitting optional parameters such as copr_owner and copr_project 2017-02-23 20:51:31 +01:00
Jan Kaluza
8b83e78394 Fix build_module_locally. 2017-02-23 10:42:34 +01:00
Matt Prahl
8ca616ec57 Add new tests for reusing components 2017-02-21 14:22:31 -05:00
Matt Prahl
8577d5f307 Fix and cleanup tests 2017-02-21 14:22:30 -05:00
Matt Prahl
385045d778 Reuse components from previous module builds 2017-02-21 14:22:30 -05:00
Matt Prahl
a5cc4eb280 Add a module's commit hash, scmurl, and the buildrequires' commit hashes, stream, and version in the modulemd 2017-02-21 09:53:05 -05:00