1879 Commits

Author SHA1 Message Date
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
Owen W. Taylor
827546dc9a module-build-macros: Use /etc instead of %_sysconfdir
Commit 42aef7d5d2 moved the macros installed by module-build-macros
from %_rpmconfdir (which is unaffected by %_prefix) to %_sysconfdir/rpm
(which follows %_prefix). This interacts badly with the Flatpak module
macros which change %_prefix to /app - when flatpak-rpm-macros is
in the buildroot while module-build-macros is built, module-build-macros
installs its macros to /app and they aren't found when building the
rest of the packages in the module.

Hardcoding /etc rather than using %_sysconfdir fixes this.
2018-05-31 17:52:04 -04:00
mprahl
afaaae2894 Release v2.2.3 v2.2.3 2018-05-31 14:44:12 -04:00
mprahl
2e6589ae41 Check the libmodulemd version instead of modulemd 2018-05-31 14:32:06 -04:00
mprahl
6e26e24ee1 Release v2.2.2 v2.2.2 2018-05-30 15:58:32 -04:00
Owen W. Taylor
6fd3a2586d PDCResolver: always look for local modules.
Modules that might have been added to a Mock build with --add-local-build
were only checked in one place, but there were two other places where data
was loaded directly from the PDC.
2018-05-30 15:47:14 -04:00
Owen W. Taylor
19bf94f0ea Load 'context' for local builds
'context' needed to be stored into the in-memory database and then
propagated for builds added to a MockModuleBuild with --add-local-build.
2018-05-30 15:47:14 -04:00
Owen W. Taylor
ddee4f840b MockModuleBuilder: add artifacts to artifacts not components
The built RPM artifacts were being added to the components list (the
RPMs to build) instead of the proper artifacts section. Also, they
need to be in NEVRA format, so use 'rpm -qf' to query the epochs from
the built artifacts.
2018-05-30 15:47:14 -04:00
Owen W. Taylor
5093a94f20 Add epoch to RPM artifacts in testing modulemd files
RPM artifacts in modulemd files are required to be in name-epoch:version-release.arch
format - this is enforced since libmodulemd-1.4.
2018-05-30 12:33:31 -04:00
mprahl
56a4772299 Release v2.2.1 v2.2.1 2018-05-29 10:13:52 -04:00
mprahl
5930dd0b3f Set the modulemd's context as the context in the DB to correct the current values 2018-05-29 10:06:53 -04:00
mprahl
574c3eae92 Query by the context directly 2018-05-21 13:33:39 -04:00
mprahl
a4d97f66b0 Remove "artifacts" in modulemd from local build test modulemds that caused libmodulemd to choke 2018-05-21 12:22:59 -04:00
mprahl
0a9119f720 Use the latest libmodulemd in Vagrant 2018-05-21 12:21:29 -04:00
mprahl
aa98eb1cc2 Don't determine the buildroot_groups when cleaning up stale module builds 2018-05-14 13:55:56 -04:00
mprahl
892e5c9fca Fix unit tests 2018-05-11 13:56:07 -04:00
mprahl
0118401e9e Version 2.2.0 v2.2.0 2018-05-10 11:57:48 -04:00
mprahl
b0728b1080 Make the published messages smaller 2018-05-10 11:49:02 -04:00
mprahl
00e46c205b Show siblings and component_builds in the standard modules API 2018-05-10 11:48:00 -04:00
Ralph Bean
64064c544b Version 2.1.1 v2.1.1 2018-05-08 15:57:51 -04:00
Ralph Bean
95eead27f3 Merge #934 Log this exception. 2018-05-08 19:55:02 +00:00
Ralph Bean
12fcd91bcd Log this exception.
If libmodulemd returns some garbage, it will be nice to know what it is.
2018-05-08 15:49:51 -04:00
Matt Prahl
3a4fd53e7a Merge #930 Fallback to the old Koji tag format for the target name when the tag name is too long 2018-05-08 19:48:56 +00:00
Matt Prahl
9075f600fa Merge #932 Drop these two deps. 2018-05-08 19:47:46 +00:00