Commit Graph

46 Commits

Author SHA1 Message Date
Jan Kaluza
0e4c106ebb Fix another place where tests depend on the right ordering in lists 2017-04-04 09:36:32 +02:00
Jan Kaluza
4c5732957c include %module_name, %module_stream and %module_version in the module-build-macros and fix sending active=True in pdc.py 2017-03-31 15:18:53 +02:00
Jan Kaluza
7fb73da3b7 Fix randomly failing test_build tests caused by different ordering of built components. 2017-03-31 10:47:19 +02:00
Jan Kaluza
597973da98 For mock backend, build all the components in batch in single continue_batch_build call. 2017-03-28 15:44:01 +02:00
Jan Kaluza
4a6d961d66 Handle situation when all component builds in a batch fail 2017-03-23 14:25:20 +01:00
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 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
2fda828cd3 Use fedora production PDC in tests. 2017-03-21 18:30:20 +01: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 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 Kaluza
b569fa6c21 Fix #405 - Fix num_consecutive_builds. 2017-03-09 08:59:09 +01: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 Kaluza
6d74f32462 Remove 'module_' prefix from the disttag in module-build-macros. 2017-03-03 11:22:58 +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
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
Jakub Kadlčík
70103c41e2 Test submitting optional parameters 2017-02-27 17:23:05 +01:00
Matt Prahl
8577d5f307 Fix and cleanup tests 2017-02-21 14:22:30 -05:00
Jakub Kadlčík
2b55cfc81d Use locally stored testmodule.yaml file 2017-02-21 08:02:33 +01:00
Jakub Kadlčík
defabcfc28 Add test for submitting yaml file 2017-02-20 20:54:43 +01:00
Matt Prahl
01e94cb902 Merge #307 Replace query to FAS with OIDC groups scope check. 2017-02-10 21:28:15 +00: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
818a3feb6f check Koji active tasks for component relicts (same NVR) from previous (terminated) builds 2017-02-08 15:56:41 +01:00
Jan Kaluza
4acc1d69aa Use vcrpy for tests to simulate PDC responses. 2017-01-12 11:52:49 +01:00
Jan Kaluza
dda47acab7 Fix #276 - Use PDC to resolve buildroot components instead of MBS database 2017-01-10 14:29:54 +01:00
Jan Kaluza
23802418af Fix tag_artifacts with concurrent build threshold, do not send repo-done in Mock backend after each build, but just after the tag_artifacts call. 2017-01-06 11:04:54 +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
Ralph Bean
775819e87c Bugfix to shutdown and restart for the test suite. 2016-12-15 16:27:17 -05:00
Ralph Bean
a94cd53afd Make this more easily discoverable by nosetests. 2016-12-15 16:27:16 -05:00
Ralph Bean
29747a7ea7 Allow restarting the reactor for multiple tests. 2016-12-15 16:27:16 -05:00
Ralph Bean
40afb55ccf Revert "Disable these testmodule integration tests for now."
This reverts commit c2853026cc0e89e1cb34ed884af4e64a2da39052.
2016-12-15 16:27:16 -05:00
Ralph Bean
c3f73e76de Disable these testmodule integration tests for now. 2016-12-15 16:27:16 -05:00
Ralph Bean
7e3ee9b0b3 Begin porting the tests to use the new main function, but this doesn't work yet. 2016-12-15 16:27:16 -05:00
Jan Kaluza
3788bd2d8d Inherit the SCM repository from the parent module to included modules. 2016-12-13 13:24:25 +01:00
Jan Kaluza
d06c13d973 Fix the bug when module build freezes when all the components in batch have been already built by builder. 2016-12-12 21:03:44 +01:00
Matt Prahl
e9d0ec898b Use test database instead of in-memory database for all tests for consistency 2016-12-12 09:00:44 -05: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
Matt Prahl
91af4a1840 Change cancel build API to be a PATCH instead 2016-11-30 15:00:32 -05: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
77366b94ce Try to build testmodule.yaml as unit-test with fake builder backend. 2016-11-24 14:01:28 +01:00