Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
477 stars 75 forks source link

Jenkins build broken #1700

Closed Flamefire closed 1 week ago

Flamefire commented 2 weeks ago

Currently the build on Jenkins is broken on linux preventing the next nightly which would also fix the updater bug.

      Start 16: Test_integration
      Start 19: Test_lua
 1/25 Test #16: Test_integration .................***Failed    0.05 sec
Running 131 test cases...
unknown location(0): fatal error: in "AI/PlayerHasBld_IsCorrect": memory access violation at address: 0x557400000000: no mapping at fault address
/source/tests/s25Main/./worldFixtures/WorldFixture.h(108): last checkpoint

*** 1 failure is detected in the test module "RTTR_Integration"


      Start 25: Test_UI
 2/25 Test #19: Test_lua .........................***Failed    0.05 sec
double free or corruption (out)
Running 27 test cases...
unknown location(0): fatal error: in "LuaTestSuite/LuaEqual_IsCorrect": signal: SIGABRT (application abort requested)
/source/tests/s25Main/lua/testLua.cpp(37): last checkpoint: "LuaEqual_IsCorrect" fixture dtor
double free or corruption (out)
unknown location(0): fatal error: in "LuaTestSuite/AssertionThrows": signal: SIGABRT (application abort requested)
/source/tests/s25Main/lua/testLua.cpp(46): last checkpoint: "AssertionThrows" fixture dtor
double free or corruption (out)
unknown location(0): fatal error: in "LuaTestSuite/ScriptLoading": signal: SIGABRT (application abort requested)
/source/tests/s25Main/lua/testLua.cpp(52): last checkpoint: "ScriptLoading" fixture dtor
double free or corruption (out)
unknown location(0): fatal error: in "LuaTestSuite/BaseFunctions": signal: SIGABRT (application abort requested)
/source/tests/s25Main/lua/testLua.cpp(85): last checkpoint: "BaseFunctions" fixture dtor
double free or corruption (out)
unknown location(0): fatal error: in "LuaTestSuite/Translations": signal: SIGABRT (application abort requested)
/source/tests/s25Main/lua/testLua.cpp(119): last checkpoint: "Translations" fixture dtor
unknown location(0): fatal error: in "LuaTestSuite/GameFunctions": memory access violation at address: 0x7ffd00000000: no mapping at fault address
/source/tests/s25Main/lua/GameWithLuaAccess.h(99): last checkpoint

*** 6 failures are detected in the test module "RTTR_Lua"

This doesn't happen on any other CI, not locally on Linux 2 systems and also not using the docker container locally:

docker run -it -e USER --rm -v /home/alex/git/s25client:/source:ro -v /tmp/result:/result:rw --workdir /tmp/build  registry.mytrap.de/rttr/cross-compiler/linux/linux-amd64-docker:master /bin/bash 
root@2bd4558292f5:/tmp/build# export JENKINS_SERVER_COOKIE=1
# Insert `architecture="linux.x86_64"` to build.sh
root@2bd4558292f5:/tmp/build# /source/tools/ci/jenkins/build.sh 

So I think it is something on the build server. Can you investigate please @Flow86? Maybe clearing the ccache already solves this.

stefson commented 1 week ago

seems more like compile is working, but tests are broken?

Flow86 commented 1 week ago

I've deleted the local cache. lets see if that helps. (or do we run into an out of memory? the build containers are quiet limited, but I don't think the tests take more than 8gig ram, do we?)

Flamefire commented 1 week ago

It yields memory access violations so I don't think it is an OOM issue. I tried to build locally with ASAN on Linux und VLD on Windows and didn't find any issues.

When trying the build in the docker container by hand (not using the build.sh, but IMO same commands) I got an error that the static boost libs were not build with -fPIC. Using the build script the issue vanished. Very strange, not sure if related

Flamefire commented 1 week ago

The last build succeeded, thanks! But:

Stage "deploy" skipped due to when conditional

So I guess we have to wait for the nightly build to get the current version on the website.