Commit graph

4725 commits

Author SHA1 Message Date
Yu Ming Zhu
8c21aa7e6d sort imports in cli 2019-12-12 11:00:57 +00:00
Yu Ming Zhu
a58148a7ed sort imports in hub 2019-12-12 11:00:57 +00:00
Yu Ming Zhu
4d29a87e9b sort imports in koji 2019-12-12 11:00:57 +00:00
Yu Ming Zhu
90cc76573f sort imports in plugins 2019-12-12 11:00:56 +00:00
Yu Ming Zhu
77bc43c07a sort imports in vm 2019-12-12 11:00:56 +00:00
Yu Ming Zhu
b8653736dd sort imports in www 2019-12-12 11:00:56 +00:00
Yu Ming Zhu
a00df18546 sort imports in util 2019-12-12 11:00:55 +00:00
Tomas Kopecek
062050c80f PR#1626: build can wait for actual repo
Merges #1626
https://pagure.io/koji/pull-request/1626

Fixes: #1619
https://pagure.io/koji/issue/1619
[RFE] brew build --wait-for-repo/build
2019-12-12 15:29:32 +01:00
Tomas Kopecek
418376dc81 build can wait for actual repo
New options --wait-for-build and --wait-for-repo for build command are
simplification of using wait-repo + build command succession. They have
same semantices as the original one.

Fixes: https://pagure.io/koji/issue/1619
2019-12-12 15:29:27 +01:00
Tomas Kopecek
160780cedf PR#1640: Provide for passing credentials to SRPMfromSCM
Merges #1640
https://pagure.io/koji/pull-request/1640

Fixes: #1658
https://pagure.io/koji/issue/1658
Provide for passing credentials to SRPMfromSCM
2019-12-12 15:22:05 +01:00
Tim Smith
80021ab904 Provide for passing credentials to SRPMfromSCM
Some places force every access to their systems to be authenticated for
audit purposes, which means even an https fetch of a source tarball
needs access to some sort of credential.

Provide for a directory intended to contain credentials to be
bind-mounted into the BuildRoot for the BuildSRPMFromSCM task as
"/credentials". Whatever runs a a result of the source_cmd ("make
sources") is responsible for doing something useful with the contents.
2019-12-12 15:22:01 +01:00
Tomas Kopecek
e5ac490d71 PR#1820: [web] human-friendly file sizes in taskinfo page
Merges #1820
https://pagure.io/koji/pull-request/1820

Fixes: #1819
https://pagure.io/koji/issue/1819
rpminfo page can print human-friendly file sizes
2019-12-12 13:23:31 +01:00
Tomas Kopecek
a803f0a0f3 [web] human-friendly file sizes in taskinfo page
Fixes: https://pagure.io/koji/issue/1819
2019-12-12 13:23:26 +01:00
Tomas Kopecek
ef91057cc9 PR#1821: browsable api
Merges #1821
https://pagure.io/koji/pull-request/1821

Fixes: #1813
https://pagure.io/koji/issue/1813
[RFE] make API browsable in web ui
2019-12-11 13:26:32 +01:00
Tomas Kopecek
4ae799c93d browsable api
Fixes: https://pagure.io/koji/issue/1813
2019-12-11 13:26:25 +01:00
Tomas Kopecek
9d9a289fed PR#1839: fix closing table tag
Merges #1839
https://pagure.io/koji/pull-request/1839

Fixes: #1838
https://pagure.io/koji/issue/1838
channelinfo page doesn't have closed table
2019-12-11 13:25:45 +01:00
Tomas Kopecek
9e1b76e475 fix closing table tag
Fixes: https://pagure.io/koji/issue/1838
2019-12-11 13:25:40 +01:00
Tomas Kopecek
d7226b1681 PR#1785: unify return values for permission denied
Merges #1785
https://pagure.io/koji/pull-request/1785

Fixes: #1784
https://pagure.io/koji/issue/1784
Unify error messages in CLI

Fixes: #1776
https://pagure.io/koji/issue/1776
Return code 1 for add-tag, remove-tag, edit-target, remove-target without tag and admin permissions
2019-12-11 11:47:08 +01:00
Tomas Kopecek
98ab70dcff fix permission check in CLI 2019-12-11 11:47:02 +01:00
Tomas Kopecek
502e7ed2ca fix tests 2019-12-11 11:47:02 +01:00
Tomas Kopecek
dd4a7edcfd get_usage_str 2019-12-11 11:47:01 +01:00
Tomas Kopecek
68637cbefb unify BNF options 2019-12-11 11:47:01 +01:00
Tomas Kopecek
b57238f1ce fix translation strings 2019-12-11 11:47:01 +01:00
Tomas Kopecek
94b5970ea6 remove asserts
they shouldn't be needed if parser.error is used everywhere
2019-12-11 11:47:01 +01:00
Tomas Kopecek
bf45d6927f unify return values for permission denied
Fixes: https://pagure.io/koji/issue/1776
2019-12-11 11:47:01 +01:00
Tomas Kopecek
5c1c25db7e PR#1428: Add koji-gc/kojira/koji-shadow to setup.py
Merges #1428
https://pagure.io/koji/pull-request/1428

Fixes: #1403
https://pagure.io/koji/issue/1403
[RFE] utils/kojid in PyPi
2019-12-11 09:29:01 +01:00
Tomas Kopecek
f114816b06 Add koji-gc/kojira/koji-shadow to setup.py
Fixes: https://pagure.io/koji/issue/1403
2019-12-11 09:28:56 +01:00
Tomas Kopecek
ad2cc20d51 PR#1868: extend docstrings for CGInit/RefundBuild
Merges #1868
https://pagure.io/koji/pull-request/1868

Fixes: #1867
https://pagure.io/koji/issue/1867
Extend docs for CGInit/RefundBuild
2019-12-11 09:22:30 +01:00
Tomas Kopecek
857fe4c871 extend docstrings for CGInit/RefundBuild
Fixes: https://pagure.io/koji/issue/1867
2019-12-11 09:22:25 +01:00
Tomas Kopecek
1865a0c858 PR#1853: fix CGRefundBuild to release build properly
Merges #1853
https://pagure.io/koji/pull-request/1853

Fixes: #1852
https://pagure.io/koji/issue/1852
CGRefundBuild doesn't free build completely
2019-12-10 16:58:37 +01:00
Tomas Kopecek
20b91e85a0 fix CGRefundBuild to release build properly
CGInitBuild will fail on already existing build (even canceled/failed),
so it can't be used to reuse previously refunded nvr.

CGRefund build doesn't delete reservation. Having reservation token for
build which is no more in BUILDING doesn't make much sense and blocks
and reservation of same NVR.

Fixes: https://pagure.io/koji/issue/1852
2019-12-10 16:58:33 +01:00
Tomas Kopecek
64c5348f1e PR#1862: gitignore: exclude .vscode folder
Merges #1862
https://pagure.io/koji/pull-request/1862
2019-12-09 13:05:35 +01:00
Tomas Kopecek
f024e48c29 PR#1845: QueryProcessor: fix countOnly for group sql
Merges #1845
https://pagure.io/koji/pull-request/1845

Fixes: #1844
https://pagure.io/koji/issue/1844
WebUI returns an error on Users tab
2019-12-05 15:41:12 +01:00
Yu Ming Zhu
f63d94cbad add tests for group and countOnly for QueryProcessor 2019-12-05 15:41:08 +01:00
Yu Ming Zhu
b92143370e fix countOnly for group sql
fixes: #1844
2019-12-05 15:41:08 +01:00
Yu Ming Zhu
699e811af0 gitignore: exclude .vscode folder 2019-12-05 13:57:20 +00:00
Tomas Kopecek
4b70721fe0 PR#1850: fix conflict -r option for kernel version
Merges #1850
https://pagure.io/koji/pull-request/1850

Fixes: #793
Log builder kernel
https://pagure.io/koji/issue/793

Relates: https://pagure.io/koji/pull-request/821
2019-12-03 09:46:00 +01:00
Yuming Zhu
93ab8c9df4 fix conflict -r option for kernel version
fixes: #793
related: #821
2019-12-03 09:45:57 +01:00
Tomas Kopecek
bccc116cf6 PR#1848: list-pkgs: fix opts check
Merges #1848
https://pagure.io/koji/pull-request/1848

Fixes: 1779
Some list-pkgs options work only in combinations
https://pagure.io/koji/issue/1779
2019-12-03 09:40:21 +01:00
Yuming Zhu
15f409c5fc list-pkgs: fix opts check
fixes: #1779
2019-12-03 09:40:19 +01:00
Tomas Kopecek
2d3e306ee4 PR#1847: hub: fix BulkInsertProcessor call in CGImport
Merges #1847
https://pagure.io/koji/pull-request/1847

Fixes: 1846
Error message related with BulkInsertProcessor
https://pagure.io/koji/issue/1846
2019-12-03 09:23:29 +01:00
Yu Ming Zhu
876a0501ac hub: fix BulkInsertProcessor call in CGImport
fixes: #1846
2019-11-29 06:31:04 +00:00
Mike McLean
a64cbdc591 PR#1841: continue instead of exiting
Merges #1841
https://pagure.io/koji/pull-request/1841

Fixes: #1840
https://pagure.io/koji/issue/1840
checkAvailDelay blocks builder from picking full capacity
2019-11-27 16:33:44 -05:00
Tomas Kopecek
208ecca37f continue instead of exiting
Fixes: https://pagure.io/koji/issue/1840
2019-11-27 16:33:41 -05:00
Tomas Kopecek
e4b7dce503 PR#1837: A few fixes for kojikamid
Merges #1837
https://pagure.io/koji/pull-request/1837

Fixes: #1842
kojikamid py3 compatibility + update for koji 1.20
https://pagure.io/koji/issue/1842
2019-11-27 16:42:27 +01:00
Mike Bonnet
be31305f52 include CHECKSUM_TYPES in kojikamid.py, and use it when validating checksums of downloaded files
The Koji data model has been updated to support multiple checksum types. These are listed in the
CHECKSUM_TYPES enum in koji/__init__.py, but are not available in kojikamid.py. This change
copies the Enum class and the CHECKSUM_TYPES enum into kojikamid at build time, and uses it when
validating the checksums of downloaded files.
2019-11-27 16:42:24 +01:00
Mike Bonnet
4cd37132dd kojikamid.py: use urllib from six.moves
kojikamid has the SCM class from daemon.py inserted into it at build time. This class
has been converted to use urllib from six.moves (for Python 3 compatibility), rather
than using urlparse. Update the import in kojikamid.py to be compatible with this change.
2019-11-27 16:42:24 +01:00
Mike Bonnet
3d7a6af560 fix argument type in format string
Argument is a string, not a float.
2019-11-27 16:42:24 +01:00
Tomas Kopecek
8cca853218 PR#1823: docs for partitioning buildroot_listings
Merges #1823
https://pagure.io/koji/pull-request/1823

Fixes: #1746
https://pagure.io/koji/issue/1746
Partition big tables
2019-11-27 16:20:18 +01:00
Tomas Kopecek
c6d1f34782 docs for partitioning buildroot_listings
Fixes: https://pagure.io/koji/issue/1746
2019-11-27 16:20:14 +01:00