Commit graph

4707 commits

Author SHA1 Message Date
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
Tomas Kopecek
1a4fae67e0 PR#1771: koji-sweep-db: Turn on autocommit to eliminate VACUUMing errors
Merges #1771
https://pagure.io/koji/pull-request/1771

Fixes: #1762
koji-sweep-db VACUUM inside a transaction
https://pagure.io/koji/issue/1762
2019-11-27 16:15:39 +01:00
Jim Foraker
a668aaccd8 koji-sweep-db: Turn on autocommit to eliminate VACUUMing errors
psycopg2 leaves transactions open by default, which causes VACUUM to
fail.  Turning on autocommit disables this behavior.
2019-11-27 16:15:35 +01:00
Tomas Kopecek
c292242d97 PR#723: improve test and clean targets in Makefiles
Merges #723
https://pagure.io/koji/pull-request/723

Fixes: #1539
improve test and clean targets in Makefiles
https://pagure.io/koji/issue/1539
2019-11-27 15:42:34 +01:00
Yu Ming Zhu
2fc351b2bd fixes typo in test3 2019-11-27 15:42:30 +01:00
Yuming Zhu
6fc051530b runtest adjusting 2019-11-27 15:42:30 +01:00
Yuming Zhu
7a6ebc851f improve test and clean targets in Makefiles 2019-11-27 15:42:30 +01:00
Tomas Kopecek
aa48b87c12 PR#1037: use --update for dist-repos if possible
Merges #1037
https://pagure.io/koji/pull-request/1037

Fixes: #1031
https://pagure.io/koji/issue/1031
createrepo_c in distRepo does not include --update
2019-11-27 15:30:02 +01:00
Tomas Kopecek
16279ceefa use --update for dist-repos if possible
Fixes: https://pagure.io/koji/issue/1031
2019-11-27 15:29:56 +01:00
Tomas Kopecek
2f5c045de5 PR#1817: document tag inheritance
Merges #1817
https://pagure.io/koji/pull-request/1817

Fixes: #1757
https://pagure.io/koji/issue/1757
document pkg_filter
2019-11-27 13:45:17 +01:00
Tomas Kopecek
2612a87270 grammar fixes 2019-11-27 13:45:12 +01:00
Tomas Kopecek
d2aff54a70 document tag inheritance
Fixes: https://pagure.io/koji/issue/1757
2019-11-27 13:45:12 +01:00
Tomas Kopecek
a84a338d73 PR#1691: human-readable timestamp in koji-gc log
Merges #1691
https://pagure.io/koji/pull-request/1691

Fixes: #1690
https://pagure.io/koji/issue/1690
koji-gc message about "last used" is just timestamp
2019-11-26 15:14:58 +01:00
Tomas Kopecek
b7da687d71 human-readable timestamp in koji-gc log
Fixes: https://pagure.io/koji/issue/1690
2019-11-26 15:14:53 +01:00
Tomas Kopecek
46d7fa7da4 PR#1755: drop buildMap API call
Merges #1755
https://pagure.io/koji/pull-request/1755

Fixes: #1721
https://pagure.io/koji/issue/1721
Drop build_map call
2019-11-26 12:26:34 +01:00
Tomas Kopecek
a3a172a16b rewrite list-untagged to use buildReferences 2019-11-26 12:26:29 +01:00
Tomas Kopecek
83b92da7e4 drop buildMap API call
It was originally designed for garbage-collector, but it is now using
buildReferences call which supersedes this one.

Fixes: https://pagure.io/koji/issue/1721
2019-11-26 12:26:29 +01:00
Tomas Kopecek
1ebda75b6e PR#1814: some list-pkgs options work only in combinations
Merges #1814
https://pagure.io/koji/pull-request/1814

Fixes: #1779
https://pagure.io/koji/issue/1779
Some list-pkgs options work only in combinations
2019-11-25 14:55:58 +01:00
Tomas Kopecek
242fbd00af some list-pkgs options work only in combinations
Fixes: https://pagure.io/koji/issue/1779
2019-11-25 14:55:53 +01:00