Ed Bartosh [Sat, 10 Jan 2015 19:58:55 +0000 (21:58 +0200)]
Add placehoders for new actions
Printed 'Not implemented' messages for 'rebuild' and 'remove' actions.
Raised exception for unsupported actions.
Change-Id: I1c5955030aa0fa9f8943dab33a41e9b6c3ee6fca
Ed Bartosh [Sat, 10 Jan 2015 19:52:22 +0000 (21:52 +0200)]
Rename job_accept_or_reject.py -> job_re.py
This script will be doing more than just accepting and rejecting
submissions. It will at least support rebuilding and removing
submissions. So it's better to give it more appropriate name.
Change-Id: I788c9acbcf3ae81fd2a7fd23c6acc00bd51a3ca8
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 9 Jan 2015 23:21:56 +0000 (01:21 +0200)]
buildservice: Add put_source_path API
Added new API put_source_path to put content using source OBS API.
This API will be used in job_sync_obs.
Change-Id: Ia4c7246b0f1e93c729bf9ced2c81aedbd4d5aa1e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Fri, 9 Jan 2015 23:12:59 +0000 (01:12 +0200)]
buildservice: Add get_source_path API
Added new API get_source_path to get content from source OBS API.
This API will be used in job_sync_obs.
Modified get_src_file_content to use get_source_path
to avoid code duplication.
Change-Id: Ie2276c772544392e8b10d60813f54ffe287963b0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Mon, 5 Jan 2015 22:35:37 +0000 (00:35 +0200)]
Add job_sync_obs script
Script syncs content of scm/meta/obs to OBS.
It's called from sync-obs job.
Script has a dry-run mode, which is turned on by configuration option
SYNC_OBS_DRYRUN=1 in jobs/configuration. In this mode it only prints
the difference, but does not sync it to OBS. This mode should be
turned on for first deployment.
Fixes: #1887
Change-Id: I1d6d0c3daa64b97f2bde9f9401b78a0aac65b777
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
ZhuoX Li [Wed, 12 Nov 2014 02:49:19 +0000 (10:49 +0800)]
Use id of SR to get more info from OBS by osc api.
The upgraded OBS for 2.5 version will provide a few info,
it is less than previous version.But we need more info to
work in request job. We can request the osc api to
get more data by 'id'.
Fixes: #2075
Change-Id: I41b62a5a437a5fe375a1c19d9cfdb96c7fca1e78
ZhuoX Li [Tue, 9 Dec 2014 08:28:17 +0000 (16:28 +0800)]
Fix the bug about checking submit tag name.
If tag is 'submit/tizen/mobile/
20141119.110835', we get the 'tizen' branch
by parsing the tag name. In fact, we should get 'tizen/mobile' branch.
Fixes: #2245
Change-Id: I89ba0ccef0ff823234c1604df7a828ac355453e9
ZhuoX Li [Tue, 9 Dec 2014 06:47:57 +0000 (14:47 +0800)]
Add a new doc about release note in JJ.
Fixes: #2259
Change-Id: I89797cf30a0da99bc0ee49546899a7a2830109e2
ZhuoX Li [Fri, 21 Nov 2014 10:50:48 +0000 (18:50 +0800)]
Fix the aggregate packages are always broken state.
In a prerelease project (not related to aggregate packages),
the aggregate packages linked from the main project are always
in broken state.Keep the meta of aggregate packages are the same
as the main project to solve it.
Change-Id: Iad5e7365150701fa832ed0b3f2de2d47c8acd927
Fixes: #2188
Xu Chang [Mon, 8 Dec 2014 08:35:29 +0000 (16:35 +0800)]
Catch GitRepositoryError exception.
When running git checkout is failed, it maybe raise a GitRepositoryError
in job_load_repos.yaml.py.It should be catched.
Fixes: #2144
Change-Id: I0e64a69c5dfe1ebc0e46d1007b7a6575a53959c5
Huanhuan Li [Wed, 26 Nov 2014 02:08:13 +0000 (10:08 +0800)]
Get csrftoken from login page
Since sign in form has been deleted from home page, and there is no
csrftoken on home page. So get it from login page.
Change-Id: Icedc51d8578f5a209089b43bfb9440640c95e42c
ZhuoX Li [Mon, 1 Dec 2014 09:01:20 +0000 (17:01 +0800)]
Add new function to replace the xml2obj
Change-Id: Id2d208fd2cfa9ab64e19827775bfdb852c650504
ZhuoX Li [Mon, 17 Nov 2014 06:38:15 +0000 (14:38 +0800)]
Add 2014 into the license title.
Change-Id: I9982b9f786e8f1b6b69411b7cd9160b0fe4d0b61
Lin Yang [Wed, 19 Nov 2014 04:01:26 +0000 (12:01 +0800)]
Add header of inbundle function xml2obj
Change-Id: I0190f83f571fc03e17800f371140871a139e4f6e
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
ZhuoX Li [Mon, 17 Nov 2014 03:09:17 +0000 (11:09 +0800)]
Update the license to GPLv2
Change-Id: I905bb9e9baee9638a1daccd525d91c28144f3355
Fixes: #2231
ZhuoX Li [Wed, 12 Nov 2014 10:08:44 +0000 (18:08 +0800)]
Fix duplicate prefix on package version.
Duplicate prefix on package version on prerelease project.
Eg: The error prefix:
Modello-Homescreen-0.0.2-
20141111.000000.
20141111.
20141111.000000.1.1.noarch.rpm
We should create the prefix, like this:
Modello-Homescreen-0.0.2-
20141111.000000.1.1.noarch.rpm
Fixes: #2218
Change-Id: Ie9d552628eefd799a4983c40b137585fba66cb40
ZhuoX Li [Wed, 5 Nov 2014 05:58:41 +0000 (13:58 +0800)]
Add download url, obs url to meta
Change-Id: If52205e06fd783debe3f780650d2ca3ddc26ffb3
Fixes: #1732
Igor Stoppa [Tue, 4 Nov 2014 09:28:32 +0000 (11:28 +0200)]
Make Pylint happier.
This patch removes a handful of pylint warning:
* indentations
* unused imports and variables
It also replace the error code with its symbolic counterpart,
to make the code more readable.
Change-Id: Ib4910068be77ca694632f7559bc105a012b7e68e
Igor Stoppa [Tue, 4 Nov 2014 14:50:47 +0000 (16:50 +0200)]
Move image filtering to tester job.
To simplify the interaction between jobs, the tester job_will
be executed with all the images produced.
The tester job will perform the filtering, deciding which images to
download and test.
Empty data will be providedi for images that are not supported.
Change-Id: I554e51e9125dadc522e45351e14b70df4f757775
Igor Stoppa [Tue, 4 Nov 2014 13:31:11 +0000 (15:31 +0200)]
Transition to logging facility.
Use logging library.
Change-Id: I4331d7b1ac08f6d8c16e95899b1b4e1d4179e5c0
Igor Stoppa [Tue, 4 Nov 2014 08:51:11 +0000 (10:51 +0200)]
Remove HACK for BOSS. BOSS is dead \o/
The code is not needed anymore.
Change-Id: I1465395b88d2df98d6ab2d65afb50eb3c7157b41
Liu jue [Mon, 9 Jun 2014 03:04:54 +0000 (11:04 +0800)]
Delete the ks file message when trigger job-sync-snapdiff
Because if not do like this , when jenkins use the data as a shell
command's parameter , it will cause an error because of the too long
data .
Change-Id: Ie73c3dff6d33900910fee3d2839c88659d73f186
ZhuoX Li [Thu, 23 Oct 2014 11:16:00 +0000 (19:16 +0800)]
Generate MAC address by random.
Using the simple random number instead of the global variables
to generate a MAC address.
Change-Id: If3700e1374e1be4410f7504659348dddd1a24637
Fixes: 2132
ZhuoX Li [Wed, 22 Oct 2014 10:07:20 +0000 (18:07 +0800)]
Change release name in prjconf from OBS.
Set release tag in prjconf so that the rpm version
in target project will be greater than those in the base project.
To solve the issue 'package version in prerelease project must be
higher than in target project'
Change-Id: Icdc2cc40befcd370b61bc6df3c33ace9aebfdb1c
Fixes: #1846
ZhuoX Li [Fri, 17 Oct 2014 01:49:31 +0000 (09:49 +0800)]
Add MAC addrees into mic-appliance.
When create imager, Mic-appliance is started without specified MAC address.
As the result, all mic-appliance instances that run in same network,
get also same default MAC address.
This potentially leads to collisions and conflicts in addressing
mic-appliance VM sessions.
So need to add unique MAC addresses, when run mic-appliance.
Fixes: #2132
Change-Id: I870798cabb8f6043a4a0182619b8e49c04fdba59
gaoxuesx [Fri, 17 Oct 2014 05:34:51 +0000 (13:34 +0800)]
Ignore verifying the SSL certificate
Change-Id: If3211a1b60c2bbef86513b0c6eed142838619aea
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
ZhuoX Li [Wed, 15 Oct 2014 01:41:50 +0000 (09:41 +0800)]
Provide a open OBS url to IRIS.
In 'package built' event, jenkins jobs publish a private url
to IRIS, others can't get access to it.
So change it to an open url.
Fixes: #2164
Change-Id: Ia87d9af4d13e611083b0fa23c5162c87a497d78b
ZhuoX Li [Fri, 17 Oct 2014 08:45:46 +0000 (16:45 +0800)]
Modify the testcase for the new gbp version(0.6.15)
Change-Id: If6884072f0ab974f486d9e8a1bf779c1a93ad47a
ZhuoX Li [Fri, 10 Oct 2014 07:05:48 +0000 (15:05 +0800)]
Change the filter to trigger post-image-creation
All project will trigger the post-image-creation in job_image.py
to provide more image info for IRIS.
Change-Id: Ib20875a4f433790df923941f87e2e2c29c73c17a
ZhuoX Li [Tue, 30 Sep 2014 06:06:47 +0000 (14:06 +0800)]
Publish 'image_created' event to IRIS.
Add 'image_created' event after running image job.
Change-Id: I0d347b045c67b19d660a97fb908346b721873cc7
ZhuoX Li [Tue, 30 Sep 2014 05:58:58 +0000 (13:58 +0800)]
Publish 'image_building' event to IRIS.
Add 'image_building' event before trigger image job.
Change-Id: Ie68daaf8a93388646f82a0fc1f69c0e71eec8b89
ZhuoX Li [Tue, 30 Sep 2014 04:55:44 +0000 (12:55 +0800)]
Publish 'repa action' event to IRIS
Publish 'repa action' event when a pre-project is accepted/rejected
by repa.
Change-Id: Ia5d7968793aba0a124ea78f82e4e10b70e4213e6
ZhuoX Li [Mon, 29 Sep 2014 12:43:34 +0000 (20:43 +0800)]
Publish 'rpm build' event to IRIS
Add a job to get the result of being built rpm.
Change-Id: Ie3b823e48c0e942cd3c2da501ea6862614df4f1e
ZhuoX Li [Mon, 29 Sep 2014 06:30:09 +0000 (14:30 +0800)]
Publish 'pre_created' event to IRIS
Publish 'pre_created' event when a pre_project is
created for a submission tag
Change-Id: Ib824f46e7d1163b18d780e395328ff2e1ee56eab
ZhuoX Li [Fri, 10 Oct 2014 05:29:35 +0000 (13:29 +0800)]
Import get_python_lib to pornt the python module.
Change-Id: I1e200794582248a07cb18fcd19123a0d5ae3885a
Huang Hao [Mon, 29 Sep 2014 06:29:26 +0000 (14:29 +0800)]
Catch exceptions for IrisRestClient.
Print exception when execption raised in IrisRestClient code. But
don't break original workflow.
Also change event type into a part of url, so it's more easier
to see that in access log.
Change-Id: Idca9874e4904366b3333d57b6be531548e0e8401
gaoxuesx [Thu, 18 Sep 2014 05:44:37 +0000 (13:44 +0800)]
Remove some useless code
Change-Id: Ic7a22b7be9761074c7d4a3e666674a47337ceb8c
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
ZhuoX Li [Wed, 3 Sep 2014 08:44:40 +0000 (16:44 +0800)]
Publish "submitted" event to IRIS.
Add a new function publish_event() in IrisRestClient class.
Use this function to publish "submitted" event when a submission
tag is just received.
Change-Id: I2a23b6b221e79dcb6b99bc78fd0126516407fae4
Ed Bartosh [Thu, 18 Sep 2014 08:13:24 +0000 (11:13 +0300)]
Stop writing to /etc/repos/repos.yaml
As BOSS is no more we don't need to write this file. It was used only by
BOSS participants.
Change-Id: I757f206f2421d671810697cf695f7f9b8c1615d3
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Huang Hao [Fri, 19 Sep 2014 06:38:08 +0000 (14:38 +0800)]
Login immediately when client is created.
Usually we have to login otherwise request always fails.
Change-Id: Ibe67204987f09cd1cf32cf274ce88515e1e39d33
JF Ding [Fri, 15 Aug 2014 11:18:07 +0000 (19:18 +0800)]
To use "--delay-updates" for rsync for atomic sync
Sometime, the users noticed the images in download server have wrong
md5sum and cannot boot. It's possible it's a partial downloaded file,
caused by atomic rsyncing problem. This rsync command line option
will help it.
Change-Id: I9ef2344cd01594fb33080feaaa193714cb4a5570
Signed-off-by: JF Ding <jian-feng.ding@intel.com>
Ed Bartosh [Tue, 23 Sep 2014 08:07:45 +0000 (11:07 +0300)]
job_accept_or_reject: Fixed bug in state name
Valid state name for SR is 'declined'. The code was using 'rejected',
which caused 'Bad request' OBS response.
Change-Id: I464befb33f21d9a13929d99632535833971f39c0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
ZhuoX Li [Fri, 19 Sep 2014 07:09:05 +0000 (15:09 +0800)]
Fix a bug about requesting git-obs-mapping.xml
Change-Id: I07891b714a8a0407f63472fc11e79479bc775124
Lin Yang [Fri, 12 Sep 2014 07:33:17 +0000 (15:33 +0800)]
Fix potential issue on git-obs-mapping query
When search on default section, project name will be joined with prefix '/'
automatically. So it should do the same action to path name to support missed
prefix '/' issue.
Change-Id: I21a48c1b845d23b80a72a207dcdeb942067a9892
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
Lin Yang [Fri, 12 Sep 2014 06:48:06 +0000 (14:48 +0800)]
Support no particular project setting
In special case, git-obs-mapping.xml doesn't contain the setting section for
particular projects. The script will crash when query mapping on such file.
It should check whether this section exists at first.
Fixes: #2111
Change-Id: Ib9a80ca135e311b8f8b103298ec300a3a7ba9e42
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
gaoxuesx [Tue, 16 Sep 2014 06:51:12 +0000 (14:51 +0800)]
Add trailing slash to POST URL
We called this URL via POST, but the URL doesn't end in a slash,
Django can't redirect to the slash URL while maintaining POST data.
Change-Id: Id1de27deabd096679233057091fc4891e2d431c0
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
Liu jue [Tue, 16 Sep 2014 07:13:33 +0000 (15:13 +0800)]
rename requests to obs_request
Change-Id: Iab87c78fd5097e2ca22432afc93fabaf61964640
ZhuoX Li [Wed, 13 Aug 2014 10:52:53 +0000 (18:52 +0800)]
Only allow 'prerelease' type into pre-workflow.
If obs_stg_prj from git-obs-mapping.xml is not 'prerelease',
it should not be executed prerelease workflow in job_submit.py.
Fixes: #2073
Change-Id: Ide4f0aebf035bbaf77e672e88bb29dd0eada91aa
Ed Bartosh [Sat, 13 Sep 2014 11:15:45 +0000 (14:15 +0300)]
Implemented new job job_accept_or_reject
This job will be run by RE. It doesn't require RE to be maintainer of
the target project as it uses maintainer account for its operations.
Fixes: #1886
Change-Id: I77d38377c1b9a9d4646aeae94ba77d4c22f61b19
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sat, 13 Sep 2014 11:10:02 +0000 (14:10 +0300)]
Implemented create_sr and set_sr_state
Extended buildservice API to create SR and change SR status. Both
methods will be used in the new job for accepting or rejecting SRs.
Change-Id: Ic38473ab99f2185fe32bda29eaaa18a654cd167c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Huang Hao [Tue, 9 Sep 2014 10:33:08 +0000 (18:33 +0800)]
Removing redundant git clone operation.
This script use common.git.fetch_change() to create an empty
local git repository and then fetch change from Gerrit.
So the clone operation is totally useless. Removing it will save
more time.
Change-Id: Ia5583e1d3b7f3b342fd9cf68651afb3059e482d3
Huang Hao [Tue, 9 Sep 2014 10:16:39 +0000 (18:16 +0800)]
Changing the exit code of scm check script.
If scm check/update found errors in scm text, it should return
non-zero, otherwise it should exit with 0.
Removing the try/catch block of GerritError, because if this
error happens, then we can't see comments from Gerrit. So just
keep the traceback in Jenkins console, it's better for debugging.
Returns 0 if http status code is 2XX, otherwise it means error
happens, then we should return non-zero.
Change-Id: I4cb7c01ad95e6185c1236e8933d59f6005ad8b8f
Fixes: #2106
gaoxuesx [Thu, 4 Sep 2014 10:40:13 +0000 (18:40 +0800)]
Convert GERRIT_SILENT_MODE to int
GERRIT_SILENT_MODE must be int type.
Improve the scm_check feature.
Change-Id: I7e25c0b8265ec8f489c8a224920da561f2f48897
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
gaoxuesx [Thu, 4 Sep 2014 08:23:20 +0000 (16:23 +0800)]
Add fetch and check change feature
We can use fetch_change function to check out one change.
Change-Id: Ie836c1f287fcd438632116cdf39d78ce2da35da4
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
ZhuoX Li [Thu, 4 Sep 2014 07:09:22 +0000 (15:09 +0800)]
Modify the way of using 'request_accepted'.
Don't return anything, when calling the function of reqeust_accepted.
Change-Id: I4fd7492bed1bda634bf299c2a4b4165e00ef1cb8
gaoxuesx [Fri, 15 Aug 2014 11:24:27 +0000 (19:24 +0800)]
Make the scm script name to be more professional
Change-Id: Ib0f508ed37250df559e05711b1a76bd9812246c8
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
ZhuoX Li [Wed, 13 Aug 2014 10:08:05 +0000 (18:08 +0800)]
Add gbs-api into the dependency list of jenkins.
Although we have got rid of dependency of gbs,
Jenkins depends on gbs-api.So gbs-api should
be add into the dependency list of jenkins.
Change-Id: I4c64db4941d35d96b197618029c1f050237e3c01
gaoxuesx [Thu, 31 Jul 2014 07:37:36 +0000 (15:37 +0800)]
[draft]Job for syncing IRIS data from scm/meta/git project
client.py is IRIS Client which is a wrap of python requests,
it against CSRF protection.
This job will clone scm/meta/git project then check domains and
git-trees files syntax and update them to IRIS by call IRIS Client.
Change-Id: I9722faf15f0bf7b7bb18142c0073062d96a46b34
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
Ed Bartosh [Sun, 10 Aug 2014 21:34:37 +0000 (00:34 +0300)]
Test fixed backenddb functionality
Added tests to ensure that old fields are cleaned up
when reading repos.
References: #2070
Change-Id: Ie9526c9feacd1105d071a2086101f523623fff0a
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 10 Aug 2014 21:31:08 +0000 (00:31 +0300)]
test_backenddb: Implement hdel
This API is required by fixed version of backenddb:Entity.__setitem__
Change-Id: Ia8739a1008801e9ed8f6e4c8a9abb33da510fe8b
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 10 Aug 2014 21:14:47 +0000 (00:14 +0300)]
Fix setting hash values
As hmset call doesn't remove old values this fuctionality
worked incorrectly and old values were not removed.
For example, removing 'PrereleaseDir' from repos.yaml and loading
it to the database was not removing this field in Redis.
Fixes: #2070
Change-Id: Ida42bd2a24a128b0f82f67bcc2a3b3905ff49920
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 10 Aug 2014 21:08:01 +0000 (00:08 +0300)]
backenddb: Fix error in Entity.__getitem__
Used deepcopy to avoid modifications of the same dictionary.
This error broke tests in a very strange way: second call
of Entity.__getitem__ raised json exception.
Change-Id: I2ef33d67c4e046d24133d9f60ac5f92d9c5dd4fe
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Sun, 10 Aug 2014 21:40:13 +0000 (00:40 +0300)]
Fixed mock implementation of hgetall
python-redis:hgetall returns empty dictionary if key doesn't exist.
This commit fixes this in mock. Previously it returned None in this
case.
Change-Id: I76f38d15d3918f0b7bbd41d9f3e1907f5e3b61db
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
ZhuoX Li [Fri, 8 Aug 2014 08:09:25 +0000 (16:09 +0800)]
Get rid of dependency of 'gbs'.
Jenkins scripts job_buildcheck_post.py job_policycheck.py
is unused for us. They should be removed. And get rid of
dependency of 'gbs', the test case about 'gbs' should be
also removed.
Fixes: #1546
Change-Id: I65e9596d35fba8c0bc6ad526cb2ea46a7176acf0
Liu jue [Mon, 4 Aug 2014 07:43:46 +0000 (15:43 +0800)]
Fix the wrong close paren
Change-Id: I0061645278b04fd7b443cff11d246e15de5bba79
Liu jue [Mon, 4 Aug 2014 06:30:45 +0000 (14:30 +0800)]
Delete the no use parameter.
The judgement of buildconf will leads to all repo use the same buildconf
Fixes: #2066
Change-Id: I07719e52dc2a55ab67741e4a45330df12a36f962
Liu jue [Thu, 31 Jul 2014 04:04:10 +0000 (12:04 +0800)]
Remove the void prerelease snapshots
Fixes #1665
Change-Id: I99ae4528dc16929916eb29fcafdbbc4f5e7be805
Lin Yang [Wed, 23 Jul 2014 06:01:55 +0000 (14:01 +0800)]
Add execute permission to release_snapshot job
The job_release_snapshot.py script is the only one on top level of package
is not executable. Fix it to align with others.
Change-Id: I382bfd38bc5b57be9dbd270ce1b4be872fe1d81b
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
Liu jue [Fri, 25 Jul 2014 07:42:42 +0000 (15:42 +0800)]
Job syncsnapdiff use hard code to search last buildid
1.Add exception log
2.Use release name instead of the hard code for searching
last build id
Fixes #2054
Change-Id: Iaec84cc6e706b6465c1a1998548b183543095f7a
Liu jue [Wed, 23 Jul 2014 02:19:56 +0000 (10:19 +0800)]
comment out the url description in manifest files
Change-Id: Ib4e2c01d5e47c4b3097c4553aff8e6c66e0ed508
Fixes: #2030
ZhuoX Li [Tue, 15 Jul 2014 05:52:22 +0000 (13:52 +0800)]
Remove commit id in message.
The repa wouldn't provide the commit id.
And it is not important to show for submitter.
So it shuold be removed.
Change-Id: Ife84eb6be9ce355f70da193a7cef6b128431c056
ZhuoX Li [Tue, 15 Jul 2014 05:03:37 +0000 (13:03 +0800)]
', ' replaces ',' to separate the projects name.
Change-Id: Ia1c853c396bcf1dc2df42c82b88309d3561fdecc
Liu jue [Mon, 14 Jul 2014 04:26:58 +0000 (12:26 +0800)]
Add return proper result when syncing
When rsync to download server, this job should return
proper result
Change-Id: I2779d7b3ea3a9e14a0ffdd41a975361ef0a6d085
Fixes: #2045
ZhuoX Li [Fri, 11 Jul 2014 01:58:47 +0000 (09:58 +0800)]
Modify the data structure for new description info.
When accept group submission, repa will only list the first one
on project name list in the previous. So jenkins can't get
complete project name list to update accepted branch on them.
Now the latest released repa will list the all projects name.
To be compatible the old and the new, so should modify it.
As below, the old formate and the new:
{"description": "project: platform/upstream/e2fsprogs"} -->
{"description": "project: [platform/upstream/e2fsprogs,
profile/ivi/meta-ivi]"}
Fixes: #2025
Change-Id: I9392d485484383233d43c78faf278c126f26de0f
Markus Lehtonen [Mon, 7 Jul 2014 08:11:09 +0000 (11:11 +0300)]
gbs-service: enable 'error-pkg' parameter
Enable the the generation of a special "error package" (instead of a
service error) in case of gbs export failures.
Only catches service return value 2, i.e. "normal" gbs export failures.
Internal service errors (1) and gbs crashes (3) still cause a service
error as these can be considered as bugs and we want to catch these.
Change-Id: Ied7bc8010351026e047e368be97bb71a9da3ee1e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Liu jue [Tue, 8 Jul 2014 08:33:59 +0000 (16:33 +0800)]
Update bare repository failed .
1. If the remote origin url is incorrect , re-clone.
2. If the remote origin url does not exsits re-clone.
Change-Id: I35e6ff2081a96e5da84a3db7b8d6e05dd24f5676
ZhuoX Li [Fri, 4 Jul 2014 05:44:04 +0000 (13:44 +0800)]
Use xml.sax module to solve the encode issue
xml.sax module as a better substitute for the 'replace' property of string,
to solve the encode issue.
Change-Id: I167a217895536adfb58ecd9b320f510ecda5e9de
Igor Stoppa [Thu, 19 Jun 2014 15:25:33 +0000 (18:25 +0300)]
Improve logging and archiving.
Produces more meaningful messages and
stores the test results only when present.
Change-Id: I4cf695f299fcfe2fe91758093b34e3314d6b171b
Igor Stoppa [Thu, 19 Jun 2014 15:18:25 +0000 (18:18 +0300)]
Add clarification comment in testing job.
Change-Id: Id9cfbe9f4db3c12fa36c94889c3f5bc74bb04695
Igor Stoppa [Mon, 16 Jun 2014 10:52:28 +0000 (13:52 +0300)]
Publish test results to OBS
Fix parameters passed down from imager job,
through tester and add job for publishing results to OBS.
Change-Id: I96c2d6f1226c3259e1ea1dcbf696e8b20f0f2358
Igor Stoppa [Thu, 19 Jun 2014 09:26:14 +0000 (12:26 +0300)]
Reduce wget output when downloading.
Change-Id: I2492da49ec9c69b49ce9f55178d47906acf29c4d
Igor Stoppa [Mon, 16 Jun 2014 10:51:33 +0000 (13:51 +0300)]
Create a tarball with the results of the testing.
Change-Id: Iebbbee94306e11a616fb3da2daa00fa3458eb968
ZhuoX Li [Fri, 27 Jun 2014 08:12:39 +0000 (16:12 +0800)]
Fix the ascii encode issue about sending mail
When we send mail to submitter,need a specific format of address
in job_request.py.Sometimes it maybe have the escape character,
that causes the encode issue.We should check and change it.
eg:
'<stephane.desneux@open.eurogiciel.org>' should be changed to
'<stephane.desneux@open.eurogiciel.org>'
Fixes: #2010
Change-Id: Ib0d1b0c32f37a2a1f007ac8bc5e319f98f1175db
Liu jue [Wed, 25 Jun 2014 06:36:03 +0000 (14:36 +0800)]
Add two blanks to ensure manifest can work
Fixes #2006
Change-Id: I4c47af02beaa25f7af7f423b0e5e45c3e19721a8
Liu jue [Tue, 24 Jun 2014 10:47:04 +0000 (18:47 +0800)]
Catch the exception come from delete obs project/package
1. Ensure it is exist before delete it.
2. Try it .
Change-Id: Ia31960382d7e317d98672bc844b7f945862a1dbf
Fixes: #2001
Liu jue [Tue, 24 Jun 2014 12:05:44 +0000 (20:05 +0800)]
support multiply version of rpm packages in manifest
If two versions of one package both exist on repo, jenkins will
use the latter one overwrite the previous on when generating
manifest. A more direct method is jenkins insert the info of all
packages in repo into manifest.
Change-Id: I242342ddcfca604d44227ffff7940b015f89f156
Fixes: #2002
ZhuoX Li [Tue, 24 Jun 2014 09:57:48 +0000 (17:57 +0800)]
Add a filter for updating repos.yaml in job_load_repos.yaml.py
When refname start with 'refs/changes/', should not update.
Fixes: #1957
Change-Id: Ifaf98acb28b15f3a7891aa12216163b4eb5a23de
ZhuoX Li [Tue, 24 Jun 2014 08:22:13 +0000 (16:22 +0800)]
Fix the IndexError issue for job_sync_snapdiff.py
Maybe not find the matched snapshot, should skip it.
Fixes: #1992
Change-Id: Ic658de194f5db423d1e6fcc7a23f92ac458b79b8
Markus Lehtonen [Tue, 24 Jun 2014 12:12:37 +0000 (15:12 +0300)]
utils/make_latest_link: make the link target a relative path
Absolute paths break mirroring of the server content.
Fixes: TINF-636
Change-Id: I1af46a7ad5f6e98627412bd900c30d5a88fe19ef
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Lin Yang [Tue, 24 Jun 2014 03:53:41 +0000 (11:53 +0800)]
Fetch complete buildconf for each repo
OBS will insert serveral runtime parameters at the beginning of the build conf,
which are critical to gbs local build. Current the api jenkins used can not
fetch those parameters, only fetch the build conf text. Should use another api
https://api.tizen.org/build/Tizen:Common/atom/_buildconfig.
Fixes: #1997
Change-Id: I8876e6e84bcf3bddbd3119d35f111ac7c3b738fe
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
Lin Yang [Tue, 24 Jun 2014 03:25:48 +0000 (11:25 +0800)]
Remove buildconf from builddata directory
Because OBS project build conf for each target has already been placed on the
repodata directory of each repo, the global build conf on builddata directory
is not necessary anymore.
Fixes: #1998
Change-Id: Id4f1f01a112d25d0e6481d08c89406c438057dee
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
ZhuoX Li [Tue, 24 Jun 2014 02:53:55 +0000 (10:53 +0800)]
Add 'unknown' state into the filter regular of generating snapshot.
When some targets of OBS project are disabled, maybe get the 'unknown' status,
we also should ignore it ,to create snapshot/prerelease repos.
Change-Id: I1caa47b31e2d82043a5dd25ffbd953901dad90ab
ZhuoX Li [Fri, 20 Jun 2014 07:46:02 +0000 (15:46 +0800)]
Fix the crash about getting repo name from redis
When the repo name doesn't exist in redis,we can't get it from redis.
It should normally stop to create repos, not raise exception.
Fixes: #1993
Change-Id: Iac77e7c3321071c6db0360998f45f642504ad4f2
Igor Stoppa [Mon, 16 Jun 2014 10:50:43 +0000 (13:50 +0300)]
Fix some trivial pylint issues
* lines too long
* missing docstrings
* extra spaces
Change-Id: I9345cfa2f0dceb61e9a5e52294d9ce776a24c2f2
ZhuoX Li [Fri, 20 Jun 2014 10:27:44 +0000 (18:27 +0800)]
Pylint for job_create_snapshot.py
Change-Id: I30d4e9886aed653b8eff71ced4687e1ef0905257
C: 45,0: Line too long (82/80)
C:111,0: Line too long (83/80)
C:173,0: Line too long (83/80)
C:181,0: Line too long (83/80)
ZhuoX Li [Fri, 20 Jun 2014 08:41:32 +0000 (16:41 +0800)]
Delete 'PrereleaseDir' key in condition
'PrereleaseDir' don't exist for some project in redis.
And it is unnecessary.So delete it.
Fixes: #1994
Change-Id: I936d4383dec26ced875fccc3bb19fb7320786f4b
ZhuoX Li [Fri, 20 Jun 2014 10:31:25 +0000 (18:31 +0800)]
Pylint for job_release_snapshot.py
C: 50,4:main: Operator not followed by a space
release_dir = "releases/%s" %release_type
^
E: 58,8:main: Undefined variable 'printf'
Change-Id: I87559a669b7f3a4bfe0be9105d28a3022e6e4d6e
Hasan Wan [Mon, 19 May 2014 09:28:58 +0000 (12:28 +0300)]
add new job script to create release repo from snapshot
Change-Id: I5e773019ca1c278d40b1b204932d8e31f02cf8e8
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
Hasan Wan [Mon, 19 May 2014 09:13:22 +0000 (12:13 +0300)]
move make_latest_link to common/utils, add a parameter to keep the origin copy
Change-Id: I80aa2ca36b810818fa0bd726789591c2912621c3
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
Liu jue [Thu, 5 Jun 2014 10:51:03 +0000 (18:51 +0800)]
Delete the ks file message when trigger job-sync-snapdiff
Because if not do like this , when jenkins use the data as a shell
command's parameter , it will cause an error because of the too long
data .
Change-Id: Ibaf5d7b5586b1b6c436a888854ab2d8f1f731a80
Fixes: #1946