Commit graph

4163 commits

Author SHA1 Message Date
Mike McLean
41628eb5e3 fix unit test 2019-05-21 11:15:29 -04:00
Mike McLean
5a36065d62 delete_build: handle results of lazy build_references call
Fixes: https://pagure.io/koji/issue/1441
2019-05-21 11:15:29 -04:00
Mike McLean
6421617804 PR#1425: add --show-channels listing to list-hosts
Merges #1425
https://pagure.io/koji/pull-request/1425

Fixes: #1424
https://pagure.io/koji/issue/1424
Add channels to list-hosts
2019-05-21 10:05:11 -04:00
Tomas Kopecek
e75ddc7a36 fix channel separator 2019-05-21 10:04:59 -04:00
Tomas Kopecek
30d303cab2 fix alignment 2019-05-21 10:04:59 -04:00
Tomas Kopecek
20b6239220 add --show-channels listing to list-hosts
Fixes: https://pagure.io/koji/issue/1424
2019-05-21 10:04:59 -04:00
Mike McLean
b42eabf770 PR#1432: py2.6 compatibility fix
Merges #1432
https://pagure.io/koji/pull-request/1432

Fixes: #1431
https://pagure.io/koji/issue/1431
koji-builder-1.17.0 not compatible with python 2.6
2019-05-20 17:08:44 -04:00
Mike McLean
fc250d09c2 typo in comment 2019-05-20 17:07:50 -04:00
Tomas Kopecek
3cb64be496 py2.6 compatibility fix
Python 2.6 doesn't support context manager for GzipFile. Revert to
original behaviour.

Fixes: https://pagure.io/koji/issue/1431
2019-05-20 17:07:50 -04:00
Mike McLean
fc0f127299 PR#1434: hub: fix check_fields and duplicated parent_id in _writeInheritanceData
Merges #1434
https://pagure.io/koji/pull-request/1434

Fixes: #1435
https://pagure.io/koji/issue/1435
changes for writeInheritanceData should not contain duplicated parent_id

Fixes: #1433
https://pagure.io/koji/issue/1433
writeInheritanceData checks wrong field for "delete link"
2019-05-20 17:04:25 -04:00
Yu Ming Zhu
310786bac1 check duplicated parent_id in changes 2019-05-20 17:04:20 -04:00
Yuming Zhu
d0483f96aa hub: fix check_fields in _writeInheritanceData 2019-05-20 17:04:20 -04:00
Mike McLean
210e72378a PR#1439: user correct column in sql (getTask)
Merges #1439
https://pagure.io/koji/pull-request/1439

Fixes: #1438
https://pagure.io/koji/issue/1438
host.getTask uses non-existing column in SQL
2019-05-20 16:57:00 -04:00
Tomas Kopecek
32d4290c5e user correct column in sql (getTask)
Fixes: https://pagure.io/koji/issue/1438
2019-05-20 16:56:55 -04:00
Mike McLean
ecda7963f3 PR#1437: fix table name in build_references query
Merges #1437
https://pagure.io/koji/pull-request/1437

Fixes: #1436
https://pagure.io/koji/issue/1436
buildReferences fails for non-rpm builds
2019-05-20 10:26:21 -04:00
Mike McLean
a294a108c4 fix table name in build_references query
Fixes: https://pagure.io/koji/issue/1436
2019-05-17 13:02:14 -04:00
Mike McLean
72868772f3 PR#1414: Fix jenkins config for new python mock
Merges #1414
https://pagure.io/koji/pull-request/1414

Fixes: #1412
https://pagure.io/koji/issue/1412
Jenkins tests failing on EL6
2019-05-06 11:26:47 -04:00
Tomas Kopecek
ed7e665894 Fix jenkins config for new python mock
Fixes: https://pagure.io/koji/issue/1412
2019-05-06 11:26:42 -04:00
Mike McLean
e7a38d7e89 PR#1411: handle bare merge mode
Merges #1411
https://pagure.io/koji/pull-request/1411

Fixes: #1404
https://pagure.io/koji/issue/1404
RFE: add repo merge mode to support modularity
2019-05-06 11:23:30 -04:00
Mike McLean
a9fc077a1a fix mode name 2019-05-06 11:23:19 -04:00
Mike McLean
be6ae53fb6 handle bare merge mode
Fixes https://pagure.io/koji/issue/1404
2019-05-06 11:23:19 -04:00
Mike McLean
c3764e5113 PR#1410: build_srpm: Wait until after running the sources command to check for alt_sources_dir
Merges #1410
https://pagure.io/koji/pull-request/1410
2019-05-06 10:47:40 -04:00
Brian Stinson
af1efed6fa build_srpm: Wait until after running the sources command to check for
alt_sources_dir

In the RPM layout, it's possible that the SOURCES directory might be
completely empty save for the lookaside payload. In this case a SOURCES
directory wouldn't exist in SCM, and wouldn't be created until the
sources command is run.
2019-05-06 10:47:36 -04:00
Mike McLean
f2eaa6cc56 PR#1383: display task durations in webui
Merges #1383
https://pagure.io/koji/pull-request/1383

Fixes: #1382
https://pagure.io/koji/issue/1382
[RFE] taskinfo page can show task durations
2019-05-06 10:33:11 -04:00
Tomas Kopecek
3e65782daf remove unneeded import 2019-05-06 10:33:06 -04:00
Mike McLean
3d8c75d7d3 use time.time() for current timestamp 2019-05-06 10:33:06 -04:00
Tomas Kopecek
e5b0a3ac6e display task durations in webui
Fixes: https://pagure.io/koji/issue/1382
2019-05-06 10:33:06 -04:00
Mike McLean
7fb56ee3fc PR#1358: rollback errors in multiCall
Merges #1358
https://pagure.io/koji/pull-request/1358

Fixes: #1357
https://pagure.io/koji/issue/1357
errors in multicall can result in partial db changes
2019-05-06 10:25:28 -04:00
Mike McLean
7f64d7896f document multicall 2019-05-06 10:23:15 -04:00
Mike McLean
a8fb6c952d rollback errors in multiCall
Fixes: https://pagure.io/koji/issue/1357
2019-05-06 10:23:15 -04:00
Mike McLean
02713b97db PR#1413: Makefile: print correct urls for test coverage
Merges #1413
https://pagure.io/koji/pull-request/1413
2019-05-06 10:19:43 -04:00
Mike McLean
81dfec0c5c runtests: tempdir prefix 2019-05-06 10:19:39 -04:00
Mike McLean
ec92a80fdc fix reported url in make test/test3 2019-05-06 10:19:39 -04:00
Mike McLean
acb38cb82e PR#1409: Fix SQL after introduction of host_config
Merges #1409
https://pagure.io/koji/pull-request/1409

Fixes: #1381
https://pagure.io/koji/issue/1381
host.isEnabled API call returns psycopg2.ProgrammingError fault
2019-05-05 14:40:25 -04:00
Tomas Kopecek
650a6976f7 Fix SQL after introduction of host_config
Fixes: https://pagure.io/koji/issue/1381
2019-05-05 14:40:17 -04:00
Mike McLean
ea082d30da PR#1324: createEmptyBuild errors for non-existent user
Merges #1324
https://pagure.io/koji/pull-request/1324

Fixes: #1163
https://pagure.io/koji/issue/1163
API Call createEmptyBuild call should return GenericError for non existing userID
2019-05-02 17:16:13 -04:00
Tomas Kopecek
45777c434e fix test for numeric user_id 2019-05-02 17:16:09 -04:00
Tomas Kopecek
d10ce2b86f convert username to user_id 2019-05-02 17:16:09 -04:00
Tomas Kopecek
2542bc51aa createEmptyBuild errors for non-existent user
Until now, error was raised from postgres insert. Now is user's
existence checked before running insert.

Fixes: https://pagure.io/koji/issue/1163
2019-05-02 17:16:09 -04:00
Mike McLean
2c832644a6 PR#1406: fix mapping iteration in getFullInheritance
Merges #1406
https://pagure.io/koji/pull-request/1406

Fixes: #1405
https://pagure.io/koji/issue/1405
CLI command koji list-tag-inheritance --stop=tag-52zov tag-mjckr returns none
2019-05-02 08:32:24 -04:00
Mike McLean
b6cc0d0b88 fix mapping iteration in getFullInheritance
Fixes: https://pagure.io/koji/issue/1405
2019-05-02 08:32:19 -04:00
Mike McLean
5d26852c48 PR#1398: kojid: Download only 'origin'
Merges #1398
https://pagure.io/koji/pull-request/1398

Fixes #1399
https://pagure.io/koji/issue/1399
2019-05-01 15:54:30 -04:00
Igor Gnatenko
a66b4ddfb4
kojid: Download only 'repomd.xml'
We have pretty slow connection from s390x koji which helped to uncover
this part. Kojid downloads all files from repomd.xml (incl. filelists)
which is really big. What we really want is just find location of
'origin' (used later in the code).

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-04-17 07:38:03 +02:00
Mike McLean
ef4712afbc PR#1365: Check CLI arguments for enable/disable host
Merges #1365
https://pagure.io/koji/pull-request/1365

Fixes: #1364
https://pagure.io/koji/issue/1364
enable-host, disable-host without parameters returns none
2019-04-12 21:30:08 -04:00
Tomas Kopecek
0b30e73053 Check CLI arguments for enable/disable host
Fixes: https://pagure.io/koji/issue/1364
2019-04-12 21:30:02 -04:00
Mike McLean
b92fa538dd PR#1390: CLI list-channels sorted output
Merges #1390
https://pagure.io/koji/pull-request/1390
2019-04-12 17:11:22 -04:00
Tomas Kopecek
2187270185 CLI list-channels sorted output 2019-04-12 17:11:13 -04:00
Mike McLean
0bd77c44ea PR#1389: block_pkglist compatibility fix
Merges #1389
https://pagure.io/koji/pull-request/1389

Fixes: #1388
https://pagure.io/koji/issue/1388
koji-1.17.0-5.fc31 client with 1.16.1 server block doesnt work
2019-04-10 17:32:56 -04:00
Tomas Kopecek
b4755745a2 block_pkglist compatibility fix
On older hubs --force is not supported, so CLI will fail on unknown
parameter. This use force option only if it is explicitly required.

Fixes: https://pagure.io/koji/issue/1388
2019-04-10 17:32:50 -04:00
Mike McLean
c6f3b23ecf PR#1376: use context manager for open in CLI
Merges #1376
https://pagure.io/koji/pull-request/1376
2019-04-10 17:29:05 -04:00