Commit Graph

77 Commits

Author SHA1 Message Date
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
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
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
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
77366b94ce Try to build testmodule.yaml as unit-test with fake builder backend. 2016-11-24 14:01:28 +01:00
Jan Kaluza
4f6d683645 Fix #173 - Handle includedmodules by building their components recursively. 2016-11-23 06:38:16 +01:00
Filip Valder
febb8de4f6 tests and test.test_models module initialization updated 2016-11-21 22:53:32 +01:00
Ralph Bean
83db7d07bf Whitespace. 2016-11-21 15:36:34 -05:00
Ralph Bean
2357691c03 Add a test for resolve_profiles. 2016-11-21 13:50:55 -05:00
Jan Kaluza
9aca8057a3 Handle the exception in builder.build(...) code and do not mark whole module as failed - mark just the particular component. 2016-11-18 19:09:03 +01:00
Ralph Bean
d83f210297 Get tests of the retry decorator working in the test suite. 2016-11-18 10:19:41 -05:00
Ralph Bean
c65cf0ab7f Merge #207 Fix tests and move duplicate code to separate class. 2016-11-18 14:26:03 +00:00
Jan Kaluza
936c22f33e Fix tests and move duplicate code to separate class. 2016-11-18 15:12:04 +01:00
Filip Valder
9b808d4354 test buildroot_read() incl. FakeKojiModuleBuilder and FakeKojiSession 2016-11-18 14:39:27 +01:00
Filip Valder
35781690a7 wip: new test for KojiModuleBuilder.buildroot_ready() 2016-11-18 10:24:34 +01:00
Filip Valder
37cde8cf2f Load testing values from config 2016-11-18 10:24:34 +01:00
Filip Valder
eee1283a14 PEP8 2016-11-18 10:24:34 +01:00
Filip Valder
62b4a34ffd Load config 2016-11-18 10:24:34 +01:00
Filip Valder
2a53b74bcf Lint 2016-11-18 10:24:34 +01:00
Matt Prahl
244b77f54c Add component build throttling 2016-11-16 15:24:17 -05:00
Matt Prahl
62654f871f Fixes bug where the build tag was not returned 2016-11-16 15:24:16 -05:00
Jan Kaluza
2b7ebdfc6f Fix #172 - Set ComponentBuild.batch according to mmd.buildorder attribute 2016-11-16 12:41:06 +01:00
Matt Prahl
1db4797136 Merge #177 Add support for modulemd-1.0 backward-incompatible changes like commit being replaced by ref 2016-11-14 14:34:08 +00:00
Jan Kaluza
966a73251a Add support for modulemd-1.0 backward-incompatible changes like commit being replaced by ref 2016-11-14 15:32:51 +01:00
Jakub Kadlčík
57402656d9 Patch tests without having to import CoprClient 2016-11-10 13:27:46 -05:00
Jakub Kadlčík
1f00fa44eb Skip copr tests 2016-11-10 13:27:46 -05:00
Jakub Kadlčík
a09bfbd506 Value of copr_config is not relevant for this tests 2016-11-10 13:27:46 -05:00
Jakub Kadlčík
34a2ea7856 Implement GenericBuilder.repo_from_tag for copr backend 2016-11-10 13:27:46 -05:00
Filip Valder
dd4790f514 fix: issue #159 return state_url in JSON after module build submission 2016-11-07 13:13:01 +01:00
Ralph Bean
b2d1cf9f0d Merge #154 Fix #126 - remove Builder class 2016-11-02 12:54:04 +00:00
Jan Kaluza
d9916a1634 Fix #126 - remove Builder class 2016-11-01 14:44:42 +01:00
Jan Kaluza
42138810d5 Fix KojiModuleBuilder.build return values in tests 2016-11-01 12:05:08 +01:00
Ralph Bean
725fa9f3e0 Merge #150 Ignore repository builds without the '-build' suffix. 2016-10-31 13:03:58 +00:00
Jan Kaluza
6fd16587bc Ignore repository builds without the '-build' suffix. 2016-10-31 13:14:31 +01:00
Jan Kaluza
cc5836d3ce Fix 'We have no record of ...' when Koji task finishes by comparing task_id with task_id and not with buil_id. 2016-10-31 11:27:42 +01:00
Ralph Bean
66de3457af Fix the test suite.
These must've not gotten renamed in a PR merge dance.
2016-10-25 15:09:22 -04:00
Jan Kaluža
17fb31d2fd Merge #124 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 14:05:43 +00:00
Courtney Pacheco
8e4af4c985 Adding fakemodule2.yaml (a minimal, componentless module) 2016-10-25 07:58:06 -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
Courtney Pacheco
4127a8c3c3 Adding test to view_test.py and fixing prior commit for 'pdc.py' 2016-10-25 04:44:45 -04: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
Ralph Bean
a551ad9214 Fix the test suite.
This was added in #92.

But the function got renamed in 31ec1835db.

Merge hell.
2016-10-21 11:47:20 -04:00
Ralph Bean
67f72b8379 Merge #92 Fix #85 - Add 'fail_reason' to ComponentBuild and ModuleBuild models to have a user-friendly error message when build fails. 2016-10-20 18:25:27 +00:00
Jan Kaluža
a18ccf4f11 Merge #101 Fix #88 - Reject SCM URLs which do not match the URL structure expected by pdc-updater. 2016-10-20 15:27:50 +00:00
Ralph Bean
f54b047f48 Merge #77 Create (koji) builder session on behalf of users 2016-10-20 15:20:12 +00:00
Jan Kaluza
50273b4dbd Fix #85 - Add 'state_reason' to ComponentBuild and ModuleBuild models to have a user-friendly error message when build fails. 2016-10-20 10:18:25 +02:00
Jan Kaluza
728eaf2277 Fix #88 - Reject SCM URLs which do not match the URL structure expected by pdc-updater. 2016-10-20 09:54:11 +02:00
Ralph Bean
b1fce413f5 Merge branch 'amq-messaging' 2016-10-18 10:45:59 -04:00