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
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
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
Ralph Bean
a459b91fde
1.3.3
v1.3.3
2017-03-03 10:06:06 -05:00
Ralph Bean
e7b7d7cd2f
Merge #396 Add MODULES_ALLOW_REPOSITORY and MODULES_DEFAULT_REPOSITORY with the same meaning as RPMS_* equivalents.
2017-03-03 15:05:25 +00:00
Ralph Bean
5e3ea846f3
Merge #398 Ignore koji messages with a null task id
2017-03-03 15:04:42 +00:00
Ralph Bean
766656d65f
Ignore all messages from the secondary koji instances.
2017-03-03 09:55:31 -05:00
Ralph Bean
34f779785c
Don't handle koji messages with null task_id values.
...
Otherwise, we query for null==null in our DB and chaos ensues.
2017-03-03 09:53:12 -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
Filip Valder
25bfac2b3c
Merge #392 Fix another attribute error.
2017-03-03 14:23:05 +00:00
Filip Valder
1ece0e0a8a
reference to #397
2017-03-03 15:19:42 +01:00
Filip Valder
467c2bb36a
rename "mbs_module_name" to "mbs_module_target"
2017-03-03 14:09:01 +01:00
Filip Valder
21bf0a7d53
Merge #393 Make fake MBS messages JSON serializable.
2017-03-03 12:57:46 +00:00
Jan Kaluza
cc204e6b62
Fix logging in poller.
2017-03-03 13:16:44 +01:00
Ralph Bean
57e96c422e
Make fake MBS messages JSON serializable.
...
Which prevents errors when fedmsg-hub tries to checkpoint its progress
on disk in prod.
2017-03-03 07:00:36 -05:00
Ralph Bean
e1a9034e0f
Fix another attribute error.
2017-03-03 06:47:30 -05:00