Tomas Kopecek
dd8fd935f4
use preferred arch if there is more options
...
https://pagure.io/koji/pull-request/323 introduced option to force an
arch for noarch packages. Nevertheless, it is only task architecture and
not buildroot one. So, if builder can provide more possible archs (32/64
bit), it will pick one of these randomly and can go against preferred arch.
Patch introduces "preferred_arch" option for find_arch and use the
task's one when it works with noarch rpm.
Fixes: https://pagure.io/koji/issue/789
2019-10-14 10:12:40 +02:00
Tomas Kopecek
2bef7c16dc
rename source_srpm to srpm
2019-06-26 09:06:48 +02:00
Tomas Kopecek
279e6533f6
rebuildSRPM task
...
New task rebuildSRPM for srpms uploaded to koji. If policy
'rebuild_srpm' returns True, build task will spawn rebuildSRPM task
first to recreate SRPM with updated buildroot macros, typically 'dist'.
Policy has access to same data as build_from_srpm and build_from_repo_id
policies. (user_id, source, task_id, build_tag, skip_tag, target, tag)
Fixes: https://pagure.io/koji/issue/1396
2019-06-26 09:06:48 +02:00
Mikolaj Izdebski
3d058c50db
Allow generating separate src repo for build repos
...
Fixes #1266
2019-05-23 10:01:12 -04:00
Tomas Kopecek
426a8c2b16
rpm builds
2019-02-12 16:06:00 -05:00
Tomas Kopecek
d3766c19b5
replace obsoleted libs
2019-02-12 16:06:00 -05:00
Yu Ming Zhu
30c2e5f426
sorted set in Error msgs of tasks.find_arch
2019-01-28 08:46:11 -05:00
Tomas Kopecek
17db100db5
few sort speedups
...
Fixes: https://pagure.io/koji/issue/963
2018-12-04 00:05:26 -05:00
Tomas Kopecek
be535c2854
python-modernize -f libmodernize.fixes.fix_imports_six
2018-07-11 17:37:39 -04:00
Tomas Kopecek
b96092334d
python-modernize -f libmodernize.fixes.fix_xrange_six
2018-07-11 17:37:39 -04:00
Tomas Kopecek
75ff25d4fd
remove unused variable
2018-06-07 09:56:27 -04:00
Tomas Kopecek
7de48fe5ff
propagate exception correctly
...
Fixes: https://pagure.io/koji/issue/844
2018-06-07 09:56:27 -04:00
Tomas Kopecek
c68396c059
Use unittest2 for rhel6 compatibility
...
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Tomas Kopecek
169aed66c5
make py2 files parseable with py3
2018-05-03 15:56:56 -04:00
Mike McLean
ed5ef6458c
Fix typo in deleted mount check
...
Follow up to PR #402
Fixes #387
2018-04-24 17:20:37 -04:00
Yuming Zhu
62e94c100c
fix duplicated args - parent in waittest task
2018-02-19 17:02:16 -05:00
Luiz Carvalho
a6f84f9a1e
Import koji.plugin explicitly
...
The run_callbacks method assumes koji.plugin has already been imported.
Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
2017-11-13 14:46:31 +08:00
Mike McLean
75d192a149
update legacy signatures
2017-11-09 17:40:52 -05:00
Mike McLean
d8132543c5
move apply_argspec to koji.util
2017-11-09 17:40:52 -05:00
Mike McLean
89825a8d2d
drop unused/incomplete parseParams method for now
2017-11-09 17:40:52 -05:00
Mike McLean
bf9e7520f7
fix defaults handling in apply_argspec
2017-11-09 17:40:52 -05:00
Mike McLean
9e48e440e8
cleanup, more testing
2017-11-09 17:40:52 -05:00
Mike McLean
e6de3e0d62
function to parse task parameters into a dictionary
2017-11-09 17:40:52 -05:00
Mike McLean
8a8999e01c
partial work on apply_argspec function
2017-11-09 17:40:52 -05:00
Tomas Kopecek
379ec8ae63
python-modernize -f lib2to3.fixes.file . -w
2017-10-31 16:05:16 +01:00
Tomas Kopecek
d6a5cdf987
python-modernize -f lib2to3.fixes.fix_except . -w
2017-10-31 16:05:16 +01:00
Mike McLean
b848458251
safe_rmtree: make return value consistent with past behavior
2017-10-30 12:09:04 -04:00
Mike McLean
a2d9d756fe
drop stale comment and avoid bare except in safe_rmtree
2017-10-30 12:09:04 -04:00
Tomas Kopecek
5b23fb1629
consolidate safe_rmtree, rmtree and shutil.rmtree
...
shutil.rmtree should be avoided in almost all cases
safe_rmtree has its usage in tasks module, but innards are replaced with
koji.util.rmtree, so we don't have two implementations of same task
Related: https://pagure.io/koji/issue/648
2017-10-30 12:09:04 -04:00
Mike McLean
ce6a88fa2a
allow restart-hosts to work when deploying this change
2017-06-21 08:39:08 -04:00
Mike McLean
617dd468d2
avoid incorrect sleep log message
2017-06-21 08:39:08 -04:00
Mike McLean
33566487d1
fix timeout logic in wait()
2017-06-21 08:39:08 -04:00
Mike McLean
81eb30d5ce
restart-hosts: new options and a timeout
2017-06-21 08:39:08 -04:00
Yuming Zhu
efc4c9bcff
change run_plugin to run_callbacks and remove the modification for kojikamid.py
2017-06-20 09:32:19 -04:00
Yuming Zhu
65799703e2
push build_tag, session, scratch into callbacks
2017-06-20 09:32:19 -04:00
Yuming Zhu
cbf06f8783
remove useless import
2017-06-20 09:32:19 -04:00
Yuming Zhu
89e82d6020
only path taskinfo, scminfo, [srcdir] to plugin
2017-06-20 09:32:19 -04:00
Xibo Ning
9bf49841ad
patch2 for issue 288
2017-06-20 09:32:19 -04:00
Tomas Kopecek
7d5358a336
fix python2 test
2017-06-01 09:39:24 +02:00
Tomas Kopecek
d625c0aa4d
remove changes not relevant to cli
2017-06-01 09:39:24 +02:00
Tomas Kopecek
f8f373e2b6
use sorted(archs) to not confuse tests
2017-06-01 09:39:23 +02:00
Tomas Kopecek
119ecf2122
propagate exception correctly to outer scope
2017-06-01 09:39:23 +02:00
Tomas Kopecek
7d277a8ad5
urllib changes
2017-06-01 09:39:23 +02:00
Tomas Kopecek
a4a1536a03
python-modernize -f libmodernize.fixes.fix_file
2017-06-01 09:39:22 +02:00
Tomas Kopecek
1220008f8f
python-modernize -f lib2to3.fixes.fix_except
2017-06-01 09:39:22 +02:00
Tomas Kopecek
b1da150c01
python-modernize -f libmodernize.fixes.fix_imports_six
2017-06-01 09:39:21 +02:00
Tomas Kopecek
7f946b37be
python-modernize -f libmodernize.fixes.fix_xrange_six
2017-06-01 09:39:21 +02:00
Tomas Kopecek
32fa7f0435
parse deleted mountpoints
...
Related: https://pagure.io/koji/issue/387
2017-05-17 13:04:06 -04:00
Tomas Kopecek
323987e376
Allow uploading files to non-default volumes
2017-03-28 11:46:47 +02:00
Tomas Kopecek
1494301465
use new exception syntax
2017-03-02 10:52:30 -05:00