Commit graph

5576 commits

Author SHA1 Message Date
Tomas Kopecek
48434f4393 vm in py3 2020-10-06 15:00:23 +02:00
Tomas Kopecek
e711e7dbe5 utils in py3 2020-10-06 15:00:23 +02:00
Tomas Kopecek
894b080da1 devtools in py3 2020-10-06 15:00:23 +02:00
Tomas Kopecek
18f5a29ead packaging 2020-10-06 15:00:23 +02:00
Tomas Kopecek
a9108584b7 timezones for py 2.7 2020-10-06 15:00:23 +02:00
Tomas Kopecek
dce2ce2aa7 gzip now can be context manager 2020-10-06 15:00:23 +02:00
Tomas Kopecek
b030b46f74 remove unittest2 2020-10-06 15:00:23 +02:00
Tomas Kopecek
878284c85c PR#2531: cli: fix tests
Merges #2531
https://pagure.io/koji/pull-request/2531

Fixes: #1870
https://pagure.io/koji/issue/1870
a new API to get tag extra with / without inheritance
2020-10-06 14:59:12 +02:00
Tomas Kopecek
2518e8106f cli: fix tests
Related: https://pagure.io/koji/issue/1870
2020-10-06 14:58:15 +02:00
Tomas Kopecek
041de1a7c8 PR#2525: cli: load plugins also from /usr/lib64
Merges #2525
https://pagure.io/koji/pull-request/2525

Fixes: #2524
https://pagure.io/koji/issue/2524
CLI looks only to /usr/lib for plugins
2020-10-06 14:23:28 +02:00
Tomas Kopecek
34f2cbd272 cli: load plugins also from /usr/lib64
Fixes: https://pagure.io/koji/issue/2524
2020-10-06 14:23:22 +02:00
Tomas Kopecek
3b0e0dfdde PR#2472: cli: clone-tag --config clones also extra info
Merges #2472
https://pagure.io/koji/pull-request/2472

Fixes: #2371
https://pagure.io/koji/issue/2371
cli: [clone-tag] should be able to clone extra configs
2020-10-06 14:02:52 +02:00
Tomas Kopecek
2a8fc19600 cli: clone-tag --config clones also extra info
Fixes: https://pagure.io/koji/issue/2371
2020-10-06 14:02:44 +02:00
Tomas Kopecek
0bbb817765 PR#2530: tests: fix test for getTag(..., blocked)
Merges #2530
https://pagure.io/koji/pull-request/2530

Fixes: #2283
https://pagure.io/koji/issue/2283
No way to unset/block inherited tag.extra values
2020-10-06 14:01:26 +02:00
Tomas Kopecek
0b5638ccec tests: fix test for getTag(..., blocked)
Related: https://pagure.io/koji/issue/2283
2020-10-06 13:59:14 +02:00
Tomas Kopecek
bfd3034141 PR#2493: getBuildConfig returns inheritance history
Merges #2493
https://pagure.io/koji/pull-request/2493

Fixes: #1870
https://pagure.io/koji/issue/1870
a new API to get tag extra with / without inheritance
2020-10-05 12:36:12 +02:00
Tomas Kopecek
fedf3ee9f9 extend to config_inheritance 2020-10-05 12:35:07 +02:00
Tomas Kopecek
73aa437d45 flake8 fix 2020-10-05 12:34:59 +02:00
Tomas Kopecek
90ab8e7266 fix backward compatibility 2020-10-05 12:34:59 +02:00
Tomas Kopecek
c2570f76bd cli: taginfo displays inherited extra
Fixes: https://pagure.io/koji/issue/1870
2020-10-05 12:34:59 +02:00
Tomas Kopecek
172c861442 hub: getBuildConfig - return inheritance info 2020-10-05 12:34:57 +02:00
Tomas Kopecek
146d3c0766 PR#2500: doc: livecd/livemedia updates
Merges #2500
https://pagure.io/koji/pull-request/2500

Fixes: #2094
https://pagure.io/koji/issue/2094
Docs refer to spin-livecd which is deprecated in favor of spin-livemedia
2020-10-05 11:20:25 +02:00
Tomas Kopecek
87146dc4b9 doc: livecd/livemedia updates
Fixes: https://pagure.io/koji/issue/2094
2020-10-05 11:20:19 +02:00
Tomas Kopecek
dcf235e845 PR#2523: move migration to correct script
Merges #2523
https://pagure.io/koji/pull-request/2523

Fixes: #2521
https://pagure.io/koji/issue/2521
tag_extra schema change in wrong upgrade script
2020-10-05 10:26:22 +02:00
Tomas Kopecek
1a2efb49f1 move migration to correct script
Fixes: https://pagure.io/koji/issue/2521
2020-10-05 10:25:18 +02:00
Tomas Kopecek
9191474888 PR#2518: util: [rmtree] try best to catch errors for race condition
Merges #2518
https://pagure.io/koji/pull-request/2518

Fixes: #2481
https://pagure.io/koji/issue/2481
koji.util.rmtree() is not multi-process/thread safe
2020-10-05 10:14:41 +02:00
Yu Ming Zhu
52a63f732d util: [rmtree] try best to catch errors for race condition
fixes: #2481

This approach is ugly, but just working.

ENOENT and ESTALE errors are catched in `chdir`, `listdir` calls to stomach the deletion by other process/thread

ENOTEMPTY is catched when calling `os.rmdir(path)` in `rmtree()` too. It happens when `path` is on an NFS like where ESTALE happens.
2020-10-05 10:14:34 +02:00
Mike McLean
fa56a5b25b PR#2505: cli: show log urls for failed tasks
Merges #2505
https://pagure.io/koji/pull-request/2505

Fixes: #2188
https://pagure.io/koji/issue/2188
RFE: provide direct URL to logfile when a failure occurs
2020-10-02 12:44:11 -04:00
Tomas Kopecek
bc478c2d68 cli: show log urls for failed tasks
Fixes: https://pagure.io/koji/issue/2188
2020-10-02 12:44:07 -04:00
Tomas Kopecek
30e87348b8 PR#2512: proton: missing default value for timestamp
Merges #2512
https://pagure.io/koji/pull-request/2512

Fixes: #2230
https://pagure.io/koji/issue/2230
protonmsg persistent message queue
2020-10-01 09:24:07 +02:00
Tomas Kopecek
5167fee215 proton: missing default value for timestamp
Related: https://pagure.io/koji/issue/2230
2020-10-01 09:21:51 +02:00
Tomas Kopecek
e8119e52be PR#2438: report versions of components
Merges #2438
https://pagure.io/koji/pull-request/2438

Fixes: #2430
https://pagure.io/koji/issue/2430
RFE: version discoverable from cli and web
2020-09-30 10:43:28 +02:00
Tomas Kopecek
4b1cbe0789 flake8 fix 2020-09-30 10:43:19 +02:00
Tomas Kopecek
a14a1fee39 fix for older hub 2020-09-30 10:43:19 +02:00
Tomas Kopecek
455745b153 update version 2020-09-30 10:43:19 +02:00
Tomas Kopecek
5f472413c9 drop host versions 2020-09-30 10:43:19 +02:00
Tomas Kopecek
ba908fd2de report versions of components
Fixes: https://pagure.io/koji/issue/2430
2020-09-30 10:43:19 +02:00
Tomas Kopecek
729f84767c PR#2441: proton: persistent message queue
Merges #2441
https://pagure.io/koji/pull-request/2441

Fixes: #2230
https://pagure.io/koji/issue/2230
protonmsg persistent message queue
2020-09-30 10:14:58 +02:00
Mike McLean
4ddc48e72a avoid message re-insertion, extend test mode, schema and docs updates
include new table in main schema, since this plugin is part of Koji itself

clean up and expand the docs for this plugin

refactor query_from_db() into handle_db_msgs()
* fix lock error cases
* only delete messages from queue if we successfully send them
* handle test_mode

allow test_mode to exercise db queue via test_mode_fail setting
2020-09-30 10:14:49 +02:00
Tomas Kopecek
aff74c4b3a proton: handling of lock failure 2020-09-30 10:14:49 +02:00
Tomas Kopecek
99c21690c2 delete too old messages 2020-09-30 10:14:49 +02:00
Tomas Kopecek
8c253396e8 proton: persistent message queue
Fixes: https://pagure.io/koji/issue/2230
2020-09-30 10:14:49 +02:00
Tomas Kopecek
dfccd676b9 PR#2510: doc: remove the link of Chinese user guide which is out-of-date
Merges #2510
https://pagure.io/koji/pull-request/2510

Fixes: #1377
https://pagure.io/koji/issue/1377
Error when building the PDF documentation
2020-09-28 15:46:47 +02:00
Yuming Zhu
a2c8ebc144 doc: remove the link of Chinese user guide which is out-of-date 2020-09-28 15:46:38 +02:00
Tomas Kopecek
49ce0a4f1f PR#2508: doc: update pg requirements for partitioning
Merges #2508
https://pagure.io/koji/pull-request/2508

Fixes: #1938
https://pagure.io/koji/issue/1938
Clarify versions needed for database partitioning doc
2020-09-28 13:55:59 +02:00
Tomas Kopecek
620888a089 doc: update pg requirements for partitioning
Fixes: https://pagure.io/koji/issue/1938
2020-09-28 13:54:31 +02:00
Tomas Kopecek
5e8ed0c166 PR#2495: blocking inherited extra
Merges #2495
https://pagure.io/koji/pull-request/2495

Fixes: #2283
https://pagure.io/koji/issue/2283
No way to unset/block inherited tag.extra values
2020-09-28 11:03:51 +02:00
Tomas Kopecek
08494de774 block inherited extra tag info
Fixes: https://pagure.io/koji/issue/2283
2020-09-28 11:03:43 +02:00
Tomas Kopecek
98ebd872bf PR#2498: cli: list-tag-inheritance - description of flags
Merges #2498
https://pagure.io/koji/pull-request/2498

Fixes: #2296
https://pagure.io/koji/issue/2296
"koji list-tag-inheritance --help" does not explain the "." characters
2020-09-23 13:59:37 +02:00
Tomas Kopecek
c1cd6a6327 cli: list-tag-inheritance - description of flags
Fixes: https://pagure.io/koji/issue/2296
2020-09-23 13:59:28 +02:00