1932 Commits

Author SHA1 Message Date
Ralph Bean
63e4d4aac7 2.6.0 v2.6.0 2018-09-07 13:56:03 -04:00
Filip Valder
598347e1b6 Import module API 2018-09-07 17:12:01 +02:00
Ralph Bean
cfe32afcd0 Rename LocalBuilder to SRPMBuilder and change type detection.
First, rename LocalBuilder to SRPMBuilder.  Reading the manpage for mock tells
me that the `--rebuild` option is specifically for rebuilding a given srpm.
The class was just named poorly (imo).

Second, change the type detection.  The bug I'm trying to fix is if you try to
pass a string for the `repository:` in your modulemd like
`file:///home/user/repos/libfoo/`.  The old logic here would assume that it is
an srpm since it didn't start with "git" or "http", but that's not correct.  We
have people who want to experiment with building modules with components that
are not publicly accessible over the network - which are only local.  This
change allows that.
2018-09-07 09:23:11 -04:00
mprahl
9d40718895 Allow module components to use a git ref outside of the master branch 2018-09-06 15:04:24 -04:00
Ralph Bean
e7089d7be0 Rename this to be PDC-agnostic. 2018-09-04 09:51:56 -04:00
Ralph Bean
0aff640ef3 Optionally, block building modules with EOL streams.
Requested by @mboddu in:

- https://pagure.io/fm-orchestrator/issue/960
- https://pagure.io/modularity/issue/102
2018-08-31 15:23:04 -04:00
Matt Prahl
1077f11b2a Merge #999 ISSUE-991: Added a method to the producer that will move stuck builds into 'failed' state 2018-08-30 14:17:31 +00:00
Martin Curlej
5a3d3d99d3 ISSUE-991: Added a method to the producer that will move stuck builds into 'failed' state
Signed-off-by: Martin Curlej <mcurlej@redhat.com>
2018-08-30 16:02:24 +02:00
Matt Prahl
18a53695bb Merge #1002 Cosmetic fixes in mmd_resolver.py 2018-08-29 13:05:06 +00:00
mprahl
44dfd0c37f Return the exit code from tox in docker/test.sh 2018-08-29 09:01:25 -04:00
mprahl
6ce92e8ad0 Rename a variable in mmd_resolver.py to not shadow the function input 2018-08-28 10:06:00 -04:00
mprahl
c37a0e880b Fix the typos in the mmd_resolver.py comments 2018-08-28 10:04:40 -04:00
Matt Prahl
e5230ef519 Merge #1001 Add some comments to MMDResolver. 2018-08-28 13:57:01 +00:00
Jan Kaluza
dad03d3742 Copy the buildrequires which are not in requires list to expanded MMD. 2018-08-28 15:15:58 +02:00
Jan Kaluza
c36e6f2ec3 Add some comments to libsolv code. 2018-08-28 11:56:43 +02:00
Jan Kaluza
78f94d117b Cast 'version' in get_build_from_nsvc to str. 2018-08-22 09:45:00 +02:00
Jan Kaluza
8e5b9334e6 Release 2.5.1 v2.5.1 2018-08-21 14:58:06 +02:00
Matt Prahl
0cec1ef2f3 Merge #997 Return string representation of exception instead of e.args[0] in Flask error handlers. 2018-08-21 12:52:53 +00:00
Jan Kaluza
a10abcdbcc Return string representation of exception instead of e.args[0] in Flask error handlers. 2018-08-21 11:21:04 +02:00
Jan Kaluza
56fe201c33 Fill in the 'filterer_rpms' in backend to not access Koji from frontend. 2018-08-21 07:58:52 +02:00
Ralph Bean
84762891f7 Close threadpools after use. 2018-08-15 12:47:18 -04:00
Ralph Bean
2e06199aa8 Release 2.5.0 v2.5.0 2018-08-14 11:53:38 -04:00
mprahl
713172e1d5 Remove some other noisy debug logs 2018-08-14 11:22:04 -04:00
mprahl
79be63a7e7 Remove the debug log saying the MBS received a message to reduce noise 2018-08-14 10:03:53 -04:00
Matt Prahl
09edb4cba8 Merge #990 Allow overriding the name and stream from scm repos. 2018-08-14 13:03:52 +00:00
Jan Kaluza
f0b35be067 Add BASE_MODULE_KOJI_ARCHES to override default Koji arches. 2018-08-14 13:18:56 +02:00
Ralph Bean
4279e947be Allow overriding the name and stream from scm repos.
If configured on the server side, disabled by default.
2018-08-13 14:08:36 -04:00
mprahl
d54422adeb Don't filter RPMs of reused components from a module that depends on itself
If a module has filters set and it buildrequires itself, issues occur
during component reuse. In that event, the filtered RPMs from the
previous module build will not be available in the buildroot because the NVRs
in the filters will match the RPMs from the reused component.

Co-authored-by: Jan Kaluza <jkaluza@redhat.com>
2018-08-13 11:13:40 -04:00
mprahl
f422b82ce7 Make _get_reusable_module a public method so it can be used elsewhere 2018-08-09 19:25:35 -04:00
Jan Kaluza
6d2e4bbffa Fix filters generation 2018-08-09 15:16:13 +02:00
mprahl
7bdba31439 Release v2.4.2 v2.4.2 2018-08-07 14:42:59 -04:00
mprahl
4c9c338298 Fix a log statement in the tag handler 2018-08-07 14:38:42 -04:00
mprahl
28acfd8a44 Construct the NVR for the KojiTagChange messages
Brew publishes the NVR on tag change messages, but Koji upstream does
not. This constructs the NVR based on the name, version, and release
in the messages.
2018-08-07 14:38:42 -04:00
mprahl
0f3f5f80ae Release v2.4.1 v2.4.1 2018-08-07 12:10:03 -04:00
mprahl
5197eb4912 Revert "Use the libmodulemd API properly when setting values on existing objects"
This reverts commit 8173040ea6. Since it didn't
provide any real benefit after talking with sgallagh, it seems like we'd better
off not introduce more risk to the next deployment.
2018-08-07 12:03:44 -04:00
mprahl
f08135352a Use the NVR instead of the component name when responding to a tag message
This addresses an issue when a module contains builds that have different
names in their NVR than the component name in MBS. This happens with
SCLs for instance. MBS wouldn't be able to find the component to mark
as tagged in the database since it was searching by the wrong name, so the
build would just stall. This uses the NVR now to find the correct build
in the database.
2018-08-07 11:54:28 -04:00
mprahl
411e459008 Use the actual name from the NVR instead of component.package when reusing components
The name from the NVR and the name from the component may be different based on
the macros being used as part of the build. SCLs are a great example of this.
2018-08-07 10:34:09 -04:00
mprahl
3969b2fb1e Expose the component batch in the API to help in future debugging 2018-08-07 10:33:56 -04:00
mprahl
042b677a01 Raise an exception if the build is not returned from Koji when checking if the buildroot is ready 2018-08-07 10:33:14 -04:00
mprahl
8a54b26fd7 Expose the NVR of component builds in the API to help future debugging 2018-08-07 10:33:14 -04:00
mprahl
a78c564073 Revert "Store the component's build ID and use that to identify the build when acting on a tag message"
This reverts commit 9bd16beeef.
2018-08-07 10:32:50 -04:00
mprahl
080eecf836 Fix the Docker image for running unit tests 2018-08-03 20:59:06 -04:00
mprahl
9bd16beeef Store the component's build ID and use that to identify the build when acting on a tag message
This resolves an issue where the component name is different than the
package being tagged due to a macro such as those used for SCLs.
2018-08-03 20:45:00 -04:00
mprahl
8c83959f58 Fix the COPR cleanup database migration for SQLite 2018-08-03 11:28:11 -04:00
mprahl
741b24c2b9 Remove the unused Jenkinsfile in favor of .cico-pr.pipeline 2018-07-26 15:36:16 -04:00
mprahl
a69e1561b4 Fix spacing in .cico-pr.pipeline 2018-07-26 15:36:01 -04:00
Brian Stinson
12355a72d4 fixup PR pipeline for quoting 2018-07-26 13:58:14 -05:00
Brian Stinson
86cde4171e remove unused syncfromduffynode function 2018-07-26 12:48:09 -05:00
Brian Stinson
d0fe40943a use the right creds 2018-07-26 12:41:24 -05:00
Brian Stinson
36758532ae add a PR pipeline 2018-07-26 12:37:33 -05:00