Commit graph

1842 commits

Author SHA1 Message Date
Adam Miller
3fd4275fe3 first pass at converting docs to sphinx-doc reStructured Text 2016-05-07 16:42:02 -04:00
Mike McLean
05330a2959 plugin conf files should be config(noreplace) 2016-05-07 16:33:53 -04:00
Mike McLean
3bb2c0ee98 package builder plugins 2016-05-07 16:33:53 -04:00
Xibo Ning
57ad5fee82 structural help, categorize commands into groups 2016-04-28 09:33:30 -04:00
Mike McLean
0f5c155784 use correct epoch when recycling nvr 2016-04-26 13:32:52 -04:00
Mike McLean
a5fc700ab2 update epoch when recycling a build 2016-04-26 13:32:51 -04:00
Mike McLean
e3c23f0bed reworking cli import a bit. support importing over a failed/canceled nvr 2016-04-26 13:32:51 -04:00
Mike McLean
498714a2cc honor --test in import-cg command 2016-04-21 11:59:34 -04:00
Mike McLean
780a2bb905 return buildinfo from cg_import 2016-04-21 11:11:11 -04:00
Dennis Gilmore
654434f66a set strict to true so dnf does not ignore broken deps
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-04-11 15:57:17 -04:00
Dennis Gilmore
0ea9bdec33 set install_weak_deps to 0 by default
yum ignores values it does not understand and dnf by default installs weak
dependecies, after talking to the FPC we should disable weka deps and
anything needed should be pulled in explicitly

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-04-11 15:57:17 -04:00
Dennis Gilmore
7390348a97 noarch arch handling fixups on armhfp tasks
armhfp is not a valid arch acording to autoconf. We were using arm
instead. nodejs has a bunch of packages with ExclusiveArch and are
hitting issues with using arm as the arch so switch to armv7hl
instead

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-04-11 12:30:38 -04:00
Mike McLean
e5f582312d catch pyssl import errors 2016-04-11 12:17:42 -04:00
Mike McLean
014e9aee4b acquire import lock in get_profile_module
see: https://pagure.io/koji/issue/58
2016-04-11 12:09:29 -04:00
Mike McLean
8821f98910 add unit test for using profiles in threads
see: https://pagure.io/koji/issue/58
2016-04-11 12:09:28 -04:00
Mike McLean
5bcfe7034a clean up the tar-gz patch a bit
remove the temp hardlink
don't really need format arg
hook tar-gz format in a bit
2016-04-11 12:05:03 -04:00
Mike McLean
704a895831 first stab at tar-gz image support 2016-04-11 12:05:03 -04:00
Ralph Bean
0a34a78430 Bugfix - st_complete needs to be defined earlier. 2016-04-08 14:46:52 -04:00
Ralph Bean
7fd256cde1
Add subdirectory for builder plugin configuration. 2016-04-08 12:15:07 -04:00
Ralph Bean
69e77dd693
Make the other makefile vars here explicit now. 2016-04-08 12:10:59 -04:00
Ralph Bean
43ba5a6071
Install both hub and builder plugins.
This is a different take at https://pagure.io/koji/pull-request/45

Instead of installing just the runroot builder plugin explicitly, here we
separate the plugins out into hub and builder plugins explicitly and install
each type in turn.
2016-04-08 10:05:28 -04:00
Ralph Bean
79721c4dc9 Run plugin callbacks when image builds finish.
Signed-off-by: Ralph Bean <rbean@redhat.com>
2016-04-07 19:19:13 -04:00
Mike Bonnet
c2d885fe87 standard_buildroot.id has been renamed to buildroot_id 2016-04-07 15:13:43 -04:00
Tomas Mlcoch
60cf1f86c9 Fix wait-repo to not wait a minute if --timeout=0 is specified
Wait-repo had time.sleep(60) call before a check for timeout
expiration was done. This patch moves the check before
the sleep() call.

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2016-04-05 15:39:01 +02:00
Mike McLean
6746ce5c13 use full path to squashfs-root 2016-03-30 12:18:56 -04:00
Mike McLean
e7eb1547cc use rhel-friendly path for dd 2016-03-30 12:18:56 -04:00
Fabian Deutsch
4729adc5f9 Add support for liveimg-squashfs
This patch adds support to build squashfs images which are compatible to
anaconda's liveimg directive and dracuts liveimg feature.
The feature is pretty simple, as it just reuses the raw diskimage, and
strips the disklabel, to retrieve the plain filesystem image.

Two open issues:
- Stripping the disk label is a pretty hack
- Database schema upgrade is missing

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2016-03-30 12:18:56 -04:00
Mike McLean
2a292308de preserve upload blocksize default in api 2016-03-24 15:59:16 -04:00
Mike McLean
f639899d2f upload-blocksize doesn't need to be a cli opt 2016-03-24 15:48:21 -04:00
Mike McLean
3158c8d526 fix merge issue 2016-03-24 15:48:07 -04:00
Mike McLean
acbe00ff1b Merge branch 'upload_blocksize'
Conflicted with the recent profiles changes. Option defaults now live in koji/__init__.py
2016-03-24 15:06:41 -04:00
Xibo Ning
2f507ec69a make the upload block size configurable 2016-03-24 14:52:27 -04:00
Mike McLean
88e7d0c1e1 use urlgrab instead of urlopen in download-build 2016-03-21 17:15:05 -04:00
Peter Robinson
d60e8e563f Add packages to a koji package group as mandatory not default
All the packages in groups that koji uses to build srpms/rpms/live images and other outputs are mandatory but are currently specified as default. Yum historically didn't make a major diffentiation between the two and failed build if there was issues, dnf treats this differently and only classifies mandatory as the only option that would fail the install. The packages in the group should be mandatory because we really do want to ensure they're there. This fixes dnf, but should have no impact on the yum use case.

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2016-03-21 16:16:18 -04:00
Dennis Gilmore
17376ced20 Enable keepcache in koji dnf conf
Supermin needs access to the pristine RPMs from which the buildroot
is installed, in order to grab the /etc (configuration) files into
the libguestfs appliance (the binaries etc are not baked into the
appliance for obvious security/maintainability reasons).

For years we got these from the yum cache, but problem: dnf defaults
to keepcache=0 and so doesn't save these RPMs.

Therefore enable keepcache like yum.

From https://fedorahosted.org/rel-eng/ticket/6274

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-03-21 16:13:16 -04:00
Dennis Gilmore
681a995c32 set the arch in the tdl to be compatibile with qemu
as 32 bit arm can run hardware or software floating point code,
we have a bunch of arches that are not exactly real to
differenciate and keep installs sane. qemu only understands
armv7l, so we need to always use armv7l for virt on 32 bit arm

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-03-21 16:05:49 -04:00
Tomas Mlcoch
3d205c48c6 Fix handling of --arch param when a target is specified
Without this patch mock-config ignores --arch option
and generates invalid mock config files which contain
incorrect statements like:

config_optstarget_arch? = None config_optsyum.conf? = '..SNIP..baseurl=URL_WITH_ARCH_NONE..SNIP..'

Resolves:
* https://fedorahosted.org/koji/ticket/301
* https://bugzilla.redhat.com/show_bug.cgi?id=1248368
* https://bugzilla.redhat.com/show_bug.cgi?id=1161610

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2016-03-21 15:56:34 -04:00
Tomas Mlcoch
86876a1bc9 Support for koji profiles.
This patch is dmach's patch [1] refactored according to mikem's comments [2].

[1] https://lists.fedoraproject.org/pipermail/buildsys/2015-August/004857.html
[2] https://lists.fedoraproject.org/pipermail/buildsys/2015-October/004900.html

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2016-03-21 15:45:26 -04:00
Tomas Mlcoch
d20e62b76e Move config processing from CLI to koji.read_config()
This patch is dmach's patch [1] refactored according to mikem's comments [2].

[1] https://lists.fedoraproject.org/pipermail/buildsys/2015-August/004858.html
[2] https://lists.fedoraproject.org/pipermail/buildsys/2015-October/004900.html

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2016-03-21 15:45:26 -04:00
Dan Horák
9ecc283d4e koji-shadow: use /var/tmp for work files 2016-03-21 15:24:19 -04:00
Dan Horák
3d06f7a805 koji-shadow: use workpath consistently 2016-03-21 15:24:19 -04:00
Dan Horák
880a57730f copy extra information for a tag cloned from primary koji 2016-03-21 15:18:01 -04:00
Dan Horák
80186d70ef koji-shadow: mark builds without buildroot info as noroot
Due bugs in used tools mainline koji instance could store empty buildroot infos for builds.
2016-03-21 15:09:58 -04:00
Mike Bonnet
7aef1232d8 remove use of dict comprehensions to retain python 2.6 support
Dict comprehensions (PEP-274) were added to python 2.7+. The patch that added the --mine
option to list-tasks made use of a dict comprehension, which broke python 2.6 support.
This patch restores the older dict() + list comprehension approach, which restores
support for python 2.6.
2016-03-18 16:47:33 -04:00
Ralph Bean
05575f7669 Add tests for koji.Enum. 2016-03-15 11:29:41 -04:00
Ralph Bean
8d4f5e04ed Remove Enum.getvalue, since it is unused. 2016-03-15 11:29:41 -04:00
Ralph Bean
4383033362 Add nocover to some blocks we won't test. 2016-03-15 11:29:41 -04:00
Ralph Bean
01bb6e63fa Test krbv failing when krbV is not installed. 2016-03-15 11:29:41 -04:00
Ralph Bean
f475b92802 Coverage tracking for the test suite.
If you issue `make test`, it will run the tests and print out a coverage
reporting indicating what lines of code were covered by the tests and which
were not.  This will (hopefully) be useful more over time as we start to write
more tests.
2016-03-15 11:29:41 -04:00
Ralph Bean
97e85a17b1 Add rough notes on koji.next goals/plans. 2016-03-14 16:54:34 -04:00