Jan Kaluza
1487fd01f2
Remove is_waiting_for_repo_regen and use buildroot_ready instead. Do not get buildroot dependencies from the buildrequires recursively. Do not validate Koji tags to inherit.
2017-03-22 17:29:05 +01:00
Jan Kaluža
a2ba358c71
Merge #447 Do not allow starting next batch if the Koji is still building new repo.
2017-03-22 13:43:07 +00:00
Jan Kaluza
09601cfbb6
Do not allow starting next batch if the Koji is still building new repo.
2017-03-22 14:40:18 +01:00
Jan Kaluza
a9fdf08c6f
Do not fetch profiles in resolve_profiles recursively. When we are building a module, we just need profiles from build-requires of this particular module, but not all the modules downstream.
2017-03-22 09:29:08 +01:00
Jan Kaluza
2fda828cd3
Use fedora production PDC in tests.
2017-03-21 18:30:20 +01:00
Jan Kaluža
25340aecd9
Merge #445 Fix the process_paused_module_builds in poller.
2017-03-17 15:14:25 +00:00
Jan Kaluza
3318f48fc3
Fix the process_paused_module_builds in poller
2017-03-17 15:57:52 +01:00
Jan Kaluža
27e4c3868a
Merge #444 Mark module build as failed if one of the components fail
2017-03-17 14:20:31 +00:00
Jan Kaluza
5aa6360595
Mark module build as failed if one of the components fail
2017-03-17 15:14:41 +01:00
Matt Prahl
3736a0dd6a
Merge #443 Do not try to tag builds which have been already tagged in a tag.
2017-03-17 13:55:00 +00:00
Jan Kaluza
10811e41dc
Do not tag packages which belong to -build tag to final tag.
2017-03-17 14:41:11 +01:00
Jan Kaluza
0fb8bd221f
Reset batch counter and state_reason when resubmiting module
2017-03-17 12:11:08 +01:00
Jan Kaluza
c06d900e62
Do not try to tag builds which have been already tagged in a tag
2017-03-17 11:29:38 +01:00
Jan Kaluza
a72a97754a
Fix typo in test_reuse_component_init_data name, set SERVER_NAME config variable in config.py, return commit in MockedSCM.get_latest
2017-03-17 08:58:58 +01:00
Jan Kaluza
2ade8ccf79
Add missing testmodule-bootstrap.yaml
2017-03-16 13:19:09 +01:00
Jan Kaluza
830b1dd111
Add tests for 'continue' part of start_next_batch and component resubmit
2017-03-16 11:20:51 +01:00
Jan Kaluza
97706324a7
Fix the module fail when num_consecutive_builds limit is met and tagging issue when all the builds are reused in a single batch
2017-03-15 11:55:55 +01:00
Jan Kaluža
4afe8e2c5f
Merge #413 Fix #409 - Remove koji_tag_inherit_from and whitelist all the components we are going to build instead.
2017-03-14 16:22:38 +00:00
Ralph Bean
a8314cba09
Merge #425 Use the 403 Forbidden result in case the user is unauthorized
2017-03-14 13:11:10 +00:00
Jan Kaluza
34c8cc833a
Fix tests and change two places where Forbidden is more accurate than Unauthorized.
2017-03-14 13:40:53 +01:00
Jan Kaluza
82edbab2b4
Use real 'components' arg instead of **kwargs.
2017-03-14 12:12:53 +01: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
0543e2c9ca
Fix #421 - Build next component immediatelly after the previous component build is finished.
2017-03-14 08:36:30 +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 Kaluža
d87010dba0
Merge #411 Fix #405 - Fix num_consecutive_builds.
2017-03-11 05:52:09 +00:00
Jan Kaluža
b715f18e16
Merge #403 Copr builder improvements
2017-03-10 11:28:15 +00:00
Jakub Kadlčík
b051ea2b4d
Set copr as build system for this test
2017-03-09 09:34:59 +01:00
Jan Kaluza
b569fa6c21
Fix #405 - Fix num_consecutive_builds.
2017-03-09 08:59:09 +01:00
Jan Kaluža
91193cf676
Merge #404 Expect 'branch' while handling submission of module and use it to set the stream of module. Also verify that the commit hash belongs to that branch.
2017-03-09 05:04:19 +00:00
Jan Kaluza
4b3e295e48
Expect 'branch' while handling submission of module and use it to set the stream of module. Also verify that the commit hash belongs to that branch.
2017-03-07 11:25:06 +01:00
Jan Kaluža
ab59a1eac6
Merge #402 Add OIDC_REQUIRED_SCOPE and fix the test_auth.py to use Authorization header.
2017-03-07 09:31:05 +00:00
Jakub Kadlčík
233042c340
Process copr fedmsg messages
2017-03-07 00:44:47 +01:00
Jakub Kadlčík
e849c5da16
Test parsing buildsys.state.change message
2017-03-07 00:43:22 +01:00
Jan Kaluza
b11ea14358
Add OIDC_REQUIRED_SCOPE and fix the test_auth.py to use Authorization header.
2017-03-06 14:56:09 +01:00
Ralph Bean
4509367d3e
Use JSON for component API instead of strings.
...
This is more flexible and is nicer to other programs that try to parse
or consume this data.
2017-03-03 15:59:17 -05: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
Jan Kaluza
6d74f32462
Remove 'module_' prefix from the disttag in module-build-macros.
2017-03-03 11:22:58 +01: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
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
6b189c4b4a
Koji tag validation: Catch situation when tag arg has no value + refactoring + add comments.
2017-03-02 15:01:52 +01:00
Matt Prahl
5af8bc99f0
Change format_mmd test to be more consistent.
2017-03-01 15:00:54 -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
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