summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Ed Bartosh [Fri, 12 Dec 2014 14:43:51 +0000 (16:43 +0200)]
Reworked repa diff
Now repa diff uses _service:gbs:_git-meta to get tags
from compare project.
It makes it much faster and reliable than previously.
Fixes: #1869
Change-Id: I5b11845afe2c73b2de38cb830d050fb57742c0ed
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 14 Dec 2014 14:28:21 +0000 (16:28 +0200)]
Code cleanup
Fixed pylint warnings
Change-Id: If091039bc80cd0b314eab7223753dc91ca8dd630
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Markus Lehtonen [Wed, 2 Jul 2014 15:02:11 +0000 (18:02 +0300)]
Drop 'Commit' keyword from the submitrequest info
Commit is not used by anything and it doesn't make any sense for group
submissions (which have multiple commmits, one per project).
Change-Id: I3519017a68dec57e5319a5437379d1bc8cd75bb3
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Tue, 1 Jul 2014 13:05:19 +0000 (16:05 +0300)]
List all projects in submitrequest message
There are multiple gerrit projects in case of group submissions. We need
to list all of them in the SR message.
TODO: list all commits, too
Change-Id: Icc896389920f4ccf942cdbdd7a70fed21d9ed997
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Tue, 17 Jun 2014 20:22:28 +0000 (23:22 +0300)]
Implement --noaggregate command line and config option
After adding arm targets to Tizen:IVI and Tizen:Common it
became impossible for repa to create groups as every submission
contains mic-bootstrap and qemu aggregated packages. Repa doesn't
allow to group submissions if they contain the same packages.
This is quite ugly solution. repa group should be refactored
to allow proper implementation.
With this line in config:
noaggregate = mic-bootstrap-x86-arm.rpm|mic-bootstrap.rpm|\
mic-bootstrap-debugsource.rpm|qemu-accel-armv7l.rpm|\
qemu-accel-armv7l-cross-arm.rpm|qemu-linux-user-cross-arm.rpm
it should be possible to create groups again.
Fixes: #1990
Change-Id: I4d13a95e6947634df87eead2821efbd943d85822
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 13 Jun 2014 09:33:43 +0000 (12:33 +0300)]
group: Remove binary package check
Check for existance of binary packages has been removed as
for some repositories like Tizen:IVI arm/i586 build could be disabled
for almost all packages. This makes repa group fail for any submission.
Change-Id: I089418dd01687ab27855d12b58ad6c1d42aaf627
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 13 Jun 2014 09:23:53 +0000 (12:23 +0300)]
create_sr: Fix unicode issue
When the submitter has non ascii characters in the name,
repa accept fails to create SR with the following error:
$ repa accept submit/tizen_common/
20140610.120852
submission submit/tizen_common/
20140610.120852
Traceback (most recent call last):
File "/usr/bin/repa", line 9, in <module>
load_entry_point('repa==0.2', 'console_scripts', 'repa')()
File "repa/main.py", line 130, in main
return args.func(args)
File "repa/accept.py", line 57, in run
argv.project, argv.comment)
File "repa/common.py", line 104, in accept_or_reject
str(meta['obs_target_prj']), message=message)
File "repa/obs.py", line 174, in create_sr
cgi.escape(str(message))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9'
in position 13: ordinal not in range(128)
In the above example, my name is "St\xe9phane Desneux" and
\xe9 is 'e' with acute in iso-8859-15 .
Fixes: #1979
Fixes: #TINF-618
Change-Id: Ied208005d2cb1e4ad0bd785418aa3bfe77d70bc0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Thu, 12 Jun 2014 12:54:45 +0000 (15:54 +0300)]
list: Implement --ignore command line option
This option gives user possibility to ignore broken state of
packages. For Tizen:Common and Tizen:IVI it's must have currently
as _aggregate packages are broken in prerelease projects because
of OBS bug. This causes wrong status reported for all submissions.
Change-Id: Iaac19a922a4b5996aff8d7cd277f20ec6868794c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Thu, 12 Jun 2014 11:30:30 +0000 (14:30 +0300)]
info: Excluded 'disabled' build statut from the list
With a lot of packages in 'disabled' state repa info produced
a very long output, which makes it too hard to understand and
analyze. Excluding it should make an output more useful.
Change-Id: I0b2d4999cd974d534c44a4ccb61d87573932c9f2
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Thu, 12 Jun 2014 11:26:34 +0000 (14:26 +0300)]
group: Implemented parallel package aggregating
This change should speed up group creation. Currently it's too slow,
especially for submissions with a lot of rebuilt packages.
Fixes: #1955
Change-Id: Id271e1bb30897bbb3807ac4221acef32d4d3eed1
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Thu, 12 Jun 2014 11:26:34 +0000 (14:26 +0300)]
group: Implemented parallel package aggregating
This change should speed up group creation. Currently it's too slow,
especially for submissions with a lot of rebuilt packages.
Fixes: #1955
Change-Id: Id271e1bb30897bbb3807ac4221acef32d4d3eed1
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Mon, 26 May 2014 10:59:43 +0000 (13:59 +0300)]
Skip conflicting submissions when creating a group
It's hard for users to create the group with many submissions as
every time conflict is found group creation fails and they have
to start grouping again, removing conflicting submission.
This change makes repa to skip conflicting submission and continue
group creation without it. It should simplify and spead up RE work a lot.
Change-Id: I5a08059849e63e7fb8a07e4b05f9c81846d8af57
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 21 May 2014 14:36:51 +0000 (17:36 +0300)]
Started to work on 0.3
Change-Id: I11782fa592cbc11740dfe9b2ae62520d1b810c9b
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 21 May 2014 09:17:58 +0000 (12:17 +0300)]
group: disable publishing when aggregating packages
If publishing is enabled OBS publishes repository after each
aggregate operation, which triggers a lot of not needed image
creation and testing events. It can cause wrong test results and
accepting of bad submissions.
Change-Id: Idf6fd28101feb7857fca4b7830acd797e2b4d487
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Tue, 20 May 2014 17:36:32 +0000 (20:36 +0300)]
Updated debian and rpm changelogs
Change-Id: Icb7ecc36649eaa580b6ac7a91cf9a16a9955820e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Tue, 20 May 2014 17:29:25 +0000 (20:29 +0300)]
Added release notes for v0.2
Change-Id: I787a06d2b1bbb88bcd1a943657759ad0e89f9228
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Tue, 20 May 2014 16:33:26 +0000 (19:33 +0300)]
Convert repa.changes into rpm format
Stopped using OpenSUSE format in favor of using git-rpm-ch
to maintain changelogs.
Change-Id: Ifd0992b7e74aa348c5f2ca91b28bab171826f473
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 9 May 2014 19:45:57 +0000 (22:45 +0300)]
Correct man page for accept and reject subcommands
Fixed wrong description of accept and reject. They don't accept
list of submissions and submit groups. They accept only one parameter -
submission or submit group.
Change-Id: Ib4add5cbe027e02638a742cd156c1c5d84aceea3
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 11 May 2014 20:33:16 +0000 (23:33 +0300)]
Implement repa diff
repa diff shows the difference between manifest of target project and
another (usually base) project. It also shows latest accepted submission
in another project and its status in target project.
repa diff should help RE to mantain the difference between base
and target projects.
Change-Id: I6ef93a5eb2c5a60b3778a721caa8be47da9f5882
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 18 May 2014 09:40:47 +0000 (12:40 +0300)]
common.py: Introduced get_prerelease_projects API
Although it's tiny API it makes sense to implement it as
it keeps usage of OBS_PROJECT_PREFIX inside common.py
Change-Id: Ib5166f4804499576f8540a3141129507410beb49
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 18 May 2014 09:36:34 +0000 (12:36 +0300)]
obs.py: Refactored get_project API
Separated get_project_list API from get_project as it will be called
by repa diff and other higher level code.
git_project performs a lot more queries then just getting list of
projects as it als gets build results and descriptions for every
project. git_project_list only gets the list of projects, which is
much faster.
Change-Id: I285b19b478d384cd4473ba2b8a8ef9637c611538
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Mon, 12 May 2014 10:07:04 +0000 (13:07 +0300)]
Add -group suffix to the path
To distinguish groups from simple prerelease projects let's add
-group suffix to project path.
This was requested by QA team as they may consider to test only
group images as they don't have enough capacity to test all submissions,
so they need a way to distinguish groups.
Change-Id: I6c5f6d87d5e6b7ee1a51c84407876b8513111fa8
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 11 May 2014 20:29:50 +0000 (23:29 +0300)]
obs: Implement get_srs function
Implemented get_srs to get SRs from the project.
Optionally SRs can be filtered by package and comma-separated
list of statuses.
Change-Id: If003f25e1d54742e13cd1c1d1418598ee4baea15
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 9 May 2014 19:16:37 +0000 (22:16 +0300)]
Create one SR for all packages in submission
Currently repa creates one SR per package.
This change implements creation of one SR per multiple packages by using new
schema of POST /request API https://api.opensuse.org/apidocs/request.rng
Note, that osc API doesn't support this schema, so it can't be used.
Fixes: #1386
Change-Id: Iae5cb55b0b5f489b9596c5a79e0845ec18a2ba51
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 4 May 2014 16:57:30 +0000 (19:57 +0300)]
repa info: Fix build status reporting
When repa shows build failures it should not show packages in 'building'
and 'blocked' statuses.
Change-Id: I1ad2af336c9499105d869104e45d83afcbc8e903
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 2 May 2014 16:22:53 +0000 (19:22 +0300)]
Fix check for common packages
This check should not allow to create group from submissions with common
binary packages. It didn't work because of the incomplete implementation.
Fixes: #1847
Change-Id: I7e756913f8756bdb330bf31dae9574e973717f6c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 2 May 2014 15:36:38 +0000 (18:36 +0300)]
Added 'waiting for images' status to repa list output
This status will be shown when there is no information about images in meta.
Change-Id: I0263f9860fccf400ba36bf1d77840d0d006692f6
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 30 Apr 2014 20:17:53 +0000 (23:17 +0300)]
list: Added 'blocked' status
Blocked status was not processed before, which caused incorrect
status reporting by repa list.
Change-Id: Ibf219d914ef8cc3dc2a7d30881dbb6520c0fc19e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Mon, 7 Apr 2014 13:12:48 +0000 (16:12 +0300)]
Implemented --showurls option
Some users want to see urls in repa list output. It's inconvenient for
them to use repa info for every submission to see the urls.
Fixes: #1789
Change-Id: I7cc31bc327fc9593ab21efdd85fe4fe6accfd544
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Mon, 7 Apr 2014 10:36:08 +0000 (13:36 +0300)]
Fixed formatting of output for repa list
Make status field wider as some statuses don't feet.
Change-Id: Ia79d9dae30b76f669bff57d556e201c4e28ffd52
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 2 Apr 2014 12:32:34 +0000 (15:32 +0300)]
Implement --colorize option
For now only status is colorized in repa list output. More colorized
pieces will come if users request them.
Fixes: #1765
Change-Id: Ic0517aaa03f443d4e661018a9638712a9afa514b
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 2 Apr 2014 12:20:25 +0000 (15:20 +0300)]
Implement Colorizer class
This is going to be used to colorize repa output.
Change-Id: I5d9eddc427c80b787b4fd5d05a46e08b624aa4cc
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 30 Mar 2014 08:57:00 +0000 (11:57 +0300)]
Get rid of --regexp command line option
Dropped --regexp in favor of --project, which is much more clear and
used in all modes.
Fixes: #1772
Change-Id: I5347190f41f6c704fe2091909435aaeaa5452f62
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 2 Apr 2014 06:25:46 +0000 (09:25 +0300)]
Minor refactoring of get_status
Change-Id: Ia5f5e02b9231d11c85b884be9c7c64c64bbfed11
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 2 Apr 2014 06:15:54 +0000 (09:15 +0300)]
Repa list: show correct status for submissions with unresolvable packages
repa list was showing overall status as 'Ready' for submissions with
unresolvable packages.
Fixes: #1776
Change-Id: I5ca5e0cc481329de8aa487cd212a66a29f005b94
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 30 Mar 2014 09:52:56 +0000 (12:52 +0300)]
Update man regarding global options
Mentioned <global options> in synopsys.
Renamed section OPTIONS->GLOBAL OPTIONS
Change-Id: Iac09199756ef0d1e9d24a851be0266f6a9a370b6
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 30 Mar 2014 09:50:42 +0000 (12:50 +0300)]
Update repa version in the man page
Change-Id: Ie9d3aca2ca3f80fa0f24fa84b7dcb7d3896d42b8
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 30 Mar 2014 09:48:31 +0000 (12:48 +0300)]
Mention --section in man page
Global command line option -s/--section was not mentioned in the man.
Change-Id: I5b765258fb2d3b76e5dfcecb22aae69262806b25
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 29 Mar 2014 23:12:15 +0000 (01:12 +0200)]
Add configuration file info to the man page
Fixes: #1764
Change-Id: I62d75e44aac796605c23cfc5ad9820e44b55de9d
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 29 Mar 2014 22:31:52 +0000 (00:31 +0200)]
Make project mandatory config option
As --project option was mandatory in most of the subcommands let's make
project mandatory config option.
--project becomes non-mandatory global option.
Fixes: #1763
Change-Id: Id7f94fc5d60a1d163bde614ecf0605f944448337
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 29 Mar 2014 20:18:29 +0000 (22:18 +0200)]
Implement repa info
repa info shows as much information about one submission as possible.
Fixes: #1195
Change-Id: I3822bae22c0f86abdaa842c067c95ade6f99d918
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 29 Mar 2014 20:15:43 +0000 (22:15 +0200)]
Reduce amount of information in repa list output
Repa info will print only small part of information available.
More detailed output will be implemented in repa info mode.
Change-Id: I8e7ba14588f7e550515f0c03cfc84051ee2d962c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 29 Mar 2014 18:42:55 +0000 (20:42 +0200)]
obs/get_projects: retry OBS operations
get_projects starts to fail to query OBS more frequently in parallel
mode. Using nice implementation of retry decorator to repeat queries for
2 methods running under multiprocessing pool.
Change-Id: I175a528d9c0d7aa2951c3b659a1f5f85a8ae614f
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 29 Mar 2014 17:50:06 +0000 (19:50 +0200)]
Implement --processes options for repa list
Repa list makes a lot of queries to OBS, which results in slow output.
With --processes it queries OBS in parallel utilizing functionality of
multiprocessing module.
This is an experimental feature. Hopefully it will go away when repa
will start using IRIS ReST API.
Fixes: #1762
Change-Id: I47424e5e5c044dd75589f0d0dcb01a7bbff068e8
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 29 Mar 2014 18:07:38 +0000 (20:07 +0200)]
Start to work on v0.2
Change-Id: I17b1b12a66bc34a0b725b0e38644ef14b6f8b55d
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 29 Mar 2014 22:02:53 +0000 (00:02 +0200)]
Fix packaging issue
Fixes this build failure:
File not found by glob: .../site-packages//repa-0.2-*.egg-info
File not found by glob: .../site-packages/repa-0.2-*-nspkg.pth
Change-Id: I5ea703220aa030773bfb598e12d4b882b6e8167a
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 19 Mar 2014 18:56:39 +0000 (20:56 +0200)]
repa group: fixed type of --force option
Change-Id: I3199ac4105725cf575dd0569759537ec42ebace0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Tue, 18 Mar 2014 18:45:05 +0000 (20:45 +0200)]
Added --force option for repa group
By default repa now checks if binary packages exist in submission and
doesn't allow grouping submissions without binary packages.
--force option allows to bypass this check, i.e. allows to group failed
submissions. This can be useful for grouping failed submissions to
reject them as a group.
Fixes: #1707
Change-Id: Ieb66718839e19b63de5039757a2bbc63d02016c6
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Tue, 18 Mar 2014 18:12:58 +0000 (20:12 +0200)]
Update repa.changes for release 0.1.1
Change-Id: I67145fe75644fc6c18a73a6ec2c6676aee13c094
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10690
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Tue, 18 Mar 2014 14:39:41 +0000 (16:39 +0200)]
Added Release Notes
RELEASE_NOTES file is required to be included to the package by Tools
release manager. They're automatically processed when release is
published and added to the Tools release notes.
Change-Id: Ifb392924c0e25aa845df6d1095ee4b4e5598a932
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10687
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Reviewed-by: Jian-feng Ding <jian-feng.ding@intel.com>
Ed Bartosh [Mon, 17 Mar 2014 15:05:38 +0000 (17:05 +0200)]
Fixed crash when rejecting broken package
To obtain revision create_sr code queries source package and crashes
when source is broken with ObsError: <obs>cat't query source <package>
from project <prerelease project>: HTTP Error 400: service gbs failed
This makes it impossible to reject broken submissions.
This change catches exeption and tries to avoid querying the source by
providing revision 1 to create_sr API. As for rejecting it doesn't
matter much which revision to reject it should be safe.
Fixes: #1687
Change-Id: I21b9dda32686c94bfb8e81201424b3e7e7f128b5
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10674
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Ed Bartosh [Mon, 17 Mar 2014 14:51:16 +0000 (16:51 +0200)]
obs.py: Raise RepaException instead of ObsError
It's better to raise RepaException as it is caught in main.py and error
is printed on stderr. ObsError produces ugly python traceback and scares
users.
References: #1687
Change-Id: Iea85eb263c7e4010df1fa50bf6e16da1ef7f1af0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10673
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 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>