summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Ed Bartosh [Mon, 17 Mar 2014 13:33:17 +0000 (15:33 +0200)]
Catch osc exceptions in obs.py:get_projects
Catch OSCError exceptions and raises RepaException with the meaningful
error message. RepaException is processed in main.py and prints error
message to stderr.
Fixes: #1708
Change-Id: I966013766e2756d64edf02c9cc6ac51d42f3a525
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10671
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Mon, 17 Mar 2014 13:27:06 +0000 (15:27 +0200)]
Renamed OBS_PREFIX -> PROJECT_PREFIX
This is done due to refactoring purposes to make it possible for obs.py
to import common module.
Change-Id: I511a9ea57e320930a93bb5c1b45306287e832a59
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10670
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Mon, 17 Mar 2014 11:05:02 +0000 (13:05 +0200)]
Add Submitter to SR comment
Submitter will be added to SR commit If 'submitter' key is present
in meta. This key should be added by backend.
Fixes: #1723
Change-Id: I731df88a247962467b849b9572b4ab9f85077d44
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10666
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Mon, 17 Mar 2014 10:34:46 +0000 (12:34 +0200)]
Put commit id into the SR comment
Current implementation puts git tag as a commit id into the SR comment.
This change will make repa to use git_commit from the meta if it's
present there. Backend should be also modified to put git_commit into
meta: https://otctools.jf.intel.com/pm/issues/1732
Fixes: #1709
Change-Id: Iae01404652160fb4d86a1c0236e226b28773d225
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10664
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Sat, 8 Mar 2014 06:01:59 +0000 (08:01 +0200)]
Update man page regarding grouping
Added notice explaining the purpose(image testing) and details(binary
aggregation) of implementation of groups.
Fixes: #TINF-492
Change-Id: Id5b71891c9ffffe9b962637ed7c65442550930bc
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10469
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Tue, 25 Feb 2014 16:40:54 +0000 (18:40 +0200)]
Added docstring to show_images function
Change-Id: I919bfe46b4023bc344927a57040f3c24e294a07c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10079
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Tue, 25 Feb 2014 16:09:40 +0000 (18:09 +0200)]
Added obs and download urls to 'repa list' output
Repa gets both urls from correspondent fields in meta. If they aren't
present in meta repa tries to guess them. Guessing part is temporary.
It will be removed when backend provides urls.
Fixes: #1674
Change-Id: I9f8f63572ae3407b08f1e9d0f7028d237f4fc1d9
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10078
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Thu, 6 Feb 2014 15:44:53 +0000 (17:44 +0200)]
Added --project command line option.
This parameter is used to avoid resolving submission to
multiple products.
It was added to group, rmgroup, accept and reject subcommands.
Fixes: #1625
Change-Id: Id93af4564c370f92fad2397fda0955cb122e66ae
Reviewed-on: https://otctools.jf.intel.com/review/9632
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 5 Feb 2014 11:34:15 +0000 (13:34 +0200)]
Started to work on 0.1.1
Change-Id: Ic77a37096b00bb8854b7077b3256aad7b92dfa98
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/9631
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 31 Jan 2014 11:46:11 +0000 (13:46 +0200)]
packaging: Set project home page to tizen.org
Change-Id: Ie484e920cf32f26653b776fdd8ee6fa5212cddda
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/9598
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Markus Lehtonen [Fri, 31 Jan 2014 11:44:54 +0000 (13:44 +0200)]
packaging: set upstream repository to point to tizen.org
Change-Id: If9943671c5c001defe0ee3eb98810e2914ea2be3
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/9597
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Markus Lehtonen [Fri, 31 Jan 2014 07:53:19 +0000 (09:53 +0200)]
documentation: minor typo fix in man page
Change-Id: I7526c0e84efa50b12ce67bcc913430826b87e3b8
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/9589
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Markus Lehtonen [Fri, 31 Jan 2014 11:52:13 +0000 (13:52 +0200)]
Set project wiki to tizen.org
Change-Id: I9795e187d0b705471925479beb6973adca750fd8
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/9599
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Mon, 9 Dec 2013 08:32:32 +0000 (10:32 +0200)]
Quit gracefully when interrupted with ^C
Hide KeyboardInterrupt traceback to avoid scaring users.
Change-Id: I9434f984104ddeec0563495b62037abf1d87e210
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8393
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sun, 8 Dec 2013 21:50:11 +0000 (23:50 +0200)]
Used long and short commandline options
Change-Id: I2d7cdd3bfbd9a75fb004654fb06fb602d65f259c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8386
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sun, 8 Dec 2013 21:42:31 +0000 (23:42 +0200)]
Added --version command line option
Change-Id: I8a56ca8d37c3a4b003a7f8f4302082687d288411
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8385
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sun, 8 Dec 2013 21:37:19 +0000 (23:37 +0200)]
Added forgotten -section argument
-section argument must be added again when parser is re-created.
Otherwise it will not be shown in --help output.
Change-Id: I01f96e6a9fd4730dc839d11b1d2482f2973d119c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8384
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sun, 8 Dec 2013 21:08:48 +0000 (23:08 +0200)]
Created man page
Fixes: #1489
Change-Id: I857e63ee4e816c72eb14871a5d5dd692b156af7e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8383
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Fri, 6 Dec 2013 16:37:16 +0000 (18:37 +0200)]
Packaged for Debian and Ubuntu
Fixes: #1488
Change-Id: I1e51787ec214692cf2f812dd6dc8a8856b014b8c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8367
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-by: Aleksi Hakli <aleksi.hakli@intel.com>
Markus Lehtonen [Tue, 26 Nov 2013 11:47:44 +0000 (13:47 +0200)]
Add license file
Change-Id: I4edb327b78cc9965f2f18776279e4eadcb140d33
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8108
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Markus Lehtonen [Tue, 26 Nov 2013 12:24:35 +0000 (14:24 +0200)]
Add standard copyright statement to all source files
Change-Id: Ic23c7042f6cd995db7e6f689e2b570f2139280df
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8109
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Markus Lehtonen [Tue, 26 Nov 2013 10:42:27 +0000 (12:42 +0200)]
packaging: spec file cleanup
Change-Id: I23445c4f2af81034e23d955dd63e39febe6809d1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8107
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Olev Kartau <olev.kartau@intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Hasan Wan [Wed, 21 Aug 2013 07:26:53 +0000 (10:26 +0300)]
Create SR with git project information
Fixes: #1200
Change-Id: I19cd521ae1c2a5f8d8c5313ef13864aee103c87b
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/6042
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Eduard Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 21 Aug 2013 08:21:18 +0000 (11:21 +0300)]
Refined the output of repa list
Space separated list of images looks better from my point of view.
Change-Id: Ic4ebc7c68f349f5f5c0400a42fe5fc53a2546ca0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/6033
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
Ed Bartosh [Wed, 21 Aug 2013 08:52:17 +0000 (11:52 +0300)]
Implemented repa rmgroup
Fixes: #1194
Change-Id: Ic6a604112d9c4f30ce1904139a6332a95c78d517
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/6038
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
Ed Bartosh [Wed, 21 Aug 2013 08:23:57 +0000 (11:23 +0300)]
Moved try/except inside main function
As main is called through the entry point exception catching should be
inside it. Otherwise even local exception produce tracebacks.
Change-Id: I7845e034a17e81be7f21499bdbdc9e9ea47038bf
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/6034
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
Ed Bartosh [Mon, 19 Aug 2013 15:40:55 +0000 (18:40 +0300)]
Extended repa list output
Added more information to the repa list output.
- list of projects for the submissions
- list of images for the submissions and groups
Change-Id: I468fe0124cfa9f32dc9871ee1d847bf3d829145e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5993
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Mon, 19 Aug 2013 16:01:25 +0000 (19:01 +0300)]
Added target project to the group project name
For other pieces of the workflow and for the sake of consistency it's
better to have the same naming scheme for projects and groups.
Change-Id: I86621486220c10b2c021e639508a09e8ab953401
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5994
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sat, 17 Aug 2013 09:16:05 +0000 (12:16 +0300)]
Draft implementation of repa reject
Rejection is done by creating SRs for all packages and immediately
changing their state to 'declined'.
Fixes: #1178
Change-Id: If055613bb642272a1b238f252b5a273a6062fd85
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5955
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sat, 17 Aug 2013 09:06:10 +0000 (12:06 +0300)]
Draft implementation of repa accept
Acceptance is done by creating SRs for all packages and immediately
changing their state to 'accepted'.
This change also introduces common APIs, which will be used for further
implementation of repa reject command.
Change-Id: I35660dd266941531dd8421b7c141c904eb350b9b
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 17 Aug 2013 09:02:19 +0000 (12:02 +0300)]
OBS: Added 2 new APIs
create_sr and set_sr_state APIs have been added to OBS class.
Both APIs are generic enough to go to oscapi.
They are going to be used by repa accept and repa reject subcommands.
Change-Id: Ifca34c9b655fdb1065adc178ce0252ce38b28365
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 16 Aug 2013 13:06:24 +0000 (16:06 +0300)]
Reimplemented repa list to match grouping implementation
As grouping is done by creating submitgroup projects repa list now
gets list of related groups differently. Previously it was getting it
from special 'groups' project. Now it analyses all *:submitgroup:*
projects and picks up only groups, related to the listed submissions.
Change-Id: I181a4525706ac066fc95941d7ba80a7154105b82
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 14 Aug 2013 15:53:40 +0000 (18:53 +0300)]
Draft implementation of grouping
Grouping is done by creating group project and aggregating binaries
from submission projects into it.
Various checks for submissions have been implemented. Submissions
should have been published, they should not have common packages and
all grouped projects should have the same target project.
Note, that backend should be adjusted to build images for group
projects the same way as for submission projects.
Fixes: #1143
Change-Id: I5bdff34c951453707579579620bf3c28a0417d21
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5900
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Wed, 14 Aug 2013 15:40:07 +0000 (18:40 +0300)]
OBS: Added new APIs
get_source_packages, get_binary_packages and aggregate_packages APIs
have been added to OBS class.
All of added APIs are generic enough to go to oscapi.
All of them are going to be used by repa group subcommand.
Change-Id: I65597edfcad74687a45e9b22d81666f421354e47
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5899
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sun, 11 Aug 2013 16:43:29 +0000 (19:43 +0300)]
Draft implementation of list submissions
This implementation works only with OBS using osc API. It lists all
home:prerelease:* projects as a submissions and gets status from OBS and
from jsoned meta data, stored in description of OBS projects.
Information about groups is taken from special OBS project
home:prerelease:groups, which also holds information in jsoned form in
project description.
Fixes: #1097
Change-Id: I1fe61f755d4397c688888ce5156cbdfe1ca03e9c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5840
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
Ed Bartosh [Sat, 10 Aug 2013 19:13:08 +0000 (22:13 +0300)]
Added OBS API module
This module will be used by repa subcommands to access OBS. It's
inherited from oscapi and extends it. As soon as new APIs are mature and
generic they'll be contributed to oscapi.
This change adds 2 new API calls: get_packages and get_build_results.
Change-Id: I284f9d62c634254f54b8545a0f7258ad5c7f704f
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5838
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sun, 11 Aug 2013 20:26:21 +0000 (23:26 +0300)]
Moved RepaException to common.py module
This exception will be called from may repa modules. Let's put it in
common. Other common entities will go there too.
Change-Id: Ice0bc5abf5386a73dbb7b8457554688a2493f148
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5841
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
Ed Bartosh [Sun, 11 Aug 2013 15:17:34 +0000 (18:17 +0300)]
Implemented config file processing
Configuration is taken from /etc/repa.conf and ~/.repa.conf, so it's
possible to specify system defaults in /etc/repa.conf and user-related
configuration options in ~/.repa.conf. ~/.repa.conf has higher priority
and any option from /etc/repa.conf can be reset in ~/.repa.conf
Configuration processing is implemented in a way that default values for
command line parameters are taken from configuration file(s).
Configuration section to use can be specified in command line too.
Fixes: #1141
Change-Id: I632f22674c282021983bc6a496ef1fccc0da3137
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5839
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
Ed Bartosh [Sat, 10 Aug 2013 18:55:03 +0000 (21:55 +0300)]
Added namespace package example
Example shows how to implement namespace repa package. Namespace
packages are used to distribute extra functionality separately from
repa, but within repa namespace. External modules implemented this way
can be imported this way 'from repa import module'.
Change-Id: I79da170c4ba2562c7a022428c556ba06f2519e49
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5837
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sat, 10 Aug 2013 18:25:25 +0000 (21:25 +0300)]
Added plugin example
Example shows how to implement 3rd party repa plugins
Change-Id: I0bfc523a87d867e7d8564e00ef317d1ac824b9f2
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5836
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sat, 10 Aug 2013 16:34:14 +0000 (19:34 +0300)]
Implemented main module and plugin system
2 empty command modules are included: list and group. Their
implementation will be added soon. At the moment they're just printing
messages to the console.
Main module looks for subcommands using setup.py entry point group
'repa_commands'. This allows to develop and distribute extra repa
commands independently.
Change-Id: I599a040f33d137909539020027a6a35a341ea35c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5834
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Sat, 10 Aug 2013 12:47:25 +0000 (15:47 +0300)]
Packaged for rpm
Created empty rpm package. At the moment only README file is included.
It's a base for further development.
This change integrates this project into OTC Tools continuous
integration system, which builds and installs every change, sent for
review to Gerrit.
Fixes: #1140
Change-Id: Ie9875b42c5a0dad85a72a2e0c2772c5070935878
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5833
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
Ed Bartosh [Fri, 9 Aug 2013 16:03:15 +0000 (19:03 +0300)]
Init
Change-Id: Ic32024510cd3d36f4cbbc39c5f46547a903690bf
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>