Commit graph

7535 commits

Author SHA1 Message Date
Mike McLean
9517fb9ee1 more unit tests 2024-02-27 12:32:52 +01:00
Mike McLean
feb0417df5 fakehub: better kw arg handling 2024-02-27 12:32:52 +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
Tomas Kopecek
92298fb943 PR#4011: Show only active channels at clusterhealth
Merges #4011
https://pagure.io/koji/pull-request/4011

Fixes: #4010
https://pagure.io/koji/issue/4010
Cluster health page show disabled channels
2024-02-21 15:33:51 +01:00
Tomas Kopecek
40db49a830 Show only active channels at clusterhealth
Related: https://pagure.io/koji/issue/4010
2024-02-21 15:33:43 +01:00
Tomas Kopecek
31cefe8695 PR#3944: Backup signature headers in delete_rpm_sig
Merges #3944
https://pagure.io/koji/pull-request/3944

Fixes: #3956
https://pagure.io/koji/issue/3956
Backup signature headers in delete_rpm_sig
2024-02-21 12:29:05 +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
Tomas Kopecek
15018712bc PR#4008: CLI list-users with filters from listUsers
Merges #4008
https://pagure.io/koji/pull-request/4008

Fixes: #4001
https://pagure.io/koji/issue/4001
CLI: add remaining filters from listUsers API to list-users
2024-02-21 12:28:13 +01:00
Jana Cupova
d31750bf70 CLI list-users with filters from listUsers
Fixes: https://pagure.io/koji/issue/4001
2024-02-15 08:25:19 +01:00
Tomas Kopecek
690c53b897 PR#3969: New scmpolicy plugin
Merges #3969
https://pagure.io/koji/pull-request/3969

Fixes: #3968
https://pagure.io/koji/issue/3968
scmpolicy plugin
2024-02-09 14:48:38 +01:00
Tomas Kopecek
2013692fc9 New scmpolicy plugin
Plugin for scm policy using data from SCM checkout.

Related: https://pagure.io/koji/issue/3968
2024-02-09 14:47:37 +01:00
Tomas Kopecek
0251961929 PR#3989: Oz: don't hardcode the image size unit as 'G'
Merges #3989
https://pagure.io/koji/pull-request/3989

Fixes: #3993
https://pagure.io/koji/issue/3993
 Oz: don't hardcode the image size unit as 'G'
2024-02-07 14:45:08 +01:00
Adam Williamson
710fe46e0b Oz: don't hardcode the image size unit as 'G'
This has never been necessary, because oz has always treated a
size with no unit as being in gibibytes. After
https://github.com/clalancette/oz/pull/310 it will be actively
harmful, because it will prevent us from using that new ability
of oz to specify a size using any other unit, as we have a
specific reason to want:
https://bugzilla.redhat.com/show_bug.cgi?id=2247611

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-07 14:44:59 +01:00
Tomas Kopecek
ee07eb7b43 PR#4005: Fix bandit "nosec" comments
Merges #4005
https://pagure.io/koji/pull-request/4005

Fixes: #4004
https://pagure.io/koji/issue/4004
Fix bandit warnings
2024-02-06 11:10:53 +01:00
Tomas Kopecek
77b7e3a0c9 Fix bandit "nosec" comments
Related: https://pagure.io/koji/issue/4004
2024-02-06 11:09:16 +01:00
Tomas Kopecek
167ee017f2 PR#3998: typo in set_refusal
Merges #3998
https://pagure.io/koji/pull-request/3998

Fixes: #3997
https://pagure.io/koji/issue/3997
host.refuseTask failure
2024-02-05 11:28:50 +01:00
Mike McLean
2a6e18fa35 typo in set_refusal
Fixes https://pagure.io/koji/issue/3997
2024-02-05 11:28:43 +01:00
Tomas Kopecek
6198e294ab PR#3996: Document draft builds
Merges #3996
https://pagure.io/koji/pull-request/3996

Fixes #3987
https://pagure.io/koji/issue/3987
2024-02-05 11:24:39 +01:00
Mike McLean
ce575c15e3 unrelated fixes 2024-02-05 11:24:32 +01:00
Mike McLean
430a58a4f7 draft builds doc 2024-02-05 11:24:32 +01:00
Tomas Kopecek
91cf2b5025 PR#3975: Bandit [B411]: use defusedxml to prevent remote XML attacks
Merges #3975
https://pagure.io/koji/pull-request/3975

Fixes: #3964
https://pagure.io/koji/issue/3964
Fix bandit xmlrpc issue
2024-02-02 09:10:17 +01:00
Tomas Kopecek
527c460d9a fix test requirements 2024-02-02 09:09:42 +01:00
Yu Ming Zhu
c629d6d99f add defusedxml installation in Dockerfiles 2024-02-02 09:08:28 +01:00
Yu Ming Zhu
37047bd73e update spec 2024-02-02 09:08:21 +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
Tomas Kopecek
a96b5a9b07 PR#3953: Stop lowercasing the policy failure reason
Merges #3953
https://pagure.io/koji/pull-request/3953

Fixes #3984
https://pagure.io/koji/issue/3984
2024-02-02 09:05:04 +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
Tomas Kopecek
1f585efce0 PR#3931: web: add some handy links for module builds
Merges #3931
https://pagure.io/koji/pull-request/3931
2024-02-02 09:03:55 +01:00
Mike McLean
f255881082 web: add some handy links for module builds 2024-02-02 09:03:47 +01:00
Tomas Kopecek
aa94ecb0f8 PR#3942: policy_data_from_task_args: set target to None when it doesn't exist
Merges #3942
https://pagure.io/koji/pull-request/3942

Fixes: #3941
https://pagure.io/koji/issue/3941
build task: nonexistent buildtarget with opts.repo_id breaks policy check in make_task
2024-01-30 12:58:07 +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
Tomas Kopecek
ff9dfe856a PR#3992: Remove rpm-py-installer, update test docs and update Dockerfiles
Merges #3992
https://pagure.io/koji/pull-request/3992

Fixes: #3868
https://pagure.io/koji/issue/3868
optional dependency rpm-py-installer seems to be deprecated by upstream, causing `make test` to fail
2024-01-30 12:44:16 +01:00
Jana Cupova
ba612e1e90 Remove rpm-py-installer, update test docs and update Dockerfiles
Remove rpm-py-installer from requirements
Check duplicite and unused packages in Dockerfiles and test-requirements
Update docs about unit tests.

Fixes: https://pagure.io/koji/issue/3868
2024-01-30 12:44:07 +01:00
Tomas Kopecek
119ec31685 PR#3921: Release notes 1.34
Merges #3921
https://pagure.io/koji/pull-request/3921

Fixes: #3919
https://pagure.io/koji/issue/3919
Koji 1.34.0 release notes
2024-01-24 10:02:23 +01:00
Mike McLean
53ef7886ba release notes updates 2024-01-24 10:01:26 +01:00
Tomas Kopecek
7f4bbb698c Release notes 1.34
Related: https://pagure.io/koji/issue/3919
2024-01-23 13:12:12 +01:00
Tomas Kopecek
bfd0d034a7 PR#3983: test_cg_importer.py: avoid creating temp files in checkout
Merges #3983
https://pagure.io/koji/pull-request/3983
2024-01-23 09:38:49 +01:00
Mike McLean
14863332fd test_cg_importer.py: avoid creating temp files in checkout 2024-01-22 13:41:45 -05:00
Tomas Kopecek
142b50b9cd PR#3938: Update the CERN koji description
Merges #3938
https://pagure.io/koji/pull-request/3938
2024-01-22 09:53:09 +01:00
alisboav
31f44ddb72 Update the CERN koji description 2024-01-22 09:53:01 +01:00
Tomas Kopecek
8898c6e8db PR#3977: handle new task refs in clean_scratch_tasks
Merges #3977
https://pagure.io/koji/pull-request/3977

Fixes: #3978
https://pagure.io/koji/issue/3978
koji-sweep-db fails on scratch builds
2024-01-22 09:22:29 +01:00
Mike McLean
e10a79493b handle new task refs in clean_scratch_tasks 2024-01-22 09:22:21 +01:00
Tomas Kopecek
8052eb1db6 PR#3980: task assign overrides
Merges #3980
https://pagure.io/koji/pull-request/3980

Fixes: #3979
https://pagure.io/koji/issue/3979
restart-hosts fails with new scheduler
2024-01-22 09:21:49 +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
20b4b1b17d PR#3929: Read config file on image build indirection
Merges #3929
https://pagure.io/koji/pull-request/3929

Fixes: #3928
https://pagure.io/koji/issue/3928
Read '--config' on indirection image build
2024-01-11 15:56:01 +01:00
Hector Martinez
d467810c7c Read config file on image build indirection 2024-01-11 15:55:57 +01:00