1902 Commits

Author SHA1 Message Date
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
mprahl
8adbd2a3d5 Stop installing missing deps from PyPi in the Docker image for the unit tests 2018-07-17 11:41:09 -04:00
mprahl
8173040ea6 Use the libmodulemd API properly when setting values on existing objects
MBS has been using the libmodulemd API incorrectly by assuming that
methods like `get_rpm_components` return the actual object in memory
and not a copy. This has been true but wasn't something sgallagh
intended. We found this out after he had me test his new version of
libmodulemd. This PR removes those assumptions.
2018-07-17 09:00:42 -04:00
mprahl
1ec9849960 Fix the unit tests for TestMBSModule 2018-07-16 17:57:08 -04:00
mprahl
d45f5dd8c7 Release v2.4.0 v2.4.0 2018-07-11 10:10:40 -04:00
Martin Curlej
dfe7660519 Removed PDC dependency from MBS and replaced it with MBS prod instance.
Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Removed pdc from comments.

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Adding missing files.

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Updated PR according to review.

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Local modules builds now

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Removed copr from config

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Fixed bugs

Signed-off-by: Martin Curlej <mcurlej@redhat.com>
2018-07-04 10:13:18 +02:00
Matt Prahl
e45863e8f4 Merge #967 Define %{_module_context} and %{disttag} 2018-06-29 15:28:20 +00:00
Mikolaj Izdebski
0d29633da9 Make repo_include_all setting configurable in xmd
Previously MBS configured all Koji build tags with
repo_include_all=True extra option.  But for some modules it was
desired to be able to have tags with repo_include_all=False.

Fixes #957
2018-06-29 17:06:58 +02:00
Petr Šabata
323880999b Define %{_module_context} and %{disttag}
No reason to hide module context from the consumers, plus it's useful to
keep it in the DISTTAG tag (not to be confused with the %{dist} tag) for
tracking.

The %{disttag} feature will do nothing until RPM supports it.  This is
planned in 4.14.2.

See https://bugzilla.redhat.com/show_bug.cgi?id=1596192.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2018-06-29 16:36:01 +02:00
mprahl
36a9026ca8 Remove references to COPR 2018-06-28 10:00:06 -04:00
mprahl
2a5c56a71a Add missing entries to the change log 2018-06-27 13:44:29 -04:00
Ralph Bean
f26db16e61 Release v2.3.2 v2.3.2 2018-06-27 10:49:03 -04:00
Ralph Bean
461014a7bb Release v2.3.1 2018-06-27 10:46:57 -04:00
mprahl
eb2643703f Fix a syntax error that caused the Koji session to not be returned when the Koji CG is running 2018-06-27 10:44:41 -04:00
Matt Prahl
6e075951b8 Merge #962 Support the modulemd buildopts.rpms.whitelist option 2018-06-27 11:42:49 +00:00
mprahl
ddf248f837 Fix the Docker volume mount for running the tests using Jenkins 2018-06-27 07:33:27 -04:00
mprahl
74e4c99984 Support the modulemd buildopts.rpms.whitelist option 2018-06-27 07:05:06 -04:00
Martin Curlej
0aa9f014ce Added search for modules by binary rpm.
Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Updated PR according to review.

Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Searching by multiple koji tags + tests

Signed-off-by: Martin Curlej <mcurlej@redhat.com>
2018-06-26 15:52:37 +02:00
Ralph Bean
6981449853 Fix local builds.
I discovered that local builds have been broken by recent (good) changes in
dnf.  At the end of every batch, we regenerate the local repo with createrepo
and we also call modifyrepo to include the modulemd file as we progress.  This
was added in #467.

What we really want, is for the modulemd file to be present at the *end* of the
build.

Recently, dnf started respecting the modulemd file natively, such that builds
we built in batch0 would not show up in batch1.  They would be present in the
repo, but they would be marked as belonging to a module which was not enabled,
and so could not be pulled in.  Every module build would fail because
module-srpm-macros was in a disabled module (the module being built at the
time).

This change makes it so that the module metadata is only added to the repo at
the very end of the build.  I moved it into a `finalize` method on the builder
which the copr builder was using, and for symmetry's sake I moved the koji
content generator code to the same method on that builder.

There was a circular import issue to solve between the koji module builder and
the koji content generator modules that generated a larger diff, but is mostly
cosmetic and mock changes.
2018-06-25 17:05:22 -04:00
mprahl
bed2107d07 Release v2.3.0 v2.3.0 2018-06-18 10:45:23 -04:00
Matt Prahl
ba21971c5e Merge #956 Add "short" param to README + other minor fixes 2018-06-18 13:27:51 +00:00
Mikolaj Izdebski
31d92b1484 Fix MSE for self-buildrequiring modules
We can't rely on matching name-stream to distinguish which module is
currently being built as modules can buildrequire older versions of
the same module-stream.

Fixes #954
2018-06-18 14:25:44 +02:00
Mikolaj Izdebski
a22f663d4a Add reproducer for #954 2018-06-18 14:17:13 +02:00
Filip Valder
23a9eb8e70 Add param to README + other minor fixes 2018-06-18 10:01:40 +02:00
Matt Prahl
5e12152acd Merge #952 Get buildrequired modules for koji tag inheritance using NSVC, not just NSV. 2018-06-15 00:38:46 +00:00
Matt Prahl
764c467c1d Merge #950 New: Support querying of modules/components with multiple state value filtering 2018-06-15 00:36:33 +00:00
mprahl
83d7d96141 Use a volume when running the unit tests instead of copying the source in the image 2018-06-14 08:54:27 -04:00
Jan Kaluza
ddbeb0aca7 Get buildrequired modules for koji tag inheritance using NSVC, not just NSV. 2018-06-14 11:37:52 +02:00
Filip Valder
f1fc7ed467 New: Support querying of modules/components with multiple state value filtering 2018-06-13 09:42:38 +02:00
Martin Curlej
e2e804b1d6 Added the ability to search mbs builds by the whole NSVC string.
Signed-off-by: Martin Curlej <mcurlej@redhat.com>

Found about the magical properties of zip.

Signed-off-by: Martin Curlej <mcurlej@redhat.com>
2018-06-13 09:30:52 +02:00
mprahl
29130e3da5 Release v2.2.4 v2.2.4 2018-06-01 08:34:22 -04:00