Commit graph

5362 commits

Author SHA1 Message Date
Ken Dreyer
6ceff14946 doc: section title formatting for hub policy example
Add section title formatting for the complex hub policy example
2020-07-23 10:46:10 +02:00
Tomas Kopecek
86bd0ae845 PR#2377: hub: document listBType return value when query matches no entries
Merges #2377
https://pagure.io/koji/pull-request/2377
2020-07-23 10:16:08 +02:00
Ken Dreyer
07bc3a82d6 hub: document listBType return value when query matches no entries
When a user calls listBType with a query parameter and that query
matches no existing btypes, the listBType method returns an empty list.
Add this information to the listBType docstring.
2020-07-23 10:16:01 +02:00
Mike McLean
44cc51c846 PR#2123: Pass buildroot to preSCMCheckout and postSCMCheckout where applicable.
Merges #2123
https://pagure.io/koji/pull-request/2123

Fixes: #2122
https://pagure.io/koji/issue/2122
RFE: pass the broot object into the postSCMCheckout callback in i.e. buildSRPMfromSCM task
2020-07-22 11:38:05 -04:00
Adam Saleh
066c651aab Pass buildroot to preSCMCheckout and postSCMCheckout where applicable.
This includes BuildMavenTask, WrapperRPMTask, ImageTask and BuildSRPMfromRPMTask.

Signed-off-by: Adam Saleh <asaleh@redhat.com>
2020-07-22 11:38:00 -04:00
Mike McLean
b88d87e469 PR#2257: BuildSRPMFromSCMTask: Support auto-selecting a matching specfile name
Merges #2257
https://pagure.io/koji/pull-request/2257

Related: #1905
https://pagure.io/koji/issue/1905
RFE: Add support for spawning multiple builds from one buildSRPMFromSCM task
2020-07-22 10:33:38 -04:00
Tomas Kopecek
8cd79f48e7 builder: py2 fixes
Relates: https://pagure.io/koji/issue/1905
2020-07-22 10:33:33 -04:00
Stephen Gallagher
47696c8895 BuildSRPMFromSCMTask: Support auto-selecting a matching specfile name
There are cases where having two files with the .spec suffix in the
same dist-git repository makes sense, such as maintaining a common
dist-git structure for different distributions where the package
name might be different.

This patch would allow the build-system to use the matching spec
file name for the current SCM checkout path if it exists.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2020-07-22 10:33:33 -04:00
Mike McLean
2d27453ac1 PR#2387: cli: list-tags: fall back to old behavior on ParameterError
Merges #2387
https://pagure.io/koji/pull-request/2387

Fixes: #2379
https://pagure.io/koji/issue/2379
list-tags fails against older hub
2020-07-22 10:17:41 -04:00
Mike McLean
9ada058abc whitespace to make flake8 happy 2020-07-22 10:17:37 -04:00
Mike McLean
a15d1c521d cli: list-tags: fall back to old behavior on ParameterError
Fixes https://pagure.io/koji/issue/2379
2020-07-22 10:17:37 -04:00
Mike McLean
ea1b7a6a60 PR#2353: turn off dnf_warning in mock.cfg
Merges #2353
https://pagure.io/koji/pull-request/2353

Related: #2026
https://pagure.io/koji/issue/2026
Mock 2.0 is lands Fedora/EPEL stable
2020-07-21 23:57:25 -04:00
Tomas Kopecek
72c701225b turn off dnf_warning in mock.cfg
Related: https://pagure.io/koji/issue/2026
2020-07-21 23:57:20 -04:00
Mike McLean
47c9146add PR#2385: doc: exporting repositories
Merges #2385
https://pagure.io/koji/pull-request/2385

Fixes: #1964
https://pagure.io/koji/issue/1964
What to use instead of mash?
2020-07-21 23:49:42 -04:00
Mike McLean
f3db46765c rewrite 2020-07-21 23:49:38 -04:00
Mike McLean
eb833883ce fix typos and minor grammar problems 2020-07-21 23:49:38 -04:00
Tomas Kopecek
4396dd09b5 doc: dist-repo and exporting repos
Fixes: https://pagure.io/koji/issue/1964
2020-07-21 23:49:38 -04:00
Mike McLean
a04f6413b8 PR#2372: TaskManager: clean both result and results dirs
Merges #2372
https://pagure.io/koji/pull-request/2372

Fixes: #1988
https://pagure.io/koji/issue/1988
kojid should also cleanup any 'bootstrap' repos
2020-07-21 23:29:19 -04:00
Yu Ming Zhu
54f047fc2a TaskManager: clean both result and results dirs
fixes: #1988
2020-07-21 23:29:13 -04:00
Mike McLean
d4b6331f42 PR#2376: kojid: use mergerepo_c for all merge modes
Merges #2376
https://pagure.io/koji/pull-request/2376

Fixes: #2183
https://pagure.io/koji/issue/2183
kojid: use mergerepo_c where possible
2020-07-21 23:20:58 -04:00
Yu Ming Zhu
a02762bc7f depress Exception when checking mergerepo_c version 2020-07-16 11:17:44 -04:00
Yu Ming Zhu
cccd7f06a3 flake8: W605 invalid escape sequence '\d' 2020-07-16 11:17:44 -04:00
Yu Ming Zhu
022ee9dbce do not break things when mergerepo_c version is not detectable 2020-07-16 11:17:44 -04:00
Yuming Zhu
921bc30573 safe convertion from tuple to str for error msg 2020-07-16 11:17:44 -04:00
Mike McLean
72bc9ed3eb make sure we fall back to mergerepos on python2
also catch more error cases and adjust logging
2020-07-16 11:17:44 -04:00
Tomas Kopecek
3a6bfec59e fix required version 2020-07-16 11:17:44 -04:00
Tomas Kopecek
393bc1d9e1 kojid: use mergerepo_c for all merge modes
Fixes: https://pagure.io/koji/issue/2183
2020-07-16 11:17:44 -04:00
Mike McLean
7d998fec29 PR#2359: hub: importImage doesn't honor volume
Merges #2359
https://pagure.io/koji/pull-request/2359

Fixes: #2355
https://pagure.io/koji/issue/2355
buildImageOz task cannot set volume
2020-07-15 12:07:01 -04:00
Tomas Kopecek
f4d9194ff6 fix tests 2020-07-15 12:06:55 -04:00
Tomas Kopecek
a8bee1511f hub: importImage doesn't honor volume
We're not sending updated build_info to the method and it is requesting
data from db. There is not volume saved yet.

Change is reusing modified buildinfo.

Fixes: https://pagure.io/koji/issue/2355
2020-07-15 12:06:55 -04:00
Mike McLean
43db33eac2 PR#2364: cli clone-tag - get srctag info with event
Merges #2364
https://pagure.io/koji/pull-request/2364

Fixes: #2101
https://pagure.io/koji/issue/2101
CLI clone-tag with options --repo, --ts, --event
2020-07-15 11:44:07 -04:00
Yuming Zhu
45a4867e67 cli clone-tag - get srctag info with event
So that tag config and extra honor `event` for clone-tag cmd

fixes: #2101
2020-07-15 11:44:02 -04:00
Mike McLean
d3146d77b0 PR#2347: cli: fix image-build-indirection --wait
Merges #2347
https://pagure.io/koji/pull-request/2347

Fixes: #2046
https://pagure.io/koji/issue/2046
brew image-build-indirection doesn't WAIT
2020-07-15 11:17:47 -04:00
Tomas Kopecek
d47a45f576 cli: fix image-build-indirection --wait
Fixes: https://pagure.io/koji/issue/2046
2020-07-15 11:17:43 -04:00
Mike McLean
6b8f2550fd PR#2366: upgrade-sql: fix backward compatibility
Merges #2366
https://pagure.io/koji/pull-request/2366

Fixes: #2367
https://pagure.io/koji/issue/2367
schema upgrade error 1.21->1.22
2020-07-14 23:36:00 -04:00
Yu Ming Zhu
bfbaca100e upgrade-sql: fix backward compatibility 2020-07-14 23:35:56 -04:00
Mike McLean
d0bfda257d PR#2369: hub: make sure checksum_type is int for DB
Merges #2369
https://pagure.io/koji/pull-request/2369

Fixes: #2368
https://pagure.io/koji/issue/2368
hub: archive's checksum_type should be always integer in DB
2020-07-14 23:35:01 -04:00
Yu Ming Zhu
f68f277ee6 hub: make sure checksum_type is int for DB
fixes: #2368
2020-07-13 06:16:24 +00:00
Tomas Kopecek
f031ca11cf PR#2306: Provide task-based data to volume policy
Merges #2306
https://pagure.io/koji/pull-request/2306

Fixes #2305
Fixes: https://pagure.io/koji/issue/2305
2020-07-02 16:54:29 +02:00
Mike McLean
1305fe8cf2 also consider task data in apply_volume_policy() 2020-07-02 16:54:22 +02:00
Mike McLean
da8fe93755 policy_get_build_tags: use target data if available
Fixes https://pagure.io/koji/issue/2305
2020-07-02 16:54:22 +02:00
Mike McLean
c90a6ced65 fix handling of indirectionimage in policy_data_from_task_args() 2020-07-02 16:54:22 +02:00
Mike McLean
e1a53b971a use policy_data_from_task in complete*Build calls 2020-07-02 16:54:22 +02:00
Mike McLean
9a90a3edf5 split off "policy data from task" logic 2020-07-02 16:54:22 +02:00
Tomas Kopecek
9beaac9561 PR#2346: cli: --wait for download-task
Merges #2346
https://pagure.io/koji/pull-request/2346

Fixes: #2052
https://pagure.io/koji/issue/2052
[RFE] make "koji download-task" wait for unfinished tasks to complete
2020-07-02 14:23:52 +02:00
Tomas Kopecek
1cbc9340db cli: --wait for download-task
If task is not finished yet, wait for it and download output then.

Fixes: https://pagure.io/koji/issue/2052
2020-07-02 14:23:42 +02:00
Tomas Kopecek
074d61ff05 PR#2342: fix simple_error_message encoding
Merges #2342
https://pagure.io/koji/pull-request/2342

Fixes: #1977
https://pagure.io/koji/issue/1977
koji-web should log an error if it cannot read /etc/kojiweb/web.conf

Fixes: #2341
https://pagure.io/koji/issue/2341
web: simple_error_message has wrong encoding for py3
2020-07-02 10:28:55 +02:00
Tomas Kopecek
60048297dc fix simple_error_message encoding
Fixes: https://pagure.io/koji/issue/2341
2020-07-02 10:28:44 +02:00
Tomas Kopecek
53ff792a53 PR#2358: web: remove "GssapiLocalName off" setting
Merges #2358
https://pagure.io/koji/pull-request/2358
2020-07-02 09:12:30 +02:00
Ken Dreyer
0923a2eae2 web: remove "GssapiLocalName off" setting
mod_auth_gssapi already defaults GssapiLocalName to off. Simplify our
configuration and just remove this line.
2020-07-01 16:29:34 -06:00