Commit graph

4436 commits

Author SHA1 Message Date
Tomas Kopecek
fa7c20767f PR#1173: hub: [groupListRemove] raise Error when no group for tag
Merges #1173
https://pagure.io/koji/pull-request/1173
2019-09-30 15:48:08 +02:00
Tomas Kopecek
ca802b6e93 fix sql order in test 2019-09-30 15:47:56 +02:00
Yu Ming Zhu
2e8611254c fix unavailable id column 2019-09-30 15:47:56 +02:00
Yu Ming Zhu
24afeca663 hub: [groupListRemove] raise Error when no group for tag
Fixes: https://pagure.io/koji/issue/1090
2019-09-30 15:47:45 +02:00
Tomas Kopecek
bff03c2221 PR#1197: [lib] ensuredir: normalize directory and don't throw error when dir exists
Merges #1197
https://pagure.io/koji/pull-request/1197
2019-09-30 15:33:08 +02:00
Yuming Zhu
2956319c39 update docstr and do not swallow other errno 2019-09-30 15:33:01 +02:00
Yu Ming Zhu
589eb2dc9c [lib] ensuredir: normalize directory and don't throw error when dir exists 2019-09-30 15:33:01 +02:00
Tomas Kopecek
9b893acfc6 PR#1244: hub: add missing package list check
Merges #1244
https://pagure.io/koji/pull-request/1244
2019-09-30 15:22:59 +02:00
Pat Riehecky
f3ace6b400 hub: add missing package list check 2019-09-30 15:22:54 +02:00
Tomas Kopecek
89cc90a062 PR#1523: builder: log insufficent disk space location
Merges #1523
https://pagure.io/koji/pull-request/1523
2019-09-26 17:42:14 +02:00
Ken Dreyer
95fcac7ca5 builder: log insufficent disk space location
When creating a builder with the default settings and a small root
partition "/", kojid will fail to come up because /var/lib/mock is on
the root partition.

Prior to this change, kojid would log a messages to the systemd journal
about the insufficent disk space, but it did not make it obvious which
directory should have more disk space. Add the buildroot location to
this log message, so the administrator can more easily understand what
to change.
2019-09-26 17:42:09 +02:00
Tomas Kopecek
d1b40ae939 PR#1616: docs/schema-upgrade-1.18-1.19.sql/schema.sql: additional CoreOS artifact types.
Merges #1616
https://pagure.io/koji/pull-request/1616
2019-09-26 17:39:26 +02:00
Steve Milner
a1a90570c9 docs/schema.sql: update for changes in schema-upgrade-1.18-1.19.sql 2019-09-26 17:36:39 +02:00
Ben Howard
971b82a9e5 docs/schema-upgrade-1.18-1.19.sql: additional CoreOS artifact types. 2019-09-26 17:36:39 +02:00
Tomas Kopecek
3dcc1939bf PR#1643: fix schema.sql introduced by moving owner from tag_packages to another table
Merges #1643
https://pagure.io/koji/pull-request/1643
2019-09-26 17:21:34 +02:00
Yuming Zhu
417d230277 fix schema.sql introduced by moving owner from tag_packages to another table
related: https://pagure.io/koji/pull-request/1473

fixes: https://pagure.io/koji/issue/956
2019-09-26 17:21:31 +02:00
Tomas Kopecek
bf624f5699 PR#1589: query builds per chunks in prune-signed-builds
Merges #1589
https://pagure.io/koji/pull-request/1589

Fixes: #1587
https://pagure.io/koji/issue/1587
prune-signed-builds run out of memory
2019-09-26 16:00:12 +02:00
Tomas Kopecek
0b4f0fb3a1 query builds per chunks in prune-signed-builds
For bigger installations query all builds can run out of memory on hub
side. Query these in 50k chunks.

Fixes: https://pagure.io/koji/issue/1587
2019-09-26 16:00:08 +02:00
Mike McLean
a5af69c94b PR#1653: Allow ClientSession objects to get cleaned up by the garbage collector
Merges #1653
https://pagure.io/koji/pull-request/1653

Fixes: #1652
https://pagure.io/koji/issue/1652
Requests sessions stay around after a koji.ClientSession object is out of scope
2019-09-23 09:58:55 -04:00
mprahl
a552a248db Allow ClientSession objects to get cleaned up by the garbage collector
Fixes #1652
2019-09-20 11:51:44 -04:00
Tomas Kopecek
1e35e60c21 PR#1473: move tag/package owners to separate table
Merges #1473
https://pagure.io/koji/pull-request/1473

Fixes: #956
https://pagure.io/koji/issue/956
package ownership changes should not trigger repo regens
2019-08-29 15:44:28 +02:00
Tomas Kopecek
3de3f61fbb move tag/package owners to separate table
Changing owner is triggering repo regeneration in kojira. As it is
something which doesn't have any effect on repodata, let's put it to
separate table and let kojira ignore these changes.

Fixes: https://pagure.io/koji/issue/956
2019-08-29 15:44:24 +02:00
Tomas Kopecek
bb8340df6c PR#1430: koji-gc: Added basic email template
Merges #1430
https://pagure.io/koji/pull-request/1430
2019-08-29 10:42:55 +02:00
Alex Iribarren
a4cef55bc3 Added basic email template 2019-08-29 10:42:52 +02:00
Tomas Kopecek
0b7c1198dd PR#1633: Fix lookup_name usage + tests
Merges #1633
https://pagure.io/koji/pull-request/1633

Fixes: #1632
https://pagure.io/koji/issue/1632
Wrong dict usage
2019-08-29 10:24:05 +02:00
Tomas Kopecek
bf5da96053 Fix lookup_name usage + tests
Fixes: https://pagure.io/koji/issue/1632
2019-08-28 15:46:02 +02:00
Tomas Kopecek
0b0e38aeb2 PR#1627: Don't allow archive imports that don't match build type
Merges #1627
https://pagure.io/koji/pull-request/1627
2019-08-28 15:17:30 +02:00
Mike McLean
da1153fc33 raise an error when adding an archive of the wrong type 2019-08-28 15:17:27 +02:00
Mike McLean
ba83f877ff correct error text 2019-08-28 15:17:27 +02:00
Tomas Kopecek
22e606bd1e PR#1618: write binary data to ks file
Merges #1618
https://pagure.io/koji/pull-request/1618

Fixes: #1617
https://pagure.io/koji/issue/1617
fetching kickstart fails on binary vs str under py 3
2019-08-28 15:16:25 +02:00
Tomas Kopecek
0c9ecf3f7c write binary data to ks file
Fixes: https://pagure.io/koji/issue/1617
2019-08-28 15:16:20 +02:00
Tomas Kopecek
650d748757 PR#1623: Extend help message to clarify clone-tag usage
Merges #1623
https://pagure.io/koji/pull-request/1623
2019-08-28 15:00:36 +02:00
Brendan Reilly
95875f0c80 fix tests for clone tag 2019-08-28 15:00:34 +02:00
Brendan Reilly
8b59f488d5 Extend help message to clarify clone-tag usage 2019-08-28 15:00:34 +02:00
Mike McLean
916e70c1aa PR#1621: rework update of reserved builds
Merges #1621
https://pagure.io/koji/pull-request/1621

Fixes: #1603
https://pagure.io/koji/issue/1603
Possible double update in CG_Importer.get_build()
2019-08-21 15:30:06 -04:00
Mike McLean
b67de2c26e pass correct buildinfo to callbacks 2019-08-19 11:07:43 -04:00
Mike McLean
a5f2d582cc rework update of reserved builds
Fixes: https://pagure.io/koji/issue/1603
2019-08-16 17:19:57 -04:00
Mike McLean
92fcb60e79 PR#1508: fix btype lookup in list_archive_files()
Merges #1508
https://pagure.io/koji/pull-request/1508

Fixes: #1507
https://pagure.io/koji/issue/1507
list_archive_files does not handle multi-type builds
2019-08-15 17:04:21 -04:00
Mike McLean
f8b5f7da73 fix unit test 2019-08-15 17:00:51 -04:00
Mike McLean
2a00b1a7a2 fix btype lookup in list_archive_files()
Fixes: https://pagure.io/koji/issue/1507
2019-08-15 17:00:51 -04:00
Mike McLean
d31183db47 PR#1223: Unit test download_file
Merges #1223
https://pagure.io/koji/pull-request/1223
2019-08-14 14:22:58 -04:00
Tomas Kopecek
0375e27626 update jenkins setup
Some libraries dropped py2.6 support, so put there version limits for
pip in CI. Update documentation for requests-mock.
2019-08-14 14:21:43 -04:00
Jana Cupova
4f350cc26e Unit tests download_file with errors status code 2019-08-14 14:21:43 -04:00
Mike McLean
0700e4958e PR#1613: Allow builder to attempt krb if gssapi is available
Merges #1613
https://pagure.io/koji/pull-request/1613

Fixes: #1575
https://pagure.io/koji/issue/1575
Allow builder to attempt krb if gssapi is available
2019-08-14 11:47:39 -04:00
Tomas Kopecek
74ec938f69 fix krbV error handling
Fixes: https://pagure.io/koji/issue/1575
2019-08-14 11:47:38 -04:00
Patrick Uiterwijk
184fbf02f4 Allow builder to attempt krb if gssapi is available
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2019-08-14 11:47:38 -04:00
Mike McLean
badb40d5f8 PR#1612: use right top limit
Merges #1612
https://pagure.io/koji/pull-request/1612

Fixes: #1611
https://pagure.io/koji/issue/1611
generate_token can create longer tokens than needed
2019-08-14 11:47:22 -04:00
Tomas Kopecek
07f0cba77a use right top limit
randint's top limit is included in range, so original value 256 can be
reached and as such hex-digit 100 is emitted enlarging the string.

Fixes: https://pagure.io/koji/issue/1611
2019-08-14 11:20:00 +02:00
Mike McLean
c814752008 PR#1595: enable dnf_warning in mock config
Merges #1595
https://pagure.io/koji/pull-request/1595

Fixes: #1594
https://pagure.io/koji/issue/1594
Warn users if buildroot uses yum instead of dnf
2019-08-12 18:02:37 -04:00
Tomas Kopecek
16fb3ad162 enable dnf_warning in mock config
Fixes: https://pagure.io/koji/issue/1594
2019-08-12 18:02:36 -04:00