Commit graph

2912 commits

Author SHA1 Message Date
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
Mike McLean
a223f29d03 PR#546: fix test_krbv_disabled unit test
Merges #546
https://pagure.io/koji/pull-request/546
2017-08-08 11:42:47 -04:00
Mike McLean
c2cb0f1184 fix test_krbv_disabled unit test 2017-08-08 11:39:40 -04:00
Mike McLean
ffdb5d6790 PR#518: Error out if krbV is unavailable and gssapi did not work
Merges #518
https://pagure.io/koji/pull-request/518
2017-08-08 11:17:21 -04:00
Patrick Uiterwijk
56b023b158 Error out if krbV is unavailable and gssapi did not work
In python3, krbV is unavailable, which means that we should not stay
silent if gssapi login failed.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-08-08 11:09:52 -04:00
Mike McLean
4a05467c63 PR#535: datetime compatibility for plugins
Merges #535
https://pagure.io/koji/pull-request/535
2017-08-07 14:36:22 -04:00
Mike McLean
0c8d4c8f07 implement caching in _fix_cb_args 2017-08-07 12:41:40 -04:00
Mike McLean
fe7c0b4052 unit test for encode_datetime 2017-08-07 12:41:40 -04:00
Mike McLean
ab928e6196 add unit test for convert_datetime decorator 2017-08-07 12:41:40 -04:00
Mike McLean
1df193ea2b use datetime compatibility for messagebug and protonmsg plugins 2017-08-07 12:41:40 -04:00
Mike McLean
842754c2d3 datetime compatibility option for callbacks 2017-08-07 12:41:40 -04:00
Mike McLean
658953af54 PR#524: Add support for debugsource
Merges #524
https://pagure.io/koji/pull-request/524
2017-08-03 12:19:09 -04:00
Igor Gnatenko
eea35fa5a6 make is_debuginfo() one-line
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-08-03 12:14:50 -04:00
Igor Gnatenko
785e23b2c0 use if 'x' in s instead of str.find()
It's more readable.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-08-03 12:14:50 -04:00
Igor Gnatenko
7a3bf2791e handle debugsource same way as debuginfo packages
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-08-03 12:14:50 -04:00
Mike McLean
9c4348e55b PR#528: allow some missing path sections in runroot config
Merges #528
https://pagure.io/koji/pull-request/528

Fixes #527
https://pagure.io/koji/issue/527
2017-08-01 08:00:17 -04:00
Mike McLean
e1bc3664ad unit test: nonsequential path numbers in runroot config 2017-07-31 12:53:03 -04:00
Tomas Kopecek
032e2aaddd allow some missing path sections in runroot config
Fixes: https://pagure.io/koji/issue/527

Before path sections were expected to have zero-based numbering. If some
item was missing, parsing ended there.

Now we are more benevolent and we pick all path\d+ sections and sort
them by ordering number.
2017-07-31 12:53:03 -04:00
Mike McLean
675e854ac0 PR#530: Spelling fixes
Merges #530
https://pagure.io/koji/pull-request/530
2017-07-31 10:32:57 -04:00
Ville Skyttä
10bc242c32 Spelling fixes 2017-07-30 12:49:19 +03:00
Mike McLean
8ac8167570 PR#506: Track artifacts coming from koji itself
Merges #506
https://pagure.io/koji/pull-request/506
2017-07-26 10:45:51 -04:00
Mike McLean
b405701b53 hub: rework match_kojifile() and add a unit test 2017-07-25 16:45:25 -04:00
Tomas Kopecek
1f91bdfeeb check also filename/size 2017-07-25 12:37:46 -04:00
Tomas Kopecek
64f2467fd0 kojifile component type 2017-07-25 12:37:46 -04:00
Mike McLean
05c266b7d1 PR#499: runroot: use /builddir/runroot.log instead of /tmp/runroot.log
Merges #499
https://pagure.io/koji/pull-request/499
2017-07-25 12:36:14 -04:00
Mike McLean
14ec03f596 runroot: use /builddir/runroot.log instead of /tmp/runroot.log
With --new-chroot, /tmp is set up as a tmpfs mount, which does not persist,
so using /builddir instead.

Related: #482  (but not a fix)
https://pagure.io/koji/issue/482
2017-07-25 12:30:32 -04:00
Mike McLean
a9dc698774 PR#509: CLI block-group command
Merges #509
https://pagure.io/koji/pull-request/509

Fixes #462
https://pagure.io/koji/issue/462
2017-07-25 12:28:07 -04:00
Tomas Kopecek
c1257a6a22 simplify SQL test comparison 2017-07-25 12:14:26 -04:00
Tomas Kopecek
6c68b6ab34 CLI block-group command
Relates: https://pagure.io/koji/issue/462
2017-07-25 12:14:26 -04:00
Mike McLean
3fe2d4b1a5 PR#514: Fix resubmit
Merges #514
https://pagure.io/koji/pull-request/514
2017-07-25 11:26:32 -04:00
Patrick Uiterwijk
21523a57fd Fix the poll_interval access in handle_resubmit
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-07-25 10:45:13 -04:00
Patrick Uiterwijk
b511c6599f Fix the call to _printTaskInfo in handle_resubmit
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-07-25 10:45:13 -04:00
Mike McLean
76d6082742 PR#521: update links in README.md
Merges #521
https://pagure.io/koji/pull-request/521
2017-07-25 10:42:52 -04:00
Mike McLean
7e225da19c update links in README.md 2017-07-24 09:45:39 -04:00
Mike McLean
856c7a420c PR#502: download-build: suppress output on quiet and add --noprogress
Merges #502
https://pagure.io/koji/pull-request/502
2017-07-11 10:34:53 -04:00
Yanko Kaneti
addf7cdd01 download-build: suppress output on quiet and add --noprogress 2017-07-11 10:29:26 -04:00
Mike McLean
65910bbf9b PR#511: unit tests for delete_tag() [Open]
Merges #511
https://pagure.io/koji/pull-request/511
2017-07-11 10:19:29 -04:00
Mike McLean
6f987daf5a unit tests for delete_tag() 2017-07-07 12:21:22 -04:00
Mike McLean
26f5f02741 PR#484 fix NoneType TypeError in deleteTag
Merges #484
https://pagure.io/koji/pull-request/484

Fixes #483
https://pagure.io/koji/issue/483
2017-07-06 12:17:24 -04:00
Yuming Zhu
1be3a71f84 fix NoneType TypeError in deleteTag 2017-07-06 12:15:17 -04:00
Mike McLean
801e1662f4 PR#490 getUserPerms should throw GenericError when no user found
Merges #490
https://pagure.io/koji/pull-request/490

Fixes #486
https://pagure.io/koji/issue/486
2017-07-06 12:11:46 -04:00
Yuming Zhu
7b73f4b0bb explain new behavior in docstring of getUserPerms 2017-07-06 12:06:53 -04:00
Yuming Zhu
e871192f40 allow getUserPerm accepting None arg 2017-07-06 12:06:53 -04:00
Yuming Zhu
2838f7fd9e getUserPerms should throw GenericError when no user found 2017-07-06 12:06:53 -04:00
Mike McLean
3c7aeeaef3 PR#497 remove deprecated buildFromCVS call
Merges #497
https://pagure.io/koji/pull-request/497

Fixes #468
https://pagure.io/koji/issue/468
2017-07-06 11:30:17 -04:00
Tomas Kopecek
2edfccc951 remove deprecated buildFromCVS call
Fixes: https://pagure.io/koji/issue/468
2017-07-06 11:30:04 -04:00
Mike McLean
be6e8215a3 PR#503 Remove deprecated compat_mode from runroot plugin
Merges #503
https://pagure.io/koji/pull-request/503

Fixes #501
https://pagure.io/koji/issue/501
2017-07-06 11:28:38 -04:00
Tomas Kopecek
a1551a78be Remove deprecated compat_mode from runroot plugin
Fixes: https://pagure.io/koji/issue/501
2017-07-06 11:25:46 -04:00