Mailinglist Archive: opensuse-buildservice (137 mails)

< Previous Next >
[opensuse-buildservice] backend consistency error when using linked projects and source services with OBS 2.3
Hi all,

I was running into a very strange problem on OBS 2.3 (more precisely
2.2.96 but also retested on 2.2.104) when using source services in
combination with linkedbuild projects.

The strange thing is that I could not reproduce the problem on
build.opensuse.org.

The error reproduces on my machines like that:

Create a project home:rschiele:treesbug_base:

<project name="home:rschiele:treesbug_base">
<title></title>
<description></description>
<person role="maintainer" userid="rschiele" />
<person role="bugowner" userid="rschiele" />
<repository name="openSUSE_Factory">
<path project="openSUSE.org:openSUSE:Factory" repository="snapshot" />
<arch>i586</arch>
</repository>
</project>

copypac zlib from openSUSE:Factory into. Which package you use should
not make a big difference, zlib is just a small example.

After that zlib should start building successfully here.

Next create a project home:rschiele:treesbug_link:

<project name="home:rschiele:treesbug_link">
<title></title>
<description></description>
<link project="home:rschiele:treesbug_base" />
<person role="maintainer" userid="rschiele" />
<person role="bugowner" userid="rschiele" />
<repository name="foobar" linkedbuild="all">
<path project="openSUSE.org:openSUSE:Factory" repository="snapshot" />
<arch>i586</arch>
</repository>
</project>

Given the config of this project it should automatically start
building the zlib package successfully as well.

Now I want to modify the package and thus invoke "osc branch
home:rschiele:treesbug_base zlib" to get a separate branch project
with a branch of the package. The rest of the modifications I will do
on the web UI again since they are rather trivial.

Now I add a source service, that does not necessarily make a lot of
sense but I need it to reproduce this problem. In my case I create the
following service file:

<services>
<service name="recompress"><param
name="file">zlib-1.2.5.2_git201109121534.tar.bz2</param><param
name="compression">gz</param></service>
</services>

I also update the spec file to use the gz file instead of the bz2 file.

After this modification the package builds again successfully. Thus I
submit it back to where I branched it off (treesbug_base).

I accept the submit request.

Observation 1: Source services in treesbug_base is not automatically
triggered on accepting the submit request through the web UI. Thus the
package does not build. Is this intentional and why? Or is this a bug?

Observation 2: In treesbug_link the package does no longer build
giving this error instead:

home:rschiele:treesbug_link/zlib/f8e1b18bdade329f0d1f987ce91a4d0d: not
in repository. Either not existing or misconfigured server setting for
'$nosharedtrees' setting in BSConfig.pm

$nosharedtrees is set to 2 actually and thus should be ok.

Looking into trees I can see the following current files

-rw-r--r-- 1 obsrun obsrun 574 Dec 5 15:39
home:rschiele:treesbug_base/zlib/a1043f28f5a7b561606355e2768e8d1e-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 573 Dec 5 15:39
home:rschiele:treesbug_base/zlib/f8e1b18bdade329f0d1f987ce91a4d0d-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 530 Dec 5 15:39
home:rschiele:treesbug_base/zlib/32a97031a322a3375cfa5ddb3e0cb2c1-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 704 Dec 5 15:39
home:rschiele:branches:home:rschiele:treesbug_base/zlib/542e3f9b38a8a93ccb5af29789af5cce-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 701 Dec 5 15:39
home:rschiele:branches:home:rschiele:treesbug_base/zlib/cbc93bd25acd94ac344c9735ab6d3ee2-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 613 Dec 5 15:39
home:rschiele:branches:home:rschiele:treesbug_base/zlib/943404789e11008dc6f5a15cd735bea3-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 530 Dec 5 15:39
home:rschiele:treesbug_link/zlib/32a97031a322a3375cfa5ddb3e0cb2c1-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 701 Dec 5 15:39
home:rschiele:branches:home:rschiele:treesbug_base/zlib/8676af0afcccb78bc55c3385c13eb10a-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 570 Dec 5 15:39
home:rschiele:branches:home:rschiele:treesbug_base/zlib/be377358f1e5e61b9fa5c548dc6444e6-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 611 Dec 5 15:39
home:rschiele:branches:home:rschiele:treesbug_base/zlib/6489e4702867797166bb6cfd4baf975e-MD5SUMS
-rw-r--r-- 1 obsrun obsrun 611 Dec 5 15:39
home:rschiele:branches:home:rschiele:treesbug_base/zlib/97bf6f96587a014a5f16aa3fab97910d-MD5SUMS

As you can see, treesbug_base has three files while treesbug_link has
a subset of one but not the one requested.

The content of the relevant three files is like that:

obs-base:/srv/obs/trees # cat
home\:rschiele\:treesbug_base/zlib/a1043f28f5a7b561606355e2768e8d1e-MD5SUMS
fa2bdaa47efd84b0ebd93e934e719ac1 LICENSE
ffeaf641b86ef407c871cb135e17544b _service
fc6e730a4e94d02fd47e20d18ab36000 baselibs.conf
0d8bcd1dcc8587f6b7b670b30685f486 zlib-1.2.2-format.patch
51a22c0a368bd0d4f6ef47c7bd9d10be zlib-1.2.5.2_git201109121534.tar.bz2
df6b134edb7382cc5f913ffe3d630ec9 zlib-adler-target-attr.patch
88811543f05e171d638500f7f4f2722f zlib-no-sslibsuffix.patch
761685d1ec9c192db916e94321e2a9b0 zlib-ocloexec.patch
f74159cb6072a0eb00eae673d410c8df zlib.changes
411439d376985b93259898f7f3c459f5 zlib.spec
f8e1b18bdade329f0d1f987ce91a4d0d /LSERVICE
obs-base:/srv/obs/trees # cat
home\:rschiele\:treesbug_base/zlib/f8e1b18bdade329f0d1f987ce91a4d0d-MD5SUMS
a1043f28f5a7b561606355e2768e8d1e /SERVICE
fa2bdaa47efd84b0ebd93e934e719ac1 LICENSE
ffeaf641b86ef407c871cb135e17544b _service
fc6e730a4e94d02fd47e20d18ab36000 baselibs.conf
0d8bcd1dcc8587f6b7b670b30685f486 zlib-1.2.2-format.patch
51a22c0a368bd0d4f6ef47c7bd9d10be zlib-1.2.5.2_git201109121534.tar.bz2
df6b134edb7382cc5f913ffe3d630ec9 zlib-adler-target-attr.patch
88811543f05e171d638500f7f4f2722f zlib-no-sslibsuffix.patch
761685d1ec9c192db916e94321e2a9b0 zlib-ocloexec.patch
f74159cb6072a0eb00eae673d410c8df zlib.changes
411439d376985b93259898f7f3c459f5 zlib.spec
obs-base:/srv/obs/trees # cat
home\:rschiele\:treesbug_base/zlib/32a97031a322a3375cfa5ddb3e0cb2c1-MD5SUMS
fa2bdaa47efd84b0ebd93e934e719ac1 LICENSE
ffeaf641b86ef407c871cb135e17544b _service
fc6e730a4e94d02fd47e20d18ab36000 baselibs.conf
0d8bcd1dcc8587f6b7b670b30685f486 zlib-1.2.2-format.patch
51a22c0a368bd0d4f6ef47c7bd9d10be zlib-1.2.5.2_git201109121534.tar.bz2
df6b134edb7382cc5f913ffe3d630ec9 zlib-adler-target-attr.patch
88811543f05e171d638500f7f4f2722f zlib-no-sslibsuffix.patch
761685d1ec9c192db916e94321e2a9b0 zlib-ocloexec.patch
f74159cb6072a0eb00eae673d410c8df zlib.changes
411439d376985b93259898f7f3c459f5 zlib.spec

So, to me it seems the source service code somehow does not work
correctly with the code managing the trees in the situation of
linkedbuild projects. Does anyone have an idea where I could search or
even better knows a solution.

As I said this seems to work on build.opensuse.org, thus it might be a
configuration issue as well. In any case I would be happy for a
pointer.

Robert
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups