Jana Cupova
9dc0efd476
api getLastHostUpdate returns timestamp
...
fixes: https://pagure.io/koji/issue/2497
2021-03-29 11:23:06 +02:00
Yuming Zhu
8845b9eba1
Be tolerant with duplicate parents in _writeInheritanceData
...
Now setInheritanceData API supports duplicate parents in data again.
And we choose to clean the other fields from "delete link" items, so that the ineffective update after deletion which was reported in #1435 .
fixes : #2614
relates: #1434
relates: #1435
2021-03-29 11:19:40 +02:00
Jana Cupova
9c6483f197
API: createWinBuild with wrong win/build info
...
createWinBuild returns an error when win info is empty, is not a dict or
doesn't contain platform key
createWinBuild returns an error when build info is string and build is
not existing
Fixes: https://pagure.io/koji/issue/1103
Fixes: https://pagure.io/koji/issue/1102
2021-03-17 10:12:45 +01:00
Jana Cupova
36284cdea9
api: createMavenBuild wrong buildinfo/maveninfo
...
Fixes: https://pagure.io/koji/issue/1104
Fixes: https://pagure.io/koji/issue/1105
2021-03-16 15:25:15 +01:00
Jana Cupova
8a24a70159
api: createImageBuild non-existing build wrong buildinfo
...
createImageBuild returns an error when build is not existing and buildinfo
is not a dict
Fixes: https://pagure.io/koji/issue/1106
2021-03-16 13:08:57 +01:00
Jana Cupova
e784373000
Unify error messages
...
Unify error messages for CLI
Unify error messages for hub
Fixes: https://pagure.io/koji/issue/2720
2021-03-16 08:43:33 +01:00
Tomas Kopecek
29a34f31a5
cli: show connection exception
...
For anonymous calls (whose use ensure_connection) is now shown also
original exception if --debug is specified.
Fixes: https://pagure.io/koji/issue/2592
2021-03-10 15:31:11 +01:00
Mike McLean
87f3dd6a8c
appease flake8
2021-03-03 15:17:20 +01:00
Mike McLean
1f884a3287
alter priority policy result syntax, catch ValueError
2021-03-03 15:17:20 +01:00
Tomas Kopecek
1d69126589
fix typo
2021-03-03 15:17:20 +01:00
Tomas Kopecek
425cd528a1
hub: priority policy
...
Fixes: https://projects.engineering.redhat.com/browse/RHELBLD-4275
2021-03-03 15:17:20 +01:00
Ken Dreyer
555e647c50
hub: document getNextRelease method
...
Update the getNextRelease RPC docstring to describe what this method
does and what the parameter and return values are.
2021-02-22 20:53:40 -07:00
Mike McLean
e901d66dc0
set correct import_type for volume policy in completeImageBuild
...
Fixes https://pagure.io/koji/issue/2712
2021-02-18 14:27:30 -05:00
Yu Ming Zhu
8b9aa559c8
fix the mode of tarfile.open
...
fixes : #2641
2021-02-03 10:04:38 +00:00
Mike McLean
32b71964fe
make policy test thread safe
...
Fixes https://pagure.io/koji/issue/2650
2021-02-01 15:36:24 +01:00
Tomas Kopecek
d797573faa
readFullInheritance stops/jumps deprecation
...
Fixes: https://pagure.io/koji/issue/2606
2021-02-01 15:15:54 +01:00
Mike McLean
c03bf228c5
rename arg
2021-01-26 14:09:48 +01:00
Mike McLean
1864078973
history query by key
...
Fixes: https://pagure.io/koji/issue/2590
2021-01-26 14:09:48 +01:00
Mike McLean
9a56b0617b
handle plugins and generator results in count and countAndFilterResults
...
Fixes: https://pagure.io/koji/issue/2632
2021-01-26 14:09:05 +01:00
Tomas Kopecek
96ae0ecef5
explicit encoding for text file operations
...
Fixes: https://pagure.io/koji/issue/2641
2021-01-26 13:36:25 +01:00
Tomas Kopecek
234ced2838
update image volume in db ASAP
...
Fixes: https://pagure.io/koji/issue/2634
2021-01-13 15:08:17 +01:00
Ken Dreyer
0c8501e6ea
hub: remove global SSLVerifyClient option
...
Stop recommending that clients set "SSLVerifyClient require" globally on
the hub httpd server.
In the latest versions of the koji CLI, we perform many RPCs anonymously
in order to improve performance, and this is incompatible with hubs that
enforce "SSLVerifyClient require" globally.
2021-01-13 14:35:20 +01:00
Tomas Kopecek
fed1826616
fix nightly getNextReelase format
...
Fixes: https://pagure.io/koji/issue/2629
2021-01-13 13:55:18 +01:00
Tomas Kopecek
2f6c1f228e
hub: fix py2-like 'stop' usage in getFullInheritance
...
Fixes: https://pagure.io/koji/issue/2602
2021-01-04 10:41:16 +01:00
Ken Dreyer
7bd7ef34cc
hub: doc listArchive types param for content generators
...
Update the listArchive docstring to explain that callers can select any
type of archive, not just the older three options ("maven", "win",
"image").
2020-12-16 14:25:11 -07:00
Tomas Kopecek
f5ddbbf97d
hub: limit CGImport to allow only one CG per import
...
Related: https://pagure.io/koji/issue/2511
2020-11-30 17:35:32 +01:00
Michal Privoznik
66ba134859
Install into /usr/lib rather than /usr/lib64/
...
In koji-1.22.0-129-g0ef3c751 I've changed the way how
site-packages directory is obtained. What I did not realize back
then is there can be multilib systems which will not search for
packages in /usr/lib64. But 64bit systems do look into /usr/lib.
Therefore, let's pick the location where both systems work.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1894261
Fixes : #2578
https://pagure.io/koji/issue/2578
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2020-11-27 10:00:52 +01:00
Tomas Kopecek
35bb2acad0
parse arches
2020-11-24 13:56:29 +01:00
Tomas Kopecek
24bd694865
external repos can have specified arch list
...
Fixes: https://pagure.io/koji/issue/2538
2020-11-24 13:56:29 +01:00
Tomas Kopecek
47025a1060
hub: use CTE for build_references
...
Fixes: https://pagure.io/koji/issue/2535
2020-11-24 13:45:21 +01:00
Yu Ming Zhu
7d3bf21612
fix typo of quote
2020-11-18 04:53:38 +00:00
Yu Ming Zhu
3f57163c3f
hub: [listBuilds] add nvr glob pattern support
...
fixes : #2554
--pattern is also added in list-builds command
2020-11-17 22:59:32 +00:00
Tomas Kopecek
d231fa02cb
to_list is not needed in py3 code
...
Fixes: https://pagure.io/koji/issue/2514
2020-10-27 12:55:59 +01:00
Tomas Kopecek
f1b6cdc401
doc: api docs
...
Fixes: https://pagure.io/koji/issue/2110
2020-10-23 09:06:23 +02:00
Tomas Kopecek
309c4e0a62
builder: fix error logging to accept more types
2020-10-21 17:03:05 +02:00
Tomas Kopecek
fedf3ee9f9
extend to config_inheritance
2020-10-05 12:35:07 +02:00
Tomas Kopecek
172c861442
hub: getBuildConfig - return inheritance info
2020-10-05 12:34:57 +02:00
Tomas Kopecek
5f472413c9
drop host versions
2020-09-30 10:43:19 +02:00
Tomas Kopecek
ba908fd2de
report versions of components
...
Fixes: https://pagure.io/koji/issue/2430
2020-09-30 10:43:19 +02:00
Tomas Kopecek
08494de774
block inherited extra tag info
...
Fixes: https://pagure.io/koji/issue/2283
2020-09-28 11:03:43 +02:00
Michal Privoznik
0ef3c75185
Simplify obtaining of PKGDIR
...
So far, in all Makefiles we have a complicated way to construct
PKGDIR path which is used to install python modules into.
Firstly, python version is obtained, and then system prefix and
these are then used to construct the PKGDIR path. Well, we can do
better. We can use 'site.getsitepackages()[0]' to obtain exactly
the path we are after.
This also fixes the problem on distributions which have split
/usr/lib and /usr/lib64 directories, because with the way we are
constructing the PKGDIR path we assume that the directories are
the same (or one is a symlink to another). Well, that is not
always the case.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2020-09-22 13:45:48 +02:00
Tomas Kopecek
59b97d56f1
hub: deleteBuild should skip deleted builds
...
We can return ASAP from the call if build is already deleted.
Fixes: https://pagure.io/koji/issue/2475
2020-09-10 13:24:02 +02:00
Tomas Kopecek
e72a7be0a1
stricter config file permissions
...
Fixes: https://pagure.io/koji/issue/2124
2020-09-07 09:37:11 +02:00
Tomas Kopecek
0eec5acd34
lowercase sigkeys during import/query where needed
...
Fixes: https://pagure.io/koji/issue/2434
2020-09-01 14:06:06 +02:00
Yu Ming Zhu
1b9cd6a95e
hub: [multicall] cast args of exception to str
...
fixes : #2381
2020-09-01 11:23:04 +02:00
Tomas Kopecek
7cd78cb54b
hub: deprecate getGlobalInheritance
...
with final removal in 1.25
Fixes: https://pagure.io/koji/issue/2240
2020-08-27 13:38:37 +02:00
Tomas Kopecek
45224e5b52
hint psql planner to do proper index scan
...
Fixes: https://pagure.io/koji/issue/2383
2020-08-25 14:49:28 +02:00
Tomas Kopecek
90578ddc9e
hub: tagChangedSince reacts on changes in extra
...
Fixes: https://pagure.io/koji/issue/2284
2020-08-19 16:47:19 +02:00
Tomas Kopecek
c7a0d26123
Remove host.getTask API call
...
Fixes: https://pagure.io/koji/issue/2231
2020-08-18 16:32:51 +02:00
Tomas Kopecek
bcdf0165c9
remove deprecated list-tag-history / tagHistory
...
Fixes: https://pagure.io/koji/issue/2215
2020-08-18 16:31:21 +02:00