1052 Commits

Author SHA1 Message Date
Ralph Bean
c562cdfcf3 1.3.8 v1.3.8 2017-03-15 09:33:52 -04:00
Jan Kaluža
5496306210 Merge #433 Remove unnecessary check in start_next_batch_build and do not increment module.batch before all the checks are done. 2017-03-15 13:24:07 +00:00
Jan Kaluza
f97d53d640 Remove unnecessary check in start_next_batch_build and do not increment module.batch before all the checks are done. 2017-03-15 14:15:15 +01:00
Ralph Bean
5f6df40132 1.3.7 v1.3.7 2017-03-15 08:59:11 -04: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
Matt Prahl
f8f93683ff Merge #430 Delete get_module_runtime_dependencies 2017-03-14 18:09:06 +00:00
Jan Kaluža
ec5ea320fc Merge #426 Bugfixes caused by frontend expecting even branch 2017-03-14 17:36:49 +00:00
Ralph Bean
141ffa8a17 Delete get_module_runtime_dependencies
It isn't really in use anywhere.

Fixes #378.
2017-03-14 12:58:12 -04: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
bfe6f8b583 1.3.6 v1.3.6 2017-03-14 12:06:13 -04:00
Ralph Bean
3874da7538 Supply component NVR if we know it in the poller.
The poller used to only look for failed or cancelled builds.  In those
cases, there is no way to know the NVR associated with the task.

Now that we also handle completed builds in the poller, we should pass
along the NVR from the koji build.
2017-03-14 11:33:22 -04:00
Jakub Kadlčík
c49876440e Frontend now expects even branch 2017-03-14 15:19:01 +01:00
Jakub Kadlčík
e88c881039 Cast branch to string or otherwise it fails 2017-03-14 15:19:01 +01:00
Ralph Bean
26e7dc9da5 1.3.5 v1.3.5 2017-03-14 09:12:02 -04: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 Kaluža
8bf10c8183 Merge #422 Fix #421 - Build next component immediatelly after the previous component build is finished. 2017-03-14 12:03:32 +00:00
Jan Kaluža
23cf21063b Merge #423 Fix #417 - Do not validate koji tag for repo_from_tag - even the non-prefixed module tag should work there. 2017-03-14 12:01:41 +00:00
Ralph Bean
b8ae310008 Merge #420 Sometimes (with base-runtime) this can take a long time... 2017-03-14 11:45:51 +00: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
aaac78da53 Fix #417 - Do not validate koji tag for repo_from_tag - even the non-prefixed module tag should work there. 2017-03-14 08:42:36 +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
Ralph Bean
be0ca4ed33 Sometimes (with base-runtime) this can take a long time... 2017-03-13 16:08:09 -04:00
Ralph Bean
20671748ca Coerce submitted branch name from unicode to bytes.
I hit this in prod on the latest 1.3.4 release.
2017-03-13 14:48:51 -04:00
Ralph Bean
589a011582 1.3.4 v1.3.4 2017-03-13 13:35:02 -04: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
Patrick Uiterwijk
a4763ee316 Use the 403 Forbidden result in case the user is unauthorized
The difference between 401 Unauthorized and 403 Forbidden is that 403 Forbidden is "permanent":
it indicates that the user was authenticated correctly, but was not allowed to access this endpoint.
In contrast, 401 Unauthorized means that the request as posted was not allowed, but if the user
were to try again with (new) authorization tokens, it might actually succeed.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-03-13 07:34:36 +00:00
Jan Kaluza
8a9b3bdca5 Always white-list included modules repository in _fetch_mmd. 2017-03-13 08:02:41 +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
Ralph Bean
135bd96d7f Merge #410 Recover from errors with completed builds. 2017-03-10 17:49:11 +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
Ralph Bean
c4b0f618c6 Recover from errors with completed builds.
The base-runtime build from today had two of its 180 builds that
succeeded, but MBS failed to notice (due to an unhealthy way that I
killed it and restarted it earlier in the day).  The result was that the
component builds were done, but the module stayed stuck in the build
state even though its work was over.

This change alters the poller (which checks for builds that failed in
the buildSRPMFromSCM step which doesn't emit a message for our
consumer), to additionally check for builds that succeeded but which we
didn't notice.
2017-03-07 21:18:10 -05:00
Jakub Kadlčík
cdde6f5e20 Use kobo.rpmlib instead of rpmUtils 2017-03-07 16:03:48 +01:00
Jakub Kadlčík
17f94d0220 Handle copr messages only when it is set as build system 2017-03-07 15:52:15 +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 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
Jakub Kadlčík
a2af794bed Stop assuming that copr build is already completed 2017-03-07 00:43:22 +01:00
Jakub Kadlčík
ba0c4eb9da Add missing build_id param to build_srpm method 2017-03-07 00:43:22 +01:00
Jakub Kadlčík
2312efce45 Not use PDC for copr builder 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
1104a3ae10 Update README with new tasks API format. 2017-03-05 23:57:51 -05: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
Ralph Bean
c0cf9da84d Demote these log statements. 2017-03-03 12:44:29 -05:00