Commit graph

7872 commits

Author SHA1 Message Date
root
5e3b697599 Remove fp file using os.unlink instead of using delete option of NamedTemporaryFile 2025-02-18 15:52:58 +01:00
Tomas Kopecek
77d56ccd08 PR#4314: Release notes for 1.35.2
Merges #4314
https://pagure.io/koji/pull-request/4314

Fixes: #4313
https://pagure.io/koji/issue/4313
1.35.2 release notes
2025-02-18 12:16:54 +01:00
Tomas Kopecek
7e79d42554 Release notes for 1.35.2
Related: https://pagure.io/koji/issue/4313
2025-02-18 12:15:08 +01:00
Tomas Kopecek
4270cdd4c1 PR#4277: kojira: split currency and regen
Merges #4277
https://pagure.io/koji/pull-request/4277

Fixes: #4278
https://pagure.io/koji/issue/4278
repo requests can be delayed of there are a lot of tags with auto regen
2025-02-18 12:09:18 +01:00
Tomas Kopecek
47c7d93767 Fix unit tests 2025-02-18 12:08:31 +01:00
Mike McLean
67893189f7 more tests 2025-02-18 11:56:10 +01:00
Mike McLean
2531412ad2 fixes 2025-02-18 11:56:10 +01:00
Mike McLean
dc17a4f093 adjust unit test 2025-02-18 11:56:10 +01:00
Mike McLean
80e236dc14 unify thread handler loops 2025-02-18 11:56:10 +01:00
Mike McLean
00832224f2 unify thread init and include autoregen 2025-02-18 11:56:10 +01:00
Mike McLean
941771e7b1 partial: split autoregen 2025-02-18 11:56:10 +01:00
Mike McLean
6351c06ab3 print task info if repo request fails 2025-02-18 11:56:10 +01:00
Mike McLean
1382934404 avoid duplicate query 2025-02-18 11:56:10 +01:00
Tomas Kopecek
28159f6a47 PR#4297: koji.spec Makefile /usr/sbin everywhere
Merges #4297
https://pagure.io/koji/pull-request/4297

Fixes: #4296
https://pagure.io/koji/issue/4296
F42: sbindir is now bindir
2025-02-18 11:13:58 +01:00
Jana Librova
f67b9db83a koji.spec Makefile /usr/sbin everywhere
Fixes: https://pagure.io/koji/issue/4296
2025-02-14 22:11:23 +01:00
Tomas Kopecek
5e1584ec88 PR#4285: Improve min_event handling in RepoWatcher
Merges #4285
https://pagure.io/koji/pull-request/4285

Fixes: #4284
https://pagure.io/koji/issue/4284
RepoWatcher can return an old repo if no min_event specified
2025-02-10 14:15:46 +01:00
Mike McLean
a927e0b12c unit test 2025-02-10 14:15:38 +01:00
Mike McLean
109a5e7f21 preserve min_event for waitrepo task 2025-02-10 14:15:38 +01:00
Mike McLean
88c18bad27 RepoWatcher: always request for non-anon case 2025-02-10 14:15:38 +01:00
Tomas Kopecek
68c865efaa PR#4309: Fix default types
Merges #4309
https://pagure.io/koji/pull-request/4309

Fixes: #4308
https://pagure.io/koji/issue/4308
Wrong types in default hub values
2025-02-10 14:14:05 +01:00
Tomas Kopecek
3f8f697a1c Fix default types
Related: https://pagure.io/koji/issue/4308
2025-02-06 15:21:38 +01:00
Tomas Kopecek
7d2a29c162 PR#4210: avoid malformed tasks for updated signatures
Merges #4210
https://pagure.io/koji/pull-request/4210

Fixes: #4288
https://pagure.io/koji/issue/4288
Updated task signatures can lead to "malformed task" display
2025-02-05 14:42:36 +01:00
Mike McLean
acbb8cc521 avoid malformed tasks for update signatures 2025-02-05 14:42:29 +01:00
Tomas Kopecek
7904e4e079 PR#4209: include tag name in newRepo args
Merges #4209
https://pagure.io/koji/pull-request/4209

Fixes: #4208
https://pagure.io/koji/issue/4208
More readable newRepo Tasks
2025-02-04 12:45:18 +01:00
Mike McLean
74fe5301a2 include tag name in newRepo args
Fixes https://pagure.io/koji/issue/4208
2025-02-04 12:45:11 +01:00
Tomas Kopecek
fb2bbaf229 PR#4307: choose correct import machinery in unit test
Merges #4307
https://pagure.io/koji/pull-request/4307

Fixes: #4306
https://pagure.io/koji/issue/4306
failures in tests/test_lib/test_plugin.py
2025-02-03 14:43:04 +01:00
Mike McLean
c3288baa89 choose correct import machinery in unit test
Fixes https://pagure.io/koji/issue/4306
2025-02-03 08:14:15 -05:00
Tomas Kopecek
559dae7005 PR#4139: Remove _singleRow and _multiRow import to kojihub
Merges #4139
https://pagure.io/koji/pull-request/4139

Fixes: #3590
https://pagure.io/koji/issue/3590
Remove _singleRow and _multiRow from import in kojihub.py
2025-01-27 11:09:44 +01:00
Jana Librova
9c6aec7755 Remove _singleRow and _multiRow import to kojihub
Fixes: https://pagure.io/koji/issue/3590
2025-01-23 18:04:49 +01:00
Tomas Kopecek
b7d193c418 PR#4021: newRepo: support hints for oldrepo value
Merges #4021
https://pagure.io/koji/pull-request/4021

Fixes: #4129
https://pagure.io/koji/issue/4129
Support hints for oldrepo
2025-01-10 10:11:57 +01:00
Mike McLean
0d9777b785 add unit test. drop redundant call arg 2025-01-10 10:11:47 +01:00
Mike McLean
1dee091b78 fix rebase issue and missing return values 2025-01-10 10:11:47 +01:00
Mike McLean
f8adc618fc newRepo: support hints for oldrepo value 2025-01-10 10:11:47 +01:00
Tomas Kopecek
d77daaec63 PR#4126: consistent daemon exit codes
Merges #4126
https://pagure.io/koji/pull-request/4126

Fixes: #4131
https://pagure.io/koji/issue/4131
 consistent daemon exit codes
2025-01-10 10:09:15 +01:00
Mike McLean
dbdeaec923 exit codes for kojivmd 2025-01-10 10:09:07 +01:00
Mike McLean
e080e11e0a exit with an error in kojira on auth failures 2025-01-10 10:09:07 +01:00
Tomas Kopecek
310d087eca PR#4292: Update py2 tests
Merges #4292
https://pagure.io/koji/pull-request/4292

Fixes: #4248
https://pagure.io/koji/issue/4248
tests/test_lib should be enabled for py2
2025-01-08 12:53:32 +01:00
Tomas Kopecek
3a4029a097 Update py2 tests
Py2 test updates for https://pagure.io/koji/pull-request/4214

Related: https://pagure.io/koji/issue/4248
2025-01-08 12:53:24 +01:00
Tomas Kopecek
251a40facc PR#4245: combination of test-requirments(-py2).txt
Merges #4245
https://pagure.io/koji/pull-request/4245

Fixes: #4244
https://pagure.io/koji/issue/4244
test-requirements-py2.txt can be merged into test-requirements.txt
2025-01-07 13:37:47 +01:00
Yuming Zhu
8749db575e combination of test-requirments(-py2).txt 2025-01-07 13:37:40 +01:00
Tomas Kopecek
177ba3510f PR#4202: RawHeader: fix store offsets when duplicate tags are present
Merges #4202
https://pagure.io/koji/pull-request/4202

Fixes: #4203
https://pagure.io/koji/issue/4203
RawHeader miscalculates offsets when there are duplicate tags
2025-01-07 12:49:06 +01:00
Mike McLean
3696539c26 fix misleading comment 2025-01-07 12:48:59 +01:00
Mike McLean
5973d7a13b show dups in header dump 2025-01-07 12:48:59 +01:00
Mike McLean
1019b3af35 fix store offsets when duplicate tags are present
For context, see https://pagure.io/koji/issue/4200

If an rpm has duplicate tags in a header, Koji would miscalculate the
start of that data store.
2025-01-07 12:48:59 +01:00
Tomas Kopecek
d1c0d77290 PR#4249: enable tests/test_lib for py2
Merges #4249
https://pagure.io/koji/pull-request/4249

Fixes: #4248
https://pagure.io/koji/issue/4248
tests/test_lib should be enabled for py2
2025-01-06 10:55:49 +01:00
Yuming Zhu
c8a27e525a unittest: enabling tests/test_lib for py2 2025-01-06 10:55:41 +01:00
Yuming Zhu
51d8535eee use OSError instead of FileNotFoundError due to PY2 support 2025-01-06 10:55:41 +01:00
Yuming Zhu
b04396d333 fix removeNonprintable for PY2 2025-01-06 10:55:41 +01:00
Yuming Zhu
951cee051f resort tests from lib to hub for py2 2025-01-06 10:55:41 +01:00
Tomas Kopecek
aa54d705bc PR#4286: Adjust download-build messages
Merges #4286
https://pagure.io/koji/pull-request/4286

Fixes: #4283
https://pagure.io/koji/issue/4283
koji download-build doesn't work for scratch build?
2025-01-06 10:00:21 +01:00