Mike McLean
df55636d6d
implicit task refusals
2024-03-06 11:14:12 +01:00
Mike McLean
822b81644b
flake8, fix typo
2024-03-05 13:22:58 +01:00
Mike McLean
f8c633f310
streamline hub calls
2024-03-05 13:22:58 +01:00
Mike McLean
fadee51aff
handle missing host data, use self.maxjobs as default
2024-03-05 13:22:58 +01:00
Tomas Kopecek
8b554bd3ca
Use also builder's maxjobs setting in scheduler
...
Related: https://pagure.io/koji/issue/4038
2024-03-05 13:22:58 +01:00
Tomas Kopecek
053c4f95b2
Fix temporary cg_import.log file path
...
Related: https://pagure.io/koji/issue/4036
2024-03-05 13:19:53 +01:00
Mike McLean
ecd5d96023
provide draft flag to build policy
...
Related: https://pagure.io/koji/issue/4014
2024-03-04 16:53:12 +01:00
Tomas Kopecek
7a9b0561eb
Don't try to resolve server version for old hubs
...
Related: https://pagure.io/koji/issue/3890
2024-02-29 15:40:03 +01:00
Mike McLean
68009db154
log refusal message
2024-02-29 11:01:43 +01:00
Mike McLean
a7006a283f
order log messages
2024-02-27 12:32:52 +01:00
Mike McLean
374f4e3793
better ordering support in QueryView
2024-02-27 12:32:52 +01:00
Mike McLean
e0fea6a3b0
delete_rpm_sig: check header files first
...
also fixup some error logging and update unit tests
2024-02-21 12:28:56 +01:00
Mike McLean
f732aad509
Backup signature headers in delete_rpm_sig
2024-02-21 12:28:56 +01:00
Mike McLean
2a6e18fa35
typo in set_refusal
...
Fixes https://pagure.io/koji/issue/3997
2024-02-05 11:28:43 +01:00
Yu Ming Zhu
f41b8c70a7
Bandit [B411]: use defusedxml to prevent remote XML attacks
...
- putting xmlrpc stuff into koji.xmlrpcplus
- adding koji.xmlrpcplus.xmlrpc_server to refer
- replacing refs of original xmlrpc.client.dumps to enhanced
koji.xmlrpcplus.dumps
fixes : #3964
2024-02-02 09:08:18 +01:00
Alex Iribarren
679aae9214
Lowercase result instead
2024-02-02 09:04:55 +01:00
Alex Iribarren
75c0ffc5c8
Stop lowercasing the policy failure reason
2024-02-02 09:04:54 +01:00
Yuming Zhu
1d02394c4b
policy_data_from_task_args: set target in policy_data to None if it doesn't exist
...
for build task, the `build target` could be `destination tag` when `opts.repo_id` is specified
fixes #3941
2024-01-30 12:57:56 +01:00
Mike McLean
feb5d0e8ab
fix ordering in get_tasks_for_host
2024-01-19 01:41:02 -05:00
Mike McLean
c0284b0fa1
assign overrides
2024-01-19 01:40:57 -05:00
Tomas Kopecek
c1925782b4
Update docstring for listPackages
...
Related: https://pagure.io/koji/issue/3874
2024-01-08 14:48:13 +01:00
Yu Ming Zhu
e71c8d48cd
fix flake8
2024-01-07 00:10:13 +00:00
Mike McLean
cf605842d8
schema comments
2024-01-05 10:01:03 +00:00
Mike McLean
023f68d0c3
avoid using build.extra for draft data
2024-01-05 10:01:01 +00:00
Mike McLean
6e31a6c663
avoid keyword-only args for now
...
untagged_builds is exported and this aspect of the signature cannot be
correctly reported by list-api
2024-01-05 10:01:00 +00:00
Mike McLean
71bead5955
make error a bit clearer
2024-01-05 10:00:59 +00:00
Yu Ming Zhu
4ba5ba0e5e
add a comment in import_rpm
2024-01-05 10:00:58 +00:00
Mike McLean
09fee79b3d
block draft builds that can't be promoted
2024-01-05 10:00:57 +00:00
Mike McLean
fdbfb8a882
use default volume for draft symlink when promoting
2024-01-05 10:00:57 +00:00
Mike McLean
cbd9a10dfc
delete all build symlinks when deleting a build
2024-01-05 10:00:56 +00:00
Mike McLean
cf387e5c73
import_build without a build_id should never happen
2024-01-05 10:00:56 +00:00
Mike McLean
8c32aa37cb
drop draft options from importRPM
2024-01-05 10:00:55 +00:00
Yu Ming Zhu
4cc4233145
make promoteBuild as staticmethod(_promote_build)
2024-01-05 10:00:55 +00:00
Yu Ming Zhu
8a64c93d05
promoteBuild: reformat error messages
2024-01-05 10:00:54 +00:00
Yu Ming Zhu
3dbe136187
promoteBuild: remove strict option
2024-01-05 10:00:53 +00:00
Yu Ming Zhu
1fa665f240
reject_draft: remove strict option
2024-01-05 10:00:53 +00:00
Yu Ming Zhu
23f8a4f009
promoteBuild: readable error msg
2024-01-05 10:00:52 +00:00
Yu Ming Zhu
e32c71c100
remove draft opts in import_build and completeBuild
2024-01-05 10:00:52 +00:00
Yu Ming Zhu
a945523a1b
fix get_rpm call
2024-01-05 10:00:51 +00:00
Mike McLean
af36318ead
refactor get_rpm
2024-01-05 10:00:50 +00:00
Yu Ming Zhu
a6a47c1d39
new_typed_build: do not reject draft
2024-01-05 10:00:49 +00:00
Yu Ming Zhu
444f4394c1
remove unnecessary reject_draft refs in HostExports
...
As we should be able to guarantee that builder won't do that.
2024-01-05 10:00:49 +00:00
Yu Ming Zhu
93c52c3eae
revert denying rpminfo.extra in import_rpm for draft
2024-01-05 10:00:48 +00:00
Yu Ming Zhu
34c6712fde
simpler gen_draft_release and parse_target_release
2024-01-05 10:00:47 +00:00
Yu Ming Zhu
b4623d52ca
extra changes by draft suffix change
2024-01-05 10:00:45 +00:00
Mike McLean
fc08fc0f74
use nl-delimited json to dump rpm data
2024-01-05 10:00:43 +00:00
Yu Ming Zhu
c06e7f9ba0
reject draft rpms as rpm components of an image build
2024-01-05 10:00:41 +00:00
Yu Ming Zhu
44209718d9
reject draft build in buildroot of CG
2024-01-05 10:00:40 +00:00
Yu Ming Zhu
a3b6b8c43a
repoInit: reject duplicate nvras and write content.json in repodir
2024-01-05 10:00:39 +00:00
Yu Ming Zhu
f29e5e143e
parse target_release from draft release instead of extra.draft.target_release
2024-01-05 10:00:38 +00:00