Commit graph

1072 commits

Author SHA1 Message Date
Yu Ming Zhu
8a34f7efa0 promote-build command 2024-01-05 10:00:32 +00:00
Yuming Zhu
87409499a3 draft builds 2024-01-05 10:00:29 +00:00
Yu Ming Zhu
7b1f2a6137 cli: [list-permissions] backward compatibility for getUserPermsInheritance call
fixes: #3959
2023-12-08 23:52:39 +00:00
Tomas Kopecek
0c58cd954d Retrieve task_id for older OSBS builds
Related: https://pagure.io/koji/issue/3906
2023-10-23 14:24:16 +02:00
Tomas Kopecek
268d07caf4 PR#3884: short option for watch-logs --follow
Merges #3884
https://pagure.io/koji/pull-request/3884

Related: #3909
https://pagure.io/koji/issue/3909
2023-10-23 14:21:01 +02:00
Tomas Kopecek
15bdb0cdf9 Revert "short option for watch-logs --follow"
This reverts commit 0b7a97dc19.

It was not pushed via correct PR merge. Same commit will follow with
correct workflow.
2023-10-23 14:09:39 +02:00
Tomas Kopecek
0b7a97dc19 short option for watch-logs --follow
Related: https://pagure.io/koji/issue/3909
2023-10-23 14:04:54 +02:00
Tomas Kopecek
055fae4176 flake8 fixes 2023-10-03 15:23:02 +02:00
Tomas Kopecek
9b62b2cbea fix scheduler-info 2023-10-03 15:23:02 +02:00
Mike McLean
b9a7516943 basic scheduler log cli 2023-10-03 15:23:02 +02:00
Mike McLean
1f54dbdf8f watch-tasks: show host for assigned tasks 2023-10-03 15:23:02 +02:00
Tomas Kopecek
6a23a12fd0 wip 2023-10-03 15:23:01 +02:00
Ken Dreyer
cb244fb382 cli: fix wait-repo message when missing builds
The wait-repo command performs a sanity-check when the user specifies an
NVR with "--build". If there are no builds of the package in the tag at
all, wait-repo will print a warning.

The text of that warning was not accurate. The package itself may be in
the tag (listPackages), but there are no builds of that package
(getLatestBuilds). Correct the warning text to clarify the exact problem
to the user.
2023-09-28 12:12:23 -04:00
Tomas Kopecek
9f1f5b674d short option for watch-logs --follow
Related: https://pagure.io/koji/issue/3909
2023-09-22 09:26:31 +02:00
Nicolas Chauvet
93a5ca5abe cli: handle hub w/o getKojiVersion in cancel tasks
Cancel tasks are used from newer fedora koji client on some hubs that
are lacking any getKojiVersion method, so assumes older_hub = True

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2023-09-04 21:53:17 +02:00
Tomas Kopecek
f5f8e6c6a2 refactor get_user_perms 2023-09-04 09:16:21 +02:00
Tomas Kopecek
255ec21d00 Inherit group permissions
Related: https://pagure.io/koji/issue/3849
2023-09-04 09:16:21 +02:00
Tomas Kopecek
c0bc73fdc0 disable use_bootstrap_image if not requested
Related: https://pagure.io/koji/issue/3872
2023-08-28 12:56:49 +02:00
Tomas Kopecek
9d03e43a6a use auth.get_user_groups 2023-08-02 12:46:40 +02:00
Tomas Kopecek
60722acf09 Extend getUser to get user groups
Related: https://pagure.io/koji/issue/3854
2023-08-02 12:46:40 +02:00
Tomas Kopecek
4df0089ee6 fix CLI option target 2023-07-18 11:31:07 +02:00
Tomas Kopecek
ad0566d7cc distrepo will not skip rpm stat by default
There is also CLI option which can override this behaviour if needed.

Related: https://pagure.io/koji/issue/3829
2023-07-18 11:31:07 +02:00
Tomas Kopecek
030e37e1fb fix tests/flake8 2023-07-04 09:09:57 +02:00
Mike McLean
5fb2dfa8ca avoid using fstrings in client code 2023-07-04 08:55:12 +02:00
Mike McLean
61675aec2f be pickier about keyword args and add a note about them in usage 2023-07-04 08:55:12 +02:00
Mike McLean
d1ff157086 cli: streamline python/json options in call command 2023-07-04 08:55:12 +02:00
Mike McLean
4fe784fdb5 list-history: fix [still active] display for edit entries 2023-06-22 15:32:27 +02:00
Tomas Kopecek
576e5d6f3b PR#3819: track update time in host table
Merges #3819
https://pagure.io/koji/pull-request/3819

Fixes: #3789
https://pagure.io/koji/issue/3789
2023-05-17 10:58:12 +02:00
geargyri
0eedf36c41 add policy check
Related: https://pagure.io/koji/issue/3183
2023-05-17 09:31:35 +02:00
Mike McLean
0b935caf85 fix import 2023-05-16 13:14:16 +02:00
Mike McLean
9321ffebec avoid using getLastHostUpdate 2023-05-16 13:14:16 +02:00
Jana Cupova
a87c6aedbe Add component/built archives in list-buildroot
Fixes: https://pagure.io/koji/issue/3759
2023-05-09 09:20:44 +02:00
Jana Cupova
9a6daef300 Fix backward compatibility
Fixes: https://pagure.io/koji/issue/3715
2023-04-03 15:25:20 +02:00
Jana Cupova
de192e10f1 Add repoID in listBuildroots and create repoinfo command
Add repoID param in listBuildroots and show result in repoInfo
Create new command repoinfo which provides equivalent info as repoInfo
Add number of buildroots related to repo in repoinfo page

Fixes: https://pagure.io/koji/issue/2549
2023-04-03 15:20:18 +02:00
Jana Cupova
175c618e5b CLI list-untagged: One space only instead of double space before references
Fixes: https://pagure.io/koji/issue/3730
2023-03-23 13:21:38 +01:00
Mike McLean
00f3a78f09 list-tagged: only check for build dir when --sigs is given 2023-03-20 13:40:27 +01:00
Tomas Kopecek
21dba45bfc Fix mtime logic for py2.x
Related: https://pagure.io/koji/issue/3711
2023-03-16 09:46:54 +01:00
Tomas Kopecek
8acb4a4fd3 fix py26 compatibility 2023-03-07 12:50:10 +01:00
Yanko Kaneti
d520dce8a2 download-build: preserve build artefacts last modification time 2023-03-07 12:50:10 +01:00
Jana Cupova
334bc39375 CLI: cancel error msg
cancel returns error msg when build is not existing
cancel returns error mgs for all not existing tasks/builds

Fixes: https://pagure.io/koji/issue/3715
2023-03-06 14:24:53 +01:00
Jana Cupova
378ea8ef2f Delete double check existing source tag, --batch option is unvisible
Fixes: https://pagure.io/koji/issue/3705
2023-03-06 14:23:00 +01:00
Tomas Kopecek
c8ad0479de unify kwargs for gssapi_login 2023-03-03 09:28:29 +01:00
Frank Buettner
b9565c6c78 Let "--principal=" works for users using multiple TGT's
fix for https://pagure.io/koji/issue/3680
2023-03-03 09:28:29 +01:00
Jana Cupova
ed72318ce4 CLI download-tasks has sorted tasks in check closed/not closed tasks
Fixes: https://pagure.io/koji/issue/3671
2023-02-02 10:56:41 +01:00
Tomas Kopecek
5c1718337c fix tests 2023-01-23 11:46:15 +01:00
Ken Dreyer
d7a080cb68 cli: improve help for call --python option
The --python option is for input values, not output values. Update the
--help message to explain this.
2023-01-23 11:23:13 +01:00
Tomas Kopecek
6e1ae7231e replace deprecated distutils
distutils will get removed in python 3.12. It is usage is now replaced
by sysconfig. For py2 version code stays in specfile.

https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated

Related: https://pagure.io/koji/issue/3514
2023-01-16 12:36:04 +01:00
Jana Cupova
fd9239cba0 Add test cases for help
Fixes: https://pagure.io/koji/issue/3651
2023-01-09 11:02:30 +01:00
Jana Cupova
36a071edb3 Fix typo in CLI add-tag-inheritance error msg
Fixes: https://pagure.io/koji/issue/3640
2023-01-03 13:53:59 +01:00
Jan Kaluza
ecef2ea1d0 Support deleted build tag in taskinfo.
This commit handles a situation when build tag is removed for
a task for which the taskinfo is called.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2022-12-12 09:10:35 +01:00