Yuming Zhu
fdb00d34dd
Merge #4173 fix typo in schema-upgrade-1.34-1.35.sql
2024-08-19 15:34:45 +00:00
Yuming Zhu
f9cff89263
fix typo in schema-upgrade-1.34-1.35.sql
2024-08-19 23:28:58 +08:00
Tomas Kopecek
8a6857f546
PR#4141: Keep schema upgrade transactional
...
Merges #4141
https://pagure.io/koji/pull-request/4141
Relates: #4080
https://pagure.io/koji/issue/4080
[1.34.0] Database migration 1.34 -> 1.35 fails, because creating an index in this manner is not allowed.
2024-08-16 12:38:35 +02:00
Mike McLean
3fa1b1b243
Keep schema upgrade transactional
...
Related: https://pagure.io/koji/issue/4080
2024-08-16 12:38:28 +02:00
Tomas Kopecek
007cfa0345
PR#4132: check-api: only warn for external type changes
...
Merges #4132
https://pagure.io/koji/pull-request/4132
2024-08-15 11:57:22 +02:00
Mike McLean
ee83ceb1af
check-api: only warn for external type changes
2024-08-15 11:57:15 +02:00
Tomas Kopecek
25534177dc
PR#4103: make clean - more files
...
Merges #4103
https://pagure.io/koji/pull-request/4103
2024-08-15 11:53:47 +02:00
Tomas Kopecek
f82359b920
make clean - more files
...
Remove setup.py genereated directories and potential python stubs.
2024-08-15 11:53:40 +02:00
Tomas Kopecek
90b3ef7366
PR#4060: auto arch refusal for noarch tasks
...
Merges #4060
https://pagure.io/koji/pull-request/4060
Relates: #4047
https://pagure.io/koji/issue/4047
Scheduler randomly chose "wrong" archs for noarch packages.
2024-08-15 11:51:03 +02:00
Mike McLean
c09780bbb5
adjust handling for tags with no arches
2024-08-15 11:50:50 +02:00
Mike McLean
6fb33731d9
adjust comments
2024-08-15 11:50:50 +02:00
Mike McLean
085d97fb2d
one more test
2024-08-15 11:50:50 +02:00
Mike McLean
3a8a0786be
add unit test and adjust error handling
...
(no errors were found with the code, but needed to avoid masking them in
tests)
2024-08-15 11:50:50 +02:00
Mike McLean
137400868a
typo
2024-08-15 11:50:50 +02:00
Mike McLean
826f8637d9
trigger auto refusals in make_task
2024-08-15 11:50:50 +02:00
Mike McLean
8894fcbca3
auto_arch_refuse()
2024-08-15 11:50:50 +02:00
Tomas Kopecek
0823802908
PR#4164: better default handling for getMultiArchInfo
...
Merges #4164
https://pagure.io/koji/pull-request/4164
Fixes : #4161
https://pagure.io/koji/issue/4161
api test is depending on used architecture
2024-08-15 09:05:43 +02:00
Mike McLean
23495b773b
better default handling for getMultiArchInfo
...
Fixes https://pagure.io/koji/issue/4161
2024-08-15 09:05:36 +02:00
Tomas Kopecek
69dd65b01e
PR#4083: refuse image tasks when required deps are missing
...
Merges #4083
https://pagure.io/koji/pull-request/4083
Fixes #4105
https://pagure.io/koji/issue/4105
2024-08-15 09:03:53 +02:00
Mike McLean
4cf8edd6a4
refuse image tasks when required deps are missing
2024-08-15 09:03:46 +02:00
Tomas Kopecek
abfe1f20be
PR#4158: Fix asserts in unit tests
...
Merges #4158
https://pagure.io/koji/pull-request/4158
2024-08-13 12:44:08 +02:00
Mike McLean
b91a40c0fc
restore test
2024-08-13 12:44:01 +02:00
Mike McLean
9b9a207206
fix test name
2024-08-13 12:44:01 +02:00
Jana Librova
8eb2078a4c
Fix asserts in unit tests
2024-08-13 12:44:01 +02:00
Tomas Kopecek
3dd7665269
PR#3912: anonymous getGroupMembers and getUserGroups
...
Merges #3912
https://pagure.io/koji/pull-request/3912
Relates: #3900
https://pagure.io/koji/issue/3900
RFE: anonymous getGroupMembers and getUserGroups
2024-08-13 12:41:50 +02:00
Christopher O'Brien
a5f4b24c37
undoing api json changes
2024-08-13 12:41:42 +02:00
Christopher O'Brien
cb6da5074c
change return type to list of dicts
2024-08-13 12:41:42 +02:00
Christopher O'Brien
a3f4ea5d44
make the API tests pass
2024-08-13 12:41:42 +02:00
Christopher O'Brien
0bd816c689
Make getGroupMembers anonymous and add getUserGroups
2024-08-13 12:41:42 +02:00
Tomas Kopecek
d982b5ac4f
PR#4100: setup.py: Fix version retrieval on Python 3.13+
...
Merges #4100
https://pagure.io/koji/pull-request/4100
Fixes : #4101
https://pagure.io/koji/issue/4101
setup.py: Fix version retrieval on Python 3.13+
2024-07-24 09:45:23 +02:00
Miro Hrončok
7dd9a83612
setup.py: Fix version retrieval on Python 3.13+
...
Accessing __version__ from locals() no longer works.
This was reported to Python in https://github.com/python/cpython/issues/118888
but according to Python developers, it:
- is an intended change of behavior described in PEP 667
- was an illegal usage that happens to work in a favored way to begin with
2024-07-24 09:45:04 +02:00
Tomas Kopecek
2bf10c7010
PR#4075: taskinfo CLI and webUI info message why output is not in the list
...
Merges #4075
https://pagure.io/koji/pull-request/4075
Fixes : #4074
https://pagure.io/koji/issue/4074
add note that files are cleared when getTaskResults returns some results but listTaskOutput returns an empty result
2024-07-24 09:29:18 +02:00
Jana Cupova
3725053b33
taskinfo CLI and webUI info message why output is not in the list
...
Fixes: https://pagure.io/koji/issue/4074
2024-07-24 09:29:04 +02:00
Tomas Kopecek
bf6f1f4a16
PR#4133: more missing tearDowns
...
Merges #4133
https://pagure.io/koji/pull-request/4133
Fixes : #4020
https://pagure.io/koji/issue/4020
Parallelize tests
2024-07-18 14:22:52 +02:00
Mike McLean
5cfc290675
more coverage filters
2024-07-18 14:22:43 +02:00
Mike McLean
6fb91c040a
also use venv coverage
2024-07-18 14:22:43 +02:00
Mike McLean
44c16b8c68
use venv pytest, stop using ancient mock version
...
dropping mock from the py3 reqs entirely so we use python's lib
2024-07-18 14:22:43 +02:00
Mike McLean
c444cd5eb5
use pytest-dist for make test3
2024-07-18 14:22:43 +02:00
Mike McLean
6002373ff9
avoid leaving stray temp files
2024-07-18 14:22:43 +02:00
Mike McLean
8d8274a35e
fix context mocking
2024-07-18 14:22:43 +02:00
Mike McLean
1c3b430e02
drop stray tearDown
2024-07-18 14:22:43 +02:00
Tomas Kopecek
d7bbc037f5
more mocks related to context
2024-07-18 14:22:43 +02:00
Mike McLean
117164ab3f
fix misuse of progname in unit tests
...
this was breaking parallel testing
2024-07-18 14:22:43 +02:00
Mike McLean
dde35fdc97
fix tz issues in cli tests
2024-07-18 14:22:43 +02:00
Mike McLean
95dacbe785
more missing tearDowns
2024-07-18 14:22:43 +02:00
Mike McLean
690ed8cf01
PR#4115: fix tz mismatch issues with various queries
...
Merges #4115
https://pagure.io/koji/pull-request/4115
Fixes : #4114
https://pagure.io/koji/issue/4114
Hub encodes timestamps for db without tz
2024-07-12 10:55:48 -04:00
Mike McLean
adda405314
use tzutc from dateutil
2024-07-12 10:55:44 -04:00
Mike McLean
d05b0a4de1
fix unit tests
2024-07-12 10:55:44 -04:00
Mike McLean
69d162ddff
fix tz mismatch issues with various queries
2024-07-12 10:55:44 -04:00
Tomas Kopecek
f70ba74d43
PR#4127: handle cases where there is no event before our ts
...
Merges #4127
https://pagure.io/koji/pull-request/4127
Fixes : #4128
https://pagure.io/koji/issue/4128
min_event calculation can fail if koji instance is new
2024-07-11 08:42:25 +02:00