openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
931 stars 437 forks source link

OBS testsuite failure - Interconnect tests fail #3273

Open mmohring opened 7 years ago

mmohring commented 7 years ago

Issue/Feature description

Currently, the testsuite fails in: InterConnectTests => test_anonymous_access:

[ 440s] InterConnectTests [ 440s] test_anonymous_access FAIL (4.74s) [ 440s] Minitest::Assertion: Expected response to be a <2XX: success>, but was a <400: Bad Request> [ 440s] test/functional/interconnect_test.rb:71:in test_anonymous_access [ 440s] test/test_helper.rb:126:in block in run [ 440s] test/test_helper.rb:126:in map [ 440s] test/test_helper.rb:126:in run

Also, there are errors in the logfile, API test section:

[ 378s] 400 remote error: unknown request GET /lastevents [ 380s] 400 remote error: unknown request GET /lastevents [ 380s] 400 remote error: unknown request GET /lastevents

Expected result

Those tests should pass

How to Reproduce

See your OBS testsuite log in OBS:Server:Unstable / obs-server

Further information

It seems that for an unknown reason this does not happen when I create a package using: in the _service file of the package: <service name="tar_scm"> instead of the currently used: <service name="obs_scm"> and I also do not use: mode="buildtime" e.g. no when no build time source services are called and I create a tar archive it works. Can this be due to permissions, symlinks or timestamps in .cpio archive vs .tar archive ?

mmohring commented 7 years ago

I have tracked this down, the error is not related to the spec file and also not to the version of the git commit of obs-server in the obs-server package. I can reproduce this behavior for multiple build targets: openSUSE Leap 42.1 - 42.3 and with SLE 12 SP2. So it seems to be only related to the .cpio / .tar archive created by the source service of the obs-server package. I can reproduce this with git-master snapshots of the last 3 weeks. I can reproduce this with your b.o.o OBS and also with a local installation. I am using in my local OBS the obs-service-tar_scm version from openSUSE:Tools.

hennevogel commented 7 years ago

@M0ses is already looking into this

adrianschroeter commented 7 years ago

currently workarounded in _service file to short the path length to unbreak unix domain socket operations.

Not considered as fix yet ...

mmohring commented 7 years ago

@hennevogel @M0ses. It seems that its not "obs_scm" vs "tar_scm", I could reproduce it also with "tar_scm". Remains build time source services. Maybe some symlinks killed ?