tools/repa.git
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>