summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Junghyun Kim [Tue, 25 Apr 2017 08:31:11 +0000 (17:31 +0900)]
remove dependency of BuildMonitor
Change-Id: I53d41b95cb3d09b8a5dc4b17122b03681c7a9fb6
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Tue, 25 Apr 2017 07:24:58 +0000 (16:24 +0900)]
receive relay_notify events.
Change-Id: I42c0f264c0b4bc9bd05ea0ebd42a109c178a7430
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
SoonKyu Park [Fri, 31 Mar 2017 06:14:40 +0000 (15:14 +0900)]
Release OBS 2.7.3 with Tizen
20170331
Change-Id: I7c25150b014762ca43e63bd0e75ff8ad7e461277
Yonghee Han [Tue, 28 Mar 2017 05:38:17 +0000 (14:38 +0900)]
Fix Invalid default value for created_at
In strict mode, don't allow '0000-00-00' as a valid date
TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC (see doc). The default value must be within that range.
Change-Id: I64a9feb5f28b9c7afafa9be2ba0ee67e6ec12cf2
SoonKyu Park [Wed, 8 Mar 2017 04:19:53 +0000 (13:19 +0900)]
Add runtime dependency of obs-api-testsuite-deps to obs-api package : to add 'Requires' to ruby2.3-rubygem-* packages
Change-Id: Ib6328ca0784e7355c6627b05d6db1d182406efa3
Junghyun Kim [Mon, 6 Mar 2017 02:11:03 +0000 (11:11 +0900)]
Do not notify BUILD_BROKEN, BUILD_UNRESOLVABLE, and BUILD_EXCLUDED
PROBLEM:
These notifications may raise enormously if the status of
base project goes wrong.
SOLUTION:
Instead of direcly generate these messages, they will be checked
when "REPO_PUBLISHED" event is processed by Jenkins.
Change-Id: I4f5434c98744a6dc7ba542b5fb559876e2a82039
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Yonghee Han [Tue, 28 Feb 2017 02:21:38 +0000 (11:21 +0900)]
Cherry-pick Feature : create new rpmbuildstage: option on OBS. in obs-server-2.4
Change-Id: I0edc20eb75677224cd3a358fb135677e7d591728
Junghyun Kim [Thu, 23 Feb 2017 01:57:22 +0000 (10:57 +0900)]
Do not notify BUILD_UNRESOLVABLE if the previous status was the same
Change-Id: Ib13ccd8d5341067a4accc01b073ab1897037dac5
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Mon, 20 Feb 2017 05:25:36 +0000 (14:25 +0900)]
For CREATE_PROJECT and UPDATE_PROJECT, send directly it to plugin.
There are some cases that these events are much delayed due to many
events have not been sent. To prevent this case,
these events are sent directly on src_server.
Change-Id: I91ae60ba78151e67d844e194a4c4d919cf5e45b3
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
SoonKyu Park [Wed, 22 Feb 2017 12:32:30 +0000 (21:32 +0900)]
Add .gbp.conf
SoonKyu Park [Wed, 22 Feb 2017 08:23:58 +0000 (17:23 +0900)]
Upgrade version to 2.7.3
Junghyun Kim [Tue, 14 Feb 2017 11:23:07 +0000 (20:23 +0900)]
BUGFIX: do not assign $packstatus
assigning $packstatus makes package build status remained even for deleted packages.
Change-Id: Id124198516ccdb1cc7fd2276a5fc6191108c3b0a
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Thu, 9 Feb 2017 06:13:14 +0000 (15:13 +0900)]
CHANGED: detecting publishing state
Change-Id: Ibcc398eb95a7e6d00b9157f35ff49fd0ac7e9e6b
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Wed, 8 Feb 2017 01:27:15 +0000 (10:27 +0900)]
BUGFIXED: use $oldpackstatus->{'packstatus'}->{$packid}
typo was $oldpackstatus->{$packid}
Change-Id: I4a96f7946d1bf49a3a00b093542e73c0ba2ce426
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Tue, 7 Feb 2017 04:38:27 +0000 (13:38 +0900)]
Do not skip BSNotify::notify() if testmode
Change-Id: Iedcd6e59b311fab3a728d5415fd1b2df6c2a1faf
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Wed, 1 Feb 2017 06:17:43 +0000 (15:17 +0900)]
Exclude events in BSNotify::notify()
PROBLEM:
- All notify_plugins events are gathered to src_server
- If too many events are generated, time to deliver to plugins is way to
slow.
(for some cases, I observed it takes about two hours.)
SOLUTION:
- Do not send notify (rpc call to src_server) if these two conditions are met:
1. The event type is not PUBLISHED.
2. the project name is not filtered by check_proj_pattern
Change-Id: I8c08484f7b4ee741cce4cde529c63019ea45bd64
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Mon, 23 Jan 2017 05:48:10 +0000 (14:48 +0900)]
BUGFIX: cycle packages use packstatus.
PROBLEM
- Cycle packages use $packstatus before storing data
SOLUTION
- Do not restore oldpackstatus for cycle packages.
Change-Id: I9abf680c00a3e4cc080fc6824c63f2a5a357d1d6
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Thu, 19 Jan 2017 01:44:34 +0000 (10:44 +0900)]
BUGFIX: do not die even if src_directory does not exist.
Change-Id: I22abd71bfd1a0143792676bca14d5b0d894baf36
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Wed, 18 Jan 2017 06:15:23 +0000 (15:15 +0900)]
Add my new files to spec.
- /usr/lib/obs/server/BSPrereleaseOpt.pm
This file is added for build optimization of prerelease projects.
For more detail, refer to https://review.tizen.org/gerrit/#/c/83210/
- build_monitor_db.conf.template
This file is moved from services/obs to services/obs-event-plugins
This file is related to only BuildMonitorDB.pm which is in
services/obs-event-plugins.
Change-Id: I534b7b1491b8804eeee140fe861d37d292670d0f
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Thu, 12 Jan 2017 06:19:39 +0000 (15:19 +0900)]
Make build_log_url at the BUILD_START event
PROBLEM:
- Two OBS services (TRBS and Prerelease) are located
in different servers.
- TRBS events are relayed to Prerelease OBS server.
- When build_log_url is made in Prerelease
OBS server, url would be incorrect.
SOLUTION
- Make build_log_url at the BUILD_START event in bs_sched.
Change-Id: I07e0000801bb59e899eed15b841eba1a0765364d
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Jiankang Fan [Wed, 11 Jan 2017 02:25:28 +0000 (10:25 +0800)]
Add packaging for rpm package building
Change-Id: I4816a69a9d328d5cd745f920bac2106696299ccd
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
Junghyun Kim [Wed, 11 Jan 2017 00:43:28 +0000 (09:43 +0900)]
BUGFIX: to pass unit test
Change-Id: Ie17d4866c15773439aca2d297dfed5f3294debcf
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Thu, 5 Jan 2017 10:41:13 +0000 (19:41 +0900)]
BUGFIX: hashref variable changed.
PROBLEM:
- notify("BUILD_EXCLUDED", %info) does not work
SOLUTION:
- % -> $
- notify("BUILD_EXCLUDED", $info);
Change-Id: I2e4acb11c5bf7bf220ba44df336759a925399965
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Fri, 30 Dec 2016 01:45:21 +0000 (10:45 +0900)]
Squashed commit of the following:
Major changes:
- BUILD_EXCLUDED event is generated to resolve
'broken' or 'resolvable' packages even if these
packages does not need to be built in the project.
- RENAME:
build_monitor_db.conf -> build_monitor_db.conf.template
- Do not build dependent packages (BSPrereleaseOpt)
commit
9f2c7c567a7218bc92e4597be296b18369eb6c80
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Thu Dec 29 11:17:59 2016 +0900
Always update packstatus for BUILD_EXCLUDED
Change-Id: I65f00b6c949437a717f5755f0df933fc31b0d8fe
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
f631a2469214710cfd2db9638bdd13360490826e
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Thu Dec 29 10:48:18 2016 +0900
Move updating packstatus to the end.
Change-Id: I56de6e6288020dccee4656fe4e297c0b4f05a564
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
bc4409cdbab16504c214e38be80e39da01aba7b5
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Thu Dec 29 10:08:24 2016 +0900
file name changed: build_monitor_db.conf
Change-Id: I34f7d0f8f4c5aec633ade042a1e2b4f0869a8093
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
47d0a8830617707f40290525345a9e8929d63ee3
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Thu Dec 29 09:20:23 2016 +0900
Do not build dependent packages (BSPrereleaseOpt)
Do not build dependent packages if the build results are
the same as build results from linked projects.
This optimization was applied for home:prerelease, and
it is applied to home:trbs.
Change-Id: I6df1df45ad3e7d87dc07aa79143b7f94e450ad84
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
24c9adefe1bcba211aed33c089e44587a4c1c413
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Wed Dec 28 18:00:53 2016 +0900
BUILD_EXCLUDED event is processed in the ruby file.
Change-Id: I0dc48d6587d78e450e1e203d51bad466dbca09ea
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
757bc019b630b344e24c6fe033d8fedbffc32fec
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Wed Dec 28 17:55:47 2016 +0900
[bs_repserver] Prevent running error without BuildMonitorDB.
PROBLEM:
- BuildMonitorDB is located in directory 'plugins'.
- This means BuildMonitorDB.pm cannot be installed for some cases.
- Even in this case, bs_repserver should work correctly.
- Since 'use BuildMonitorDB.pm' is in bs_repserver,
it would be failed to run without BuildMonitorDB.pm.
SOLUTION:
- Some feature is enabled only if we have BuildMonotorDB.pm.
- Otherwise, these features are disabled.
Change-Id: I49ec2ab54b79f665517659cae96656ac196999bf
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
25690998c6c75c4fefd8ab1e9acb49427fb9296b
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Wed Dec 28 17:50:26 2016 +0900
BUILD_EXCLUDED event is generated.
PROBLEM:
- BUILD_BROKEN can be generated even if the package is not need to be
evaluated nor need to be built.
- In this case, there is no mechanism to remove this BUILD_BROKEN
status.
SOLUTION:
- For this reason, I added to generate BUILD_EXCLUDED events if
the previous status of the package is one of 'broken',
'unresolvable', or 'blocked'.
- The reason 'blocked' is that there is possibility of status change
'broken' -> 'blocked' -> 'excluded'
This can happen because the package can be in 'blocked' status when
the package is getting source code from source server.
Change-Id: I96d5fde06b68097325e372f7ca0fa1e1e0befa5a
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
6edb1c6639ead1588cc7f17a231915a055cea98f
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Tue Dec 27 15:38:26 2016 +0900
BUILD_START event is not generated for aggregate packages.
PROBLEM:
- Building time for aggregate packages is less than a second.
- For some cases, BUILD_SUCCESS event is received before
BUILD_START is received.
SOLUTION:
- For aggregate packages, only BUILD_SUCCESS event is generated.
Change-Id: I3f9d0ecc0f2ca360cf8482cd5d60c09b1a2c274f
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
129b5cf62d6cc62950fb220d80efce484191bdd3
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Tue Dec 27 15:36:04 2016 +0900
Merged from sandbox/jh0822.kim/2.7.1-devel
Major changes
1. BuildMonitorDB.pm is moved to obs-event-plugin
2. one_publish event
Conflicts:
src/backend/BuildMonitorDB.pm
src/backend/bs_publish
Change-Id: I1ce1939d2057e14035abfad69bc1eae6b94ff7cc
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Change-Id: I3cfe85048830ff3d3c98fd20194864537b88d899
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Thu, 8 Dec 2016 01:41:15 +0000 (10:41 +0900)]
Stable version of ONE_PUBLISH_EVENT
Stable version of BuildMonitor.
Squashed commit of the following:
commit
4d27d467f6e47827bf9d75a28686a693fd78f53f
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Thu Dec 8 10:38:23 2016 +0900
BUGFIX: SQL statement has a bug so that update sql is not performed.
Change-Id: Idba89a656d8582ad9b2997c764730140672af98e
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
f43d97df7af73f642337acfdf6071b83299483c9
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Thu Dec 8 09:51:51 2016 +0900
proj_id is added to get_buildmonitor_project_status().
Change-Id: Ic5381cbd01960403ed0c7e485bad39bf698b3cb9
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
b46e314330b0e0bb04be778278cf49a9e9635612
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Wed Dec 7 17:42:13 2016 +0900
build_project_status is set to 'F' if any package in the project is failed.
Change-Id: I02317c20798f817b1587ed68a9d5de042daafa25
commit
eebd32f928a957badc86cf37e9631e65e846a8aa
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Wed Dec 7 17:41:27 2016 +0900
ONE_Publish event is now stablized.
Change-Id: Ied7004e44f55d66d15ef5cf7f89f82c0f4b6c283
commit
067718e11b435503ae4bd1d03107f27e5453d022
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Wed Dec 7 17:39:48 2016 +0900
BUILD_KILL event is added.
Change-Id: Ic7a43035fcfcd00f5a2862908fa55335828b9a0c
commit
b230d5914bfae6e53a2768cead0f372197189c1a
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Fri Dec 2 16:42:02 2016 +0900
Do not inset project_build_finish event to DB for unresolvable and broken packages.
This is because there are too many project_build_finish events are generated.
Change-Id: Ic50f7647be7d03949fc7c590d6112bae413aa7cb
commit
8a28ca3e996e42439dd7c1af52c02936b9319218
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Fri Dec 2 11:35:33 2016 +0900
BUGFIX: one publish event per project.
1. src/backend/BSSched/BuildJob/Aggregate.pm
Send a publish event if aggregate package is unchanged.
To do this, we remove ":repodone" file.
2. src/backend/BSSched/Checker.pm
The package status is 'blocked' when the source code is downloading.
But, it is not checked in unfinished state in the scheduler, so a publish
event can be sent. To prevent this, we add the package to unfinished
if this package is in a download state.
3. src/backend/bs_publish
The method how we check all repos are published.
1) 'unscheduled' if :schedulerstate.dirty exists.
This means that the scheduler need to schedule this repo/arch.
2) 'finished' if event is published but not processed by publisher.
3) 'publishing' if :repodone does not exist.
:repodone file is generated if the scheduler sends a publish event to publisher.
4) 'unpublished' if publishing is disabled in the project meta.
4. src/backend/bs_sched
If the scheduler checks that inter-repo change is needed and it is true,
it adds :schedulerstate.dirty file.
In this case, :repodone file is removed, so that this repo/arch is not
in the published state.
Change-Id: I13bb1946174f820d9c65b2ba1f300c934dcd8e6a
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
ca2f69ac39cf090851f5e0ce9266a6ab9739744c
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Fri Dec 2 11:22:22 2016 +0900
BUGFIX: A PUBLISHED event can be recevied prior to receiving BUILD_SUCCESS.
To solve this, we check the project build is failed
if build statuses of packages are not 'succeeeded' nor 'building'.
And when we receive BUILD_SUCCESS, it compensates the project build status
if the package build status is failed.
Change-Id: I630cf7cd17e020e24b4706ac214f05abfdc41897
commit
92434b8b9694642c23ab62262f680f7797e551fa
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Mon Nov 28 17:45:14 2016 +0900
BUILD_BROKEN is added for aggregate packages.
bs_publish is modified not to wait more than one minute.
Change-Id: Ia3eb264d86f67568b15158eed9e2c06d4f3eaa1b
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit
2a38420e23d6d093723d49f9c9dab8ec0171857d
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date: Mon Nov 28 11:24:34 2016 +0900
Add transactions to make sure read committed data.
Change rawlog URL because OBS 2.7 has different URL compared to OBS 2.4
Change-Id: I3f806697b092af89c7fdddf615e3c4b319a43bb8
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Change-Id: If5aceef91c7546a058e1ea3988c6c674ca77ff1f
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Wed, 23 Nov 2016 02:36:10 +0000 (11:36 +0900)]
Package build time is parsed well now.
The page build time was parsed in BuildMonitorDB.pm in src_server.
Since srcserver is located in a different machine compared to repserver,
we should move the parse process to repserver.
It is not viable to parse _statistics in plugin/notify_build_monitor of srcserver.
- add use JSON:XS to use encode_json
Change-Id: I6884f4b7b4241e642d6fcb0b1342c35d65f22414
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Mon, 21 Nov 2016 05:19:49 +0000 (14:19 +0900)]
build_log_url is changed.
"$BSConfig::obsname" -> "$BSConfig::obs_frontend_ip".
To use this, the below line should be added to BSConfig.pm:
our $obs_frontend_ip = $fe_ip;
Change-Id: I563925de7a2215046ad96048aad4a81cc33fe078
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Wed, 9 Nov 2016 01:48:21 +0000 (10:48 +0900)]
BUGFIX: publish is not generated.
1. If there is an unpublished repo.
The scheduler status is 'unpublished' if it is unpublished repo.
In this case, this repo is ignored checking.
2. All architectures are disabled to build in a repo.
In this case, deleterepo() function is called and just returned.
If this repo is the last published repo in obs scheduler, it is
possbile not to generate OBS_REPO_PUBLISHED event.
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Conflicts:
src/backend/bs_publish
Change-Id: Id7b3197e63141b7834c45a6c42dd42e1fdf7b67e
Junghyun Kim [Wed, 9 Nov 2016 01:36:27 +0000 (10:36 +0900)]
First working version of build monitor.
Change-Id: Ied1d6c7ca7ee750c3cdb749d88fad380357694d1
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Fri, 4 Nov 2016 13:48:50 +0000 (22:48 +0900)]
build monitor logging is merged to 2.7.1
Change-Id: I9ad52a7fa48d4ccf5822f4f3c5c8a8e266fc2f9c
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Junghyun Kim [Mon, 31 Oct 2016 10:56:09 +0000 (19:56 +0900)]
one_publish_event is applied to 2.7.1
Change-Id: Ic42661d00d81076071926b91cec2125db31dae88
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
SoonKyu Park [Wed, 22 Feb 2017 08:22:44 +0000 (17:22 +0900)]
Imported Upstream version 2.7.3
SoonKyu Park [Wed, 22 Feb 2017 08:22:26 +0000 (17:22 +0900)]
Imported Upstream version 2.7.2
Yonghee Han [Thu, 13 Oct 2016 04:26:39 +0000 (13:26 +0900)]
Imported Upstream version 2.7.1
Yonghee Han [Thu, 13 Oct 2016 04:26:04 +0000 (13:26 +0900)]
Imported Upstream version 2.7.0
Yonghee Han [Thu, 13 Oct 2016 04:25:19 +0000 (13:25 +0900)]
Imported Upstream version 2.6.9
Yonghee Han [Thu, 13 Oct 2016 04:22:04 +0000 (13:22 +0900)]
Imported Upstream version 2.5.7
Yonghee Han [Tue, 9 Aug 2016 11:12:32 +0000 (20:12 +0900)]
Imported Upstream version 2.4.8
seonil kim [Fri, 3 Jun 2016 04:37:18 +0000 (21:37 -0700)]
Initial empty repository