Commit graph

2934 commits

Author SHA1 Message Date
Tomas Kopecek
bdd4d41285 incorrect parameter for error message
Related: https://pagure.io/koji/issue/543
2017-08-08 12:30:55 -04:00
Mike McLean
c3f6f4f0a1 PR#510: cli: change download-task to regular curl download
Merges #510
https://pagure.io/koji/pull-request/510

Fixes #455
https://pagure.io/koji/issue/455
2017-08-08 12:28:06 -04:00
Yuming Zhu
ba087236dd cli: using PROGRESSFUNCTION before libcurl 7.32.0 in download_file 2017-08-08 12:26:22 -04:00
Yuming Zhu
5df1e3e6e6 cli: do not print extra blank line when noprogress passed 2017-08-08 12:26:22 -04:00
Yuming Zhu
26bd419054 cli: add noprogress argument for download_file in download_build 2017-08-08 12:26:22 -04:00
Yuming Zhu
c730f2b3aa fix cli unittest: test_download_task.py for py3 2017-08-08 12:26:22 -04:00
Yuming Zhu
dc0e0303f2 cli: unittest for download_file 2017-08-08 12:26:22 -04:00
Yuming Zhu
2d7ceb2992 cli: add c.close() in download_file and move inner function outside 2017-08-08 12:26:22 -04:00
Yuming Zhu
25c36a8b56 unittest for cli:download-task 2017-08-08 12:26:22 -04:00
Yuming Zhu
1958a2a314 cli: remove unnecessary continue in download_task 2017-08-08 12:26:22 -04:00
Yuming Zhu
1e77866b35 cli: change download-task to regular curl download
also make 301/302 redirect acceptable by download-build & download-task
2017-08-08 12:26:22 -04:00
Mike McLean
b84b4fa213 PR#536: fix docs links, plus minor docs cleanup
Merges #536
https://pagure.io/koji/pull-request/536
2017-08-08 12:18:59 -04:00
Mike McLean
fcdd342a1d minor docs cleanup 2017-08-08 12:18:04 -04:00
Mike McLean
83e47bf42a update docs links in service configs 2017-08-08 12:18:04 -04:00
Mike McLean
9bda5c6bc9 PR#539: runroot: friendlier parsing of path_subs config
Merges #539
https://pagure.io/koji/pull-request/539
2017-08-08 12:17:12 -04:00
Mike McLean
2347aee632 runroot: friendlier parsing of path_subs config 2017-08-08 12:15:42 -04:00
Mike McLean
29f286a53c PR#542: check RPMTAG_LONGSIZE is RPMTAG_SIZE is null
Merges #542
https://pagure.io/koji/pull-request/542
2017-08-08 12:14:02 -04:00
Mike McLean
778d466387 unit test: check get_header_fields() with large size 2017-08-08 12:13:06 -04:00
Tomas Kopecek
6930880480 check RPMTAG_LONGSIZE is RPMTAG_SIZE is null
Related: https://pagure.io/koji/issue/541
2017-08-08 12:13:06 -04:00
Mike McLean
e7c20f3619 PR#419: Koji support for custom Lorax templates in LiveMedia tasks
Merges #419
https://pagure.io/koji/pull-request/419
2017-08-08 11:46:37 -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
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