Commit graph

687 commits

Author SHA1 Message Date
Mike McLean
09f1b7d567 change stray stderr writes to logger.info on hub 2016-10-25 17:16:12 -04:00
Mike McLean
a1c8808544 ImportErrors are uncovered 2016-10-25 17:16:12 -04:00
Mike Bonnet
238d1db039 provide more information to the pre/postRPMSign callback
The existing pre/postRPMSign callback was following the format of
the Task/BuildStateChange callbacks. This isn't necessary for a
one-time operation. This change removes the attribute/old/new
arguments, and replaces them with sigkey, sighash, build, and rpm
arguments. This is more clear, and should make writing handlers
for this callback simpler.
2016-10-20 13:48:07 -07:00
Mike Bonnet
c41107ea51 pass build information consistently to the postImport callback
Always pass the build infomation as the "build" argument to the
postImport callback. For type='build' and type='image' imports,
this change is additive, and so is unlikely to affect existing
plugins. For type='cg' imports, this change makes the callback
consistent with the other callback types, and the CG import
mechanism is new enough that there is probably no code making
use of it yet.
2016-10-20 13:46:32 -07:00
Tomas Kopecek
51eca7346e getRPMDeps exposes additional deps
Adding Conflicts, Suggests, Enhances, Supplements and Recommend header fields
in addition to original Requires, Conflicts, Obsoletes and Provides

relates: https://pagure.io/koji/issue/142
2016-10-13 00:29:39 -04:00
Mike McLean
b481229d8f assert basic nvr sanity for cg imports 2016-10-06 17:40:51 -04:00
Tomas Kopecek
dcf8f52e8f add extra data option to create_tag
related https://pagure.io/koji/issue/166
2016-10-04 11:13:06 -04:00
Tomas Kopecek
7ebf9a44fe update old_edit_tag to support extra tag data 2016-10-04 11:13:06 -04:00
Mike McLean
6cfe982475 drop stale planning comment 2016-09-28 18:20:09 -04:00
Mike McLean
28a912a4f1 make resetBuild a complete reset 2016-09-28 18:20:09 -04:00
Mike McLean
4a1170f262 fix typos in readTaggedBuilds 2016-09-28 18:20:09 -04:00
Mike McLean
73276f7ca8 fix task_id ref in recycle_build 2016-09-28 18:20:09 -04:00
Mike McLean
cef08dd67f provide imageID value to query 2016-09-28 18:20:09 -04:00
Mike McLean
f7f2959ec9 only admins can add btypes 2016-09-28 18:20:09 -04:00
Mike McLean
0a419e885d also clear image_archives rows in reset_build 2016-09-28 18:20:09 -04:00
Mike McLean
1942595cba typo: image builds are not maven builds 2016-09-28 18:20:09 -04:00
Mike McLean
f003cb65f9 fix callback in recycle_build 2016-09-28 18:20:09 -04:00
Mike McLean
500dbb0df6 fix new_typed_build invocations 2016-09-28 18:20:09 -04:00
Mike McLean
1846f92228 make sure rpm btype is set when appropriate 2016-09-28 18:20:09 -04:00
Mike McLean
264cd22ee5 recycled builds: more checks, clear type info 2016-09-28 18:20:09 -04:00
Mike McLean
127926e3dd move build recycling logic into its own function 2016-09-28 18:20:09 -04:00
Mike McLean
e5668f98a7 new calls: listBTypes, addBType 2016-09-28 18:20:09 -04:00
Mike McLean
dc33a0e679 add btype data for legacy builds 2016-09-28 18:20:09 -04:00
Mike McLean
2ed308ff3e typo 2016-09-28 18:20:09 -04:00
Mike McLean
c0cb1ab73e ... 2016-09-28 18:20:09 -04:00
Mike McLean
e119e08505 use new archive component tables in hub code 2016-09-28 18:20:09 -04:00
Mike McLean
e31044f0d2 enforce that output types match one of the build types 2016-09-28 18:20:09 -04:00
Mike McLean
8c03618ab7 more fixes 2016-09-28 18:20:09 -04:00
Mike McLean
0cef35e50a fixes 2016-09-28 18:20:09 -04:00
Mike McLean
ea84af67ce add btype_id to archiveinfo 2016-09-28 18:20:09 -04:00
Mike McLean
15f483feea handle btypes in import_archive 2016-09-28 18:20:09 -04:00
Mike McLean
0175c27d26 handle btypes in cg_import 2016-09-28 18:20:09 -04:00
Mike McLean
9de37e32c8 use InsertProcessor in new_maven_build 2016-09-28 18:20:09 -04:00
Mike McLean
4eada8df3c more consistency between listBuilds and getBuild 2016-09-28 18:20:09 -04:00
Mike McLean
f7e7bed3b4 support querying by new btypes 2016-09-28 18:20:09 -04:00
Mike McLean
601bfd9083 get_build_type() 2016-09-28 18:20:09 -04:00
Mike McLean
2f412fbcfb support untyped build archive imports 2016-09-28 18:20:09 -04:00
Mike McLean
47da84ed72 preCommit too. why not? 2016-09-14 14:20:28 -04:00
Mike McLean
3ecc5dbe52 add postCommit callback 2016-09-14 14:20:28 -04:00
Mohan Boddu
dd82e9cea2 Remove all bad-whitespaces
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2016-08-29 14:26:32 -04:00
Mike McLean
76cf9e32ae fix image path in list_archive_files 2016-08-16 15:04:18 -04:00
Mike McLean
a22054395b use python json, but fall back to simplejson 2016-08-08 18:04:26 -04:00
Matt Prahl
16fdb3b14e Removes unnecessary declaration of results as an empty dict, and modifies styling for PEP8 compliance 2016-08-08 18:00:05 -04:00
Mike McLean
97d7c9d2ea don't try to unlink src after safer_move()
fixes issue introduced by PR#114 (Support scratch dir on separate mount)
2016-08-08 15:02:57 -04:00
Mike McLean
8bd4b49822 use safer_move on hub 2016-07-26 16:20:54 -04:00
Matt Prahl
f237fd5100 Adds unit tests for tasks.py
Adds Vagrant support to run unit tests
2016-07-21 17:08:45 -04:00
Mike McLean
9bf70b0c2e fix handling of strict option in get_image_archive() 2016-07-12 17:45:15 -04:00
Xibo Ning
1e2d0e6622 fix the issue that listArchiveFiles() returns empty list
for content generator archives
2016-07-08 10:42:55 +08:00
Ralph Bean
7530b8ce77 Remove mktask in favor of make_task (and fix all references). 2016-06-08 12:08:05 -04:00
Mike McLean
3c0c3fc5a8 query history by cg 2016-05-18 18:29:58 -04:00