tools/repa.git
10 years agoAdded --version command line option
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>
10 years agoAdded forgotten -section argument
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>
10 years agoCreated man page
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>
10 years agoPackaged for Debian and Ubuntu
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>
10 years agoAdd license file
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>
10 years agoAdd standard copyright statement to all source files
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>
10 years agopackaging: spec file cleanup
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>
11 years agoCreate SR with git project information
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>
11 years agoRefined the output of repa list
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>
11 years agoImplemented repa rmgroup
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>
11 years agoMoved try/except inside main function
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>
11 years agoExtended repa list output
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>
11 years agoAdded target project to the group project name
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>
11 years agoDraft implementation of repa reject
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>
11 years agoDraft implementation of repa accept
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>
11 years agoOBS: Added 2 new APIs
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>
11 years agoReimplemented repa list to match grouping implementation
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>
11 years agoDraft implementation of grouping
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>
11 years agoOBS: Added new APIs
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>
11 years agoDraft implementation of list submissions
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>
11 years agoAdded OBS API module
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>
11 years agoMoved RepaException to common.py module
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>
11 years agoImplemented config file processing
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>
11 years agoAdded namespace package example
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>
11 years agoAdded plugin example
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>
11 years agoImplemented main module and plugin system
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>
11 years agoPackaged for rpm
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>
11 years agoInit
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>