services/obs-service-gbs.git
10 years agoAbility to run gbs under different user/group
Markus Lehtonen [Thu, 5 Dec 2013 08:55:11 +0000 (10:55 +0200)]
Ability to run gbs under different user/group

This change adds new configuration file options to set the user/group
under which gbs is run in the service. The service itself is run under
whatever user/group the source service server itself is configured to
use. The service now spawns a separate thread for gbs and sets the
uid/gid there before calling gbs - this is accomplished by utilizing
functionality from the obs-service-git-buildpackage-utils module.

Change-Id: I0c8a9c4d2349cd0ca629f816cb9011f26a42b3bb
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agotests: utilize ok_() and eq_() from nose
Markus Lehtonen [Mon, 7 Oct 2013 11:20:02 +0000 (14:20 +0300)]
tests: utilize ok_() and eq_() from nose

For better assert messages.

Change-Id: I6c5065ffef73af5754ff64f601e4bd8b180b4048
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agotests: remove one useless assert
Markus Lehtonen [Mon, 7 Oct 2013 11:17:21 +0000 (14:17 +0300)]
tests: remove one useless assert

Change-Id: I4a9cec5e7ba53d59be22c38ddfcdb69c4dc801b1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agotests: fix one assert message
Markus Lehtonen [Mon, 7 Oct 2013 11:15:55 +0000 (14:15 +0300)]
tests: fix one assert message

Change-Id: I806551fa2dd8f3c6ce22a69728bdc3cb5f27211e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoFix minor typo
Markus Lehtonen [Mon, 7 Oct 2013 11:11:01 +0000 (14:11 +0300)]
Fix minor typo

Change-Id: I99bde4dc64f90755968da9d673df3f44ecef0a95
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopackaging: start development cycle for 0.3
Markus Lehtonen [Mon, 3 Jun 2013 09:01:36 +0000 (12:01 +0300)]
packaging: start development cycle for 0.3

Change-Id: Ie6f82ba64c839b52f5f18c239c399137a826c804
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoRelease 0.2
Markus Lehtonen [Thu, 8 Aug 2013 08:55:24 +0000 (11:55 +0300)]
Release 0.2

Change-Id: If9d537a63b40c7401d19d9a6ec3fac8d31c8aeef
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoDepend on the gbp-repocache package
Markus Lehtonen [Wed, 12 Jun 2013 07:13:27 +0000 (10:13 +0300)]
Depend on the gbp-repocache package

The Git repository cached was split into a separate python module and
separate RPM package in obs-service-git-buildpackage.

Change-Id: I195f1e0a5e38b50322e39fd449aa9eae71814f0d
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoSkip default config files if --config option is used
Markus Lehtonen [Mon, 3 Jun 2013 08:47:31 +0000 (11:47 +0300)]
Skip default config files if --config option is used

Don't read/parse the default config files if config file(s) is
explicitly defined by command line argument(s).

Change-Id: I949462e4880c9fa54701f090d37458478606cda0
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agotest: minor pylint fix
Markus Lehtonen [Mon, 3 Jun 2013 08:22:02 +0000 (11:22 +0300)]
test: minor pylint fix

Change-Id: I4f7a9fec14e7f9c1754de9a4f7365f4ca55afc65
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoUtilize the GBS export API
Markus Lehtonen [Mon, 3 Jun 2013 08:17:20 +0000 (11:17 +0300)]
Utilize the GBS export API

Use the export API instead of calling the gbs command.

This dramatically decreases the number of (indirect) package
dependencies of obs-service-gbs as only the export functionality of GBS
is required.

Change-Id: Iad2b7bd4c7397a2145d40f98441369ea93135d57
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agopackaging: start next development cycle
Markus Lehtonen [Mon, 3 Jun 2013 09:01:36 +0000 (12:01 +0300)]
packaging: start next development cycle

Change spec file so that pre-releases are easily done.

Change-Id: I6f1ec074e209b3f37175f501646bfa0b059d0c26
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoRelease 0.1
Markus Lehtonen [Fri, 3 May 2013 12:38:19 +0000 (15:38 +0300)]
Release 0.1

Change-Id: Idddb72415bb515806b11bbcef3f6c5accb9c74ac
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoUse gbs-specific default repository cache directory
Markus Lehtonen [Fri, 3 May 2013 12:31:21 +0000 (15:31 +0300)]
Use gbs-specific default repository cache directory

Instead of sharing repo cache with the git-buildpackage service (by
default). This is probably safer for the future if we start to use
different repo layout/settings in the services - e.g. start to
support bare repos for the git-buildpackage service.

Change-Id: I6f3a81f4e3564409fb933ed30219610d7d094c88
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoSupport for config files
Markus Lehtonen [Tue, 23 Apr 2013 06:12:54 +0000 (09:12 +0300)]
Support for config files

Initial support for reading service configuration from a file.
Currently, there is only one configuration setting, i.e.
'repo-cache-dir'. All configuration settings can be overridden with
environment variables.

By default, the service tries to read '/etc/obs/services/gbse' and
'~/.obs/gbs'. Other file(s) can be defined with the --config cmdline
option.

Also, change each test case to be run in individual temp dir and have
individual repo cache.

Change-Id: I8dbc713eaa06875f1f1b1163b3962f491dbce4e6
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agopackaging: fix requirements for unit tests
Markus Lehtonen [Thu, 18 Apr 2013 11:34:24 +0000 (14:34 +0300)]
packaging: fix requirements for unit tests

Also don't force do_unittests in spec

Change-Id: Iaf7ec6a40c513e111fb0189db40d4eb1980d32f0
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoRename logger to LOGGER
Markus Lehtonen [Thu, 18 Apr 2013 09:55:27 +0000 (12:55 +0300)]
Rename logger to LOGGER

Adapt to new naming in obs-service-git-buildpackage.

Change-Id: Ib9b0af38f7808666da9d060cccbfaefd31ff8616
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoUpdate .gbp.conf
Markus Lehtonen [Thu, 18 Apr 2013 09:51:51 +0000 (12:51 +0300)]
Update .gbp.conf

Change-Id: I7da978d493efaf3315f591d5335e029826a0213f
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoInitial RPM packaging
Markus Lehtonen [Thu, 4 Apr 2013 12:06:15 +0000 (15:06 +0300)]
Initial RPM packaging

Change-Id: Iac1320f4629c80cb7fbed400ceb3442de40f1971
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoInitial version
Markus Lehtonen [Thu, 4 Apr 2013 08:13:39 +0000 (11:13 +0300)]
Initial version

Change-Id: I84dc4a722cee58d97c3b2cd3c32fc8379048481d
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoInitial empty repository
Eduard Bartosh [Mon, 25 Mar 2013 14:27:15 +0000 (07:27 -0700)]
Initial empty repository