services/obs-server-2.7.git
17 months agoUpgrade version to 2.7.5 81/286381/1 accepted/tizen_devbase_services devel master accepted/tizen/devbase/services/20230106.020822 submit/trunk/20230105.173030 submit/trunk/20230105.174030 submit/trunk/20230106.083030 submit/trunk/20230106.084030
biao716.wang [Thu, 5 Jan 2023 02:29:34 +0000 (11:29 +0900)]
Upgrade version to 2.7.5

Change-Id: Id7b626f4bda1591c98ec397ac4cd9f9a5e813292
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
17 months ago[api][backend] Add support for riscv64 07/285907/1
Jaehoon Chung [Wed, 21 Dec 2022 01:42:28 +0000 (10:42 +0900)]
[api][backend] Add support for riscv64

This patch is backported from below coomit.

https://github.com/openSUSE/open-build-service/commit/71f27119b05dfd9498a5c1485c4edd73f2f6f19f

Change-Id: I96d148b4a667398145982a6b045e07119c25fc81
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
18 months ago[backend] support zstd arch binaries 52/285052/2 upstream/2.7.5
wang biao [Mon, 5 Dec 2022 09:43:17 +0000 (17:43 +0800)]
[backend] support zstd arch binaries
https://github.com/openSUSE/open-build-service/commit/68a09b87d68ed0ccad8ddae26eca8395759a25b6
https://github.com/openSUSE/open-build-service/commit/d089681eed7ba5afb24a53145a086475f1bd0ae6
https://github.com/openSUSE/open-build-service/commit/27b50d339713f38cf5ba6cf687a9a89bc3b90d8c
Signed-off-by: wang biao <biao716.wang@samsung.com>
Change-Id: Ieb951eb0cdf9d9459c74bdc268bafc14dba04968

4 years agoUpgrade version to 2.7.4 76/234576/1 accepted/tizen/devbase/services/20200623.003311 accepted/tizen/devbase/services/20201102.013851 submit/trunk/20200619.102030 submit/trunk/20200619.134012 submit/trunk/20200622.151812 submit/trunk/20201029.114030 submit/trunk/20201029.132130 submit/trunk/20201029.140230 submit/trunk/20201030.143530 submit/trunk/20201030.151030 upstream/2.7.4
biao716.wang [Wed, 27 May 2020 07:19:28 +0000 (16:19 +0900)]
Upgrade version to 2.7.4

Change-Id: I8f7e13e0d80043c4880b74f2cf7e356fa234c5a6
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agoMerge " [backend] createrelease_debian: use utc instead of local time" into devel
Yonghee Han [Thu, 7 May 2020 06:52:39 +0000 (06:52 +0000)]
Merge " [backend] createrelease_debian: use utc instead of local time" into devel

4 years ago [backend] createrelease_debian: use utc instead of local time 82/232382/1
Yonghee Han [Mon, 4 May 2020 02:27:52 +0000 (11:27 +0900)]
 [backend] createrelease_debian: use utc instead of local time

Integration commit : 4679940daddc602834ab52fc1dccca96ee728979
git : open-build-service

Change-Id: I0c4ffe155f75c48591a79ef3a3dcf40c54420798

4 years agoapply the patch to support onlybuild attribute in proj config file 30/212430/2
biao716.wang [Thu, 22 Aug 2019 17:21:20 +0000 (02:21 +0900)]
apply the patch to support onlybuild attribute in proj config file

Change-Id: I34564eb745c58bc2c64581bb9b47ce65d1d5c7a4

5 years ago[backend] Fix empty packages.gz test 69/197869/1 release-20190125 submit/devel/20190730.075427 submit/trunk/20190927.012743
Riku Voipio [Tue, 29 Aug 2017 08:02:42 +0000 (11:02 +0300)]
[backend] Fix empty packages.gz test

in case no packages are produced, dpkg-scanpackages outputs nothing,
causing and empty Packages.new. test against non-zero filesize, and
remove Packages.new if it exists.

Change-Id: I97061e4c8a5bf12c708dae56efba77ad1940aae0

5 years ago[backend] Create Packages.gz for debian-installer 68/197868/1
Riku Voipio [Mon, 28 Aug 2017 10:50:18 +0000 (13:50 +0300)]
[backend] Create Packages.gz for debian-installer

Create a debian-installer/ subdirectory with Packages.gz
to be used with d-i.

Change-Id: I8e7a4d77f564d1f5c4ffbd66ff89af34a253c796

5 years ago[backend] split createrepo_debian() 67/197867/1
Riku Voipio [Mon, 28 Aug 2017 09:53:55 +0000 (12:53 +0300)]
[backend] split createrepo_debian()

Split the funtion into reusable components to prepare
for udeb publishing.

Change-Id: I166b1cf7ff37cda7892ca79a048b833441becb5e

5 years ago [backend] publish udebs in repo 66/197866/1
Riku Voipio [Fri, 25 Aug 2017 11:45:14 +0000 (14:45 +0300)]
 [backend] publish udebs in repo

    Copy udebs into repository. These are not added into the Packages
    index as dpkg-scanpackages searches for .deb files unless instructed
    otherwise.

Change-Id: Ida0d37463da6d3d68eb0f1cdce236096d7c52427

6 years agoEnable networking inside VM. 95/173295/2 release-20180330
Yonghee Han [Tue, 20 Mar 2018 09:44:28 +0000 (18:44 +0900)]
Enable networking inside VM.

    Add the following to configuration for the Networking
    VM_WORKER,VM_WORKER_NR,VM_NETDEVOPT,VM_DEVICEOPT

    How to use
       Modify the /etc/sysconfig/obs-server on OBS Worker
       OBS_VM_NETDEVOPT=user,id=user.0
       OBS_VM_DEVICEOPT=e1000,netdev=user.0

Change-Id: I30fc0da78b181728597831a1f9f8456cf4f1b864

6 years agoMerge "Send a publish event if :need_publish exists." into devel release-20171206
Yonghee Han [Thu, 19 Oct 2017 09:56:04 +0000 (09:56 +0000)]
Merge "Send a publish event if :need_publish exists." into devel

6 years agoMerge "Change the logrotate schedule" into devel
Yonghee Han [Thu, 28 Sep 2017 01:03:51 +0000 (01:03 +0000)]
Merge "Change the logrotate schedule" into devel

6 years agoChange the logrotate schedule 14/152114/1
Yonghee Han [Mon, 25 Sep 2017 06:01:43 +0000 (15:01 +0900)]
Change the logrotate schedule

Schedule : 2 days -> 30 days

Change-Id: I6727c9e4ba190f6d3556d40d41b2c20b5246992e

6 years agoSend a publish event if :need_publish exists. 25/152125/1
Junghyun Kim [Mon, 25 Sep 2017 05:55:32 +0000 (14:55 +0900)]
Send a publish event if :need_publish exists.

- PROBLEM:
Previously, scheduler does not send a publish event if
no more build is required in the current scheduling period
of a project. However, due to the timing issue,
it can happen that a publish event is skipped but OBS_REPO_PUBLISH
event is needed to be sent.

- SOLUTION
So, we check once more when no more build is required.
Check the added code.

Change-Id: I4ecc59df0104d3a58bebce370f0fa00acb307f1c
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoMerge "Generate publish event for failed/broken/unresolvable." into devel release-20170922
Junghyun Kim [Wed, 26 Jul 2017 02:09:46 +0000 (02:09 +0000)]
Merge "Generate publish event for failed/broken/unresolvable." into devel

6 years agoGenerate publish event for failed/broken/unresolvable. 16/139916/1
Junghyun Kim [Fri, 21 Jul 2017 04:53:21 +0000 (13:53 +0900)]
Generate publish event for failed/broken/unresolvable.

PROBLEM:
- If the first building package is failed/broken/unresolable,
a publish is not generated. This is normal because no difference
made in the repo.
- However, we need to generate a publish event to update dashboard
even for this case.

SOLUTION:
- SCHEDULER:
unresolvable/broken is checked by scheduler.
Make :need_publish if we found any unresolable/broken package.
This ensures that a publish event will be generated even if the repo
has not been changed.
- REPO_SERVER:
It checks build fail.
Make :need_publish if we found any package was failed to build.
This ensures that a publish event will be generated even if the repo
has not been changed.

Change-Id: I640e3eca1b07d7cb2066423a38346c2f8ad1f20b
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoMerge "check unpublished prior to publishing" into devel
Junghyun Kim [Mon, 17 Jul 2017 23:24:11 +0000 (23:24 +0000)]
Merge "check unpublished prior to publishing" into devel

6 years agocheck unpublished prior to publishing 33/138433/1
Junghyun Kim [Wed, 12 Jul 2017 07:14:00 +0000 (16:14 +0900)]
check unpublished prior to publishing

PROBLEM:
- There can be a case that the publishing repo is in the state 'unpublished'
- In this case, an unnecessary publish event can be generated.

SOLUTION:
- check unpublished first.

Change-Id: I7ecb4d2e7df1fe62bbf048e6a4772695db04a8a1
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
6 years agoDXLTTC-759 Fixed 404 Error when using a repa list 38/136938/1
Yonghee Han [Mon, 3 Jul 2017 23:58:05 +0000 (08:58 +0900)]
DXLTTC-759 Fixed 404 Error when using a repa list

Change-Id: I7d205a0a9e6030cc167c999ef8e1c1449b7c7e5d
PROBLEM: 404 ERROR when using a repa list after using a repa accept
SOLUTION: Delete cache of projectlist when delete the project.

7 years agoFIXED obs-server build error, stop printing cmp error log. 37/130637/1 release-20170522
Junghyun Kim [Tue, 23 May 2017 07:18:29 +0000 (16:18 +0900)]
FIXED obs-server build error, stop printing cmp error log.

Change-Id: I8eef8d9fc34874e069b63e5f112d46f40e0e3e22
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoRevert "Add parameters (sourceproject, targetproject) in REQUEST_STATECHANGE event." 11/130411/1
SoonKyu Park [Mon, 22 May 2017 08:13:37 +0000 (17:13 +0900)]
Revert "Add parameters (sourceproject, targetproject) in REQUEST_STATECHANGE event."

This reverts commit 87d93a7a5ce25945beecf4f9818c46f3fbfea110.

Change-Id: Ie6271a88bbdcf22d33f122eb5b1b46a2561938e5

7 years agoRelease OBS 2.7.3 with Tizen 20170522
hyokeun [Mon, 22 May 2017 02:35:36 +0000 (11:35 +0900)]
Release OBS 2.7.3 with Tizen 20170522

Change-Id: I4b90f2b50a0621241332de7eca8606df5d077e29

7 years agoMerge "Use same configuration variable for notification with notify_buildmonitor...
Junghyun Kim [Wed, 17 May 2017 03:57:54 +0000 (03:57 +0000)]
Merge "Use same configuration variable for notification with notify_buildmonitor.pm" into devel

7 years agoMerge "Send reference project name for UPDATE_PROJECT and CREATE_PROJECT" into devel
Junghyun Kim [Wed, 17 May 2017 03:57:47 +0000 (03:57 +0000)]
Merge "Send reference project name for UPDATE_PROJECT and CREATE_PROJECT" into devel

7 years agoMerge "Do not allow editing of inherited packages." into devel
Junghyun Kim [Tue, 16 May 2017 10:04:16 +0000 (10:04 +0000)]
Merge "Do not allow editing of inherited packages." into devel

7 years agoSend reference project name for UPDATE_PROJECT and CREATE_PROJECT 19/129419/1
Junghyun Kim [Tue, 16 May 2017 10:02:29 +0000 (19:02 +0900)]
Send reference project name for UPDATE_PROJECT and CREATE_PROJECT

Change-Id: I1e01a391baeb63847629dc90fd0853a30babe7da
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoMerge "Problem when sending rpm stage option to worker rpmstage option : -bb Envirome...
Yonghee Han [Thu, 11 May 2017 01:40:27 +0000 (01:40 +0000)]
Merge "Problem when sending rpm stage option to worker rpmstage option : -bb Enviroment : chroot Description : Do not create a source rpm files." into devel

7 years agoUse same configuration variable for notification with notify_buildmonitor.pm 61/128461/1
Junghyun Kim [Wed, 10 May 2017 06:02:56 +0000 (15:02 +0900)]
Use same configuration variable for notification with notify_buildmonitor.pm

Change-Id: Ie8117f689ed2dc756656cf1a0c7e546fe638b14b
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoDo not allow editing of inherited packages. 60/128460/1
Junghyun Kim [Wed, 10 May 2017 05:58:06 +0000 (14:58 +0900)]
Do not allow editing of inherited packages.

PROBLEM:
- If Tizen:Unified is linked to home:prerelease:Tizen:Unified,
all packages in Tizen:Unified are inherited packages.
- The current version of OBS allows to modify _service file
of inherited packages, which makes people confused because
the previous version does not allow this.
- Also, in my thought, this should not be allowed in
general point of view.

SOLUTION:
- check the project name of current instance of package controller and
the project name of current instance of package.
- The instance of package always points to the original project.

Change-Id: Ia7853a057794c3bb704cff75cb9b34373ceab88d
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoProblem when sending rpm stage option to worker 44/128244/1
Yonghee Han [Mon, 8 May 2017 07:31:55 +0000 (16:31 +0900)]
Problem when sending rpm stage option to worker
rpmstage option : -bb
Enviroment : chroot
Description : Do not create a source rpm files.

Change-Id: I8ede9a4e3e3309d150c59a5a96da1968e292140b

7 years agoAdd parameters (sourceproject, targetproject) in REQUEST_STATECHANGE event. 85/127885/1
Junghyun Kim [Tue, 2 May 2017 07:04:07 +0000 (16:04 +0900)]
Add parameters (sourceproject, targetproject) in REQUEST_STATECHANGE event.

The parameters are used for Tizen dashboard to update build_project
table.

Change-Id: I8725ed8ae06be58f10d48062949cde939dd8399a
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoBUGFIX: retrigger wrong project. 24/127724/1
Junghyun Kim [Fri, 28 Apr 2017 11:17:00 +0000 (20:17 +0900)]
BUGFIX: retrigger wrong project.

PROBLEM:
When you click "Trigger rebuild" in the live log page of project
home:prerelease:Tizen:Unified..., it triggers rebuild of Tizen:Unified.

SOLUTION:
Use the parameter 'project' instead of use of self.project.

Change-Id: I964115e4db2777adccde2bbea4355441586e60b4
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoremove dependency of BuildMonitor 02/126902/1
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>
7 years agoreceive relay_notify events. 56/126856/1
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>
7 years agoRelease OBS 2.7.3 with Tizen 20170331 release-20170331
SoonKyu Park [Fri, 31 Mar 2017 06:14:40 +0000 (15:14 +0900)]
Release OBS 2.7.3 with Tizen 20170331

Change-Id: I7c25150b014762ca43e63bd0e75ff8ad7e461277

7 years agoFix Invalid default value for created_at 58/121458/1
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

7 years agoAdd runtime dependency of obs-api-testsuite-deps to obs-api package : to add 'Requir... 04/117904/1 release-20170309
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

7 years agoDo not notify BUILD_BROKEN, BUILD_UNRESOLVABLE, and BUILD_EXCLUDED 81/117381/1
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>
7 years agoCherry-pick Feature : create new rpmbuildstage: option on OBS. in obs-server-2.4 22/116722/1
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

7 years agoDo not notify BUILD_UNRESOLVABLE if the previous status was the same 01/116101/2 release-20170224
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>
7 years agoFor CREATE_PROJECT and UPDATE_PROJECT, send directly it to plugin. 00/116100/2
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>
7 years agoAdd .gbp.conf sandbox/soong9/2.7.3
SoonKyu Park [Wed, 22 Feb 2017 12:32:30 +0000 (21:32 +0900)]
Add .gbp.conf

7 years agoUpgrade version to 2.7.3
SoonKyu Park [Wed, 22 Feb 2017 08:23:58 +0000 (17:23 +0900)]
Upgrade version to 2.7.3

7 years agoBUGFIX: do not assign $packstatus
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>
7 years agoCHANGED: detecting publishing state
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>
7 years agoBUGFIXED: use $oldpackstatus->{'packstatus'}->{$packid}
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>
7 years agoDo not skip BSNotify::notify() if testmode
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>
7 years agoExclude events in BSNotify::notify()
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>
7 years agoBUGFIX: cycle packages use packstatus.
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>
7 years agoBUGFIX: do not die even if src_directory does not exist.
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>
7 years agoAdd my new files to spec.
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>
7 years agoMake build_log_url at the BUILD_START event
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>
7 years agoAdd packaging for rpm package building
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>
7 years agoBUGFIX: to pass unit test
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>
7 years agoBUGFIX: hashref variable changed.
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>
7 years agoSquashed commit of the following:
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>
7 years agoStable version of ONE_PUBLISH_EVENT
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>
7 years agoPackage build time is parsed well now.
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>
7 years agobuild_log_url is changed.
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>
7 years agoBUGFIX: publish is not generated.
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

7 years agoFirst working version of build monitor.
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>
7 years agobuild monitor logging is merged to 2.7.1
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>
7 years agoone_publish_event is applied to 2.7.1
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>
7 years agoImported Upstream version 2.7.3 upstream upstream/2.7.3
SoonKyu Park [Wed, 22 Feb 2017 08:22:44 +0000 (17:22 +0900)]
Imported Upstream version 2.7.3

7 years agoImported Upstream version 2.7.2 upstream/2.7.2
SoonKyu Park [Wed, 22 Feb 2017 08:22:26 +0000 (17:22 +0900)]
Imported Upstream version 2.7.2

7 years agoImported Upstream version 2.7.1 upstream/2.7.1
Yonghee Han [Thu, 13 Oct 2016 04:26:39 +0000 (13:26 +0900)]
Imported Upstream version 2.7.1

7 years agoImported Upstream version 2.7.0 upstream/2.7.0
Yonghee Han [Thu, 13 Oct 2016 04:26:04 +0000 (13:26 +0900)]
Imported Upstream version 2.7.0

7 years agoImported Upstream version 2.6.9 upstream/2.6.9
Yonghee Han [Thu, 13 Oct 2016 04:25:19 +0000 (13:25 +0900)]
Imported Upstream version 2.6.9

7 years agoImported Upstream version 2.5.7 upstream/2.5.7
Yonghee Han [Thu, 13 Oct 2016 04:22:04 +0000 (13:22 +0900)]
Imported Upstream version 2.5.7

7 years agoImported Upstream version 2.4.8 upstream/2.4.8
Yonghee Han [Tue, 9 Aug 2016 11:12:32 +0000 (20:12 +0900)]
Imported Upstream version 2.4.8

8 years agoInitial empty repository
seonil kim [Fri, 3 Jun 2016 04:37:18 +0000 (21:37 -0700)]
Initial empty repository