Commit graph

7520 commits

Author SHA1 Message Date
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
Tomas Kopecek
b2a53c9753 PR#3904: Update docstring for listPackages
Merges #3904
https://pagure.io/koji/pull-request/3904

Fixes: #3874
https://pagure.io/koji/issue/3874
Clarify listPackages behavior in simple case
2024-01-08 14:48:22 +01:00
Tomas Kopecek
c1925782b4 Update docstring for listPackages
Related: https://pagure.io/koji/issue/3874
2024-01-08 14:48:13 +01:00
Tomas Kopecek
75a3cab1e8 PR#3913: draft builds
Merges #3913
https://pagure.io/koji/pull-request/3913

Fixes #3918
https://pagure.io/koji/issue/3918
2024-01-08 14:02:20 +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
387dbecebe simplify draft_release_sane logic 2024-01-05 10:01:02 +00:00
Mike McLean
c944ef36a1 unit test for get_rpm preferences 2024-01-05 10:01:02 +00:00
Mike McLean
c5395a5a8f fix unit tests
- adjustments for query updates
- draft data no longer in build.extra
- drop some unhelpful assertions
2024-01-05 10:01:02 +00:00
Mike McLean
ce32f58b9a show promotion info in ui 2024-01-05 10:01:01 +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
Mike McLean
a4b4aedba8 fix compat_mode case 2024-01-05 10:00:59 +00:00
Mike McLean
5591709735 docstring updates 2024-01-05 10:00:59 +00:00
Yu Ming Zhu
6997097392 fix tests 2024-01-05 10:00:58 +00:00