Commit graph

575 commits

Author SHA1 Message Date
Tomas Kopecek
169aed66c5 make py2 files parseable with py3 2018-05-03 15:56:56 -04:00
Mike McLean
6ea252ef9a whitespace/lint cleanup 2018-05-03 15:01:23 -04:00
Yuming Zhu
6a91a3ba6b change default value of oz_install_timeout to 0 2018-05-03 15:00:34 -04:00
Yuming Zhu
38f3d919af kojid: make install timeout of imagefactory conf configurable 2018-05-03 15:00:34 -04:00
Tomas Kopecek
5882904aea make timestamp logs configurable 2018-05-03 14:52:25 -04:00
Tomas Kopecek
78ba6ef12e split timestamp log tu multiple files 2018-05-03 14:52:24 -04:00
Tomas Kopecek
35b4d04561 add debug timestamp log for logs
Fixes: https://pagure.io/koji/issue/776
2018-05-03 14:52:24 -04:00
Tomas Kopecek
119e23d315 remove duplicate ignore 2018-04-27 11:53:37 -04:00
Tomas Kopecek
72d619929e use 'ignore' in hash computation 2018-04-27 11:53:37 -04:00
Tomas Kopecek
54e52e469e move rpmdiff to koji lib 2018-04-27 11:53:37 -04:00
Tomas Kopecek
fa9183a18a cache rpmdiff results 2018-04-27 11:53:37 -04:00
Tomas Kopecek
506f114e89 mavenBuild uses wrong session
Fixes: https://pagure.io/koji/issue/859
2018-04-03 16:15:49 -04:00
Mike McLean
4c07073403 simplify check for krbV module 2018-04-02 16:38:27 -04:00
Mike McLean
91b306e108 Avoid failing at import time if krbV module is missing
Several parts of Koji already handled this absence gracefully. This change
extends that behavior to all places where krbV is imported.
2018-04-02 16:38:27 -04:00
Tomas Kopecek
2eff45f763 Drop pre-2.6 compat function koji.util._relpath
Fixes: https://pagure.io/koji/issue/818
2018-03-08 10:23:44 -05:00
Mike McLean
f4f26b0571 add link to issue 2018-03-06 12:20:59 -05:00
Adam Williamson
72204b4f7f Update the volume ID substitutions list and application
Some newer subvariants / loadouts, and 'Rawhide' for some
reason, were missing from the substitution list. This updates
it, alphabetizes it, adjusts the indentation to match how it
is in pungi-fedora for ease of comparison, and also tweaks the
way the list is applied to match
https://pagure.io/pungi/pull-request/857 , the correct way to
ensure longer substitutions are applied before shorter ones.

Note 'Alpha' and 'TC' are removed because we don't do Alphas or
TCs any more.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-06 12:20:59 -05:00
Tomas Kopecek
1ad0a569b5 handle None in place of string in buildNotification
Fixes: https://pagure.io/koji/issue/724
2018-03-01 10:19:18 -05:00
Mike McLean
113ddea6f0 internal_dev_setup option for BuildRoot class 2018-02-28 08:19:29 -05:00
Yuming Zhu
8da39606b8 rename parameter/default value - tmpdir to chroot_tmpdir 2018-01-16 15:35:16 -05:00
Yuming Zhu
d30f097301 builder: make temp dir be configured 2018-01-16 15:35:16 -05:00
Tomas Kopecek
8f22069fda drop old ssl support + compatrequests
Koji now uses ssl via python-requests

 - use_old_ssl option is removed
 - koji.ssl library removed
 - compatrequests dropped

Related: https://pagure.io/koji/issue/467
2018-01-03 12:47:03 +01:00
Tomas Kopecek
b852381a3a remove simplejson imports
Fixes: https://pagure.io/koji/issue/727
2017-12-20 12:42:31 -05:00
Mike McLean
61c97effa3 fix buildroot tmpdir refs in ApplianceTask 2017-12-11 12:54:59 -05:00
Mike McLean
e5fdcb45dd avoid double slash in path 2017-12-11 12:54:59 -05:00
Tomas Kopecek
c6c34361b1 don't use /tmp in chroot
Related: https://pagure.io/koji/issue/569
2017-12-11 12:54:59 -05:00
Mike McLean
fab1cc4245 don't fail if child task doesn't provide source
While the current code will always provide it, the older code did
not. When a Koji system is updated to this version, we could have
a restarted build task read the result of a previously finished
buildSRPMFromSCM task that ran with the old code.
2017-12-11 12:50:46 -05:00
Mike McLean
15709e019c adjust how we store the extra source data 2017-12-11 12:50:46 -05:00
Tomas Kopecek
3bad1f9f64 fix race condition and missing values 2017-12-11 12:50:46 -05:00
Tomas Kopecek
4a96ee5474 store git commit hash to build.source
Git HEAD commit hash is now stored in build.info field. this field is
currently used by content generators, but not by other builds. Also
original checked out url is stored in build.extra.url field.

Fixes: https://pagure.io/koji/issue/550
2017-12-11 12:50:46 -05:00
Lubomír Sedlář
bcac8d49b6 Create repo without --deltas if no old package dir is set
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2017-11-01 13:18:13 +01:00
Tomas Kopecek
09651a9a8f Explicit tuple in list constructor 2017-10-31 16:18:04 +01:00
Mike McLean
900767cf4b add krb_canon_host option to various clients 2017-10-27 15:32:25 -04:00
Mike McLean
6bdd8fe006 avoid using "fail_fast" as a named parameter 2017-09-19 11:40:39 -04:00
Tomas Kopecek
f22dcaf563 override build_arch_can_fail settings
Fixes: https://pagure.io/koji/issue/413
2017-09-18 16:56:22 -04:00
Mike McLean
1c6051a78c fix scratch ref for scm callback 2017-09-13 14:10:28 -04:00
Yuming Zhu
61b2aee390 add build_tag argument in postSCMCheckout callback 2017-09-13 16:10:46 +08:00
Mike McLean
525bc5e7a8 expose graceful reload in kojid service config and init script 2017-08-22 15:06:57 -04:00
Mike McLean
83e47bf42a update docs links in service configs 2017-08-08 12:18:04 -04:00
John Florian
fa1e69a6ef Change - docstrings for PEP257 compliance
Neither of these methods started with a one-line summary.
2017-08-08 11:44:18 -04:00
John Florian
7cd5d6c4ed Refactor - rename method BuildRoot.relpath for clarity
The semantics of "relative" here are atypical of common expectations.
While the method does return a "related" path, it's still absolute.
Hopefully this new name is less confusing.
2017-08-08 11:44:18 -04:00
John Florian
0aa10b925b Refactor - leverage koji.util.relpath()
Per mikem's request:
https://pagure.io/koji/pull-request/233#comment-22971
2017-08-08 11:44:18 -04:00
John Florian
3e2a737e32 New - custom lorax templates for livemedia tasks
This adds two new options (--lorax_url and --lorax_dir) to the Koji CLI
so that it's now possible to use custom lorax templates for livemedia
tasks.  The custom templates must come from a supported, allowed SCM,
which makes it trivial to inject the whole directory structure of
template files that lorax expects.

In addition to the CLI changes, kojid's LiveMediaTask handler recognizes
these new options and acts accordingly by extending the
livemedia-creator call via its --lorax-templates option.
2017-08-08 11:44:18 -04:00
John Florian
86fa50077d New - kojid.BuildRoot.relpath()
This new method returns an absolute path within the chroot relative the
BuildRoot's chroot.
2017-08-08 11:44:18 -04:00
Ville Skyttä
10bc242c32 Spelling fixes 2017-07-30 12:49:19 +03:00
Tomas Kopecek
ffb88b93ca per-tag configuration of mocks' --new-chroot 2017-06-23 17:21:14 -04:00
Yuming Zhu
781124b52b add scratch param in preSCMCheckout 2017-06-20 09:32:19 -04:00
Yuming Zhu
efc4c9bcff change run_plugin to run_callbacks and remove the modification for kojikamid.py 2017-06-20 09:32:19 -04:00
Yuming Zhu
65799703e2 push build_tag, session, scratch into callbacks 2017-06-20 09:32:19 -04:00
Yuming Zhu
89e82d6020 only path taskinfo, scminfo, [srcdir] to plugin 2017-06-20 09:32:19 -04:00