Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: QEMU ARM64 (and maybe some others) fail NUT cppunittest #1126

Closed
jimklimov opened this issue Oct 8, 2021 · 1 comment
Closed

CI: QEMU ARM64 (and maybe some others) fail NUT cppunittest #1126

jimklimov opened this issue Oct 8, 2021 · 1 comment
Assignees
Labels
CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles)

Comments

@jimklimov
Copy link
Member

jimklimov commented Oct 8, 2021

https://ci.networkupstools.org/blue/rest/organizations/jenkins/pipelines/nut/pipelines/nut/branches/issue_1023_GetValue_qemu_test/runs/4/nodes/791/log/?start=0

[2021-10-08T01:17:14.037Z] FAIL: cppunittest
[2021-10-08T01:17:14.037Z] =================
[2021-10-08T01:17:14.037Z] 
[2021-10-08T01:17:14.037Z] D: Getting test suite...
[2021-10-08T01:17:14.037Z] D: Preparing test runner...
[2021-10-08T01:17:14.037Z] D: Setting test runner outputter...
[2021-10-08T01:17:14.037Z] D: Launching the test run...
[2021-10-08T01:17:14.037Z] ..F.F.......F
[2021-10-08T01:17:14.037Z] 
[2021-10-08T01:17:14.037Z] nutclienttest.cpp:110:Assertion
[2021-10-08T01:17:14.037Z] Test name: nut::NutClientTest::test_stringset_to_strarr
[2021-10-08T01:17:14.037Z] assertion failed
[2021-10-08T01:17:14.037Z] - Expression: arr != nullptr
[2021-10-08T01:17:14.037Z] - stringset_to_strarr(...) result is null
[2021-10-08T01:17:14.037Z] 
[2021-10-08T01:17:14.037Z] nutclienttest.cpp:137:Assertion
[2021-10-08T01:17:14.037Z] Test name: nut::NutClientTest::test_stringvector_to_strarr
[2021-10-08T01:17:14.037Z] assertion failed
[2021-10-08T01:17:14.037Z] - Expression: arr != nullptr
[2021-10-08T01:17:14.037Z] - stringvector_to_strarr(...) result is null
[2021-10-08T01:17:14.037Z] 
[2021-10-08T01:17:14.037Z] nutclienttest.cpp:235:Assertion
[2021-10-08T01:17:14.037Z] Test name: nut::NutClientTest::test_nutclientstub_dev
[2021-10-08T01:17:14.037Z] assertion failed
[2021-10-08T01:17:14.037Z] - Expression: values.size() == 1
[2021-10-08T01:17:14.037Z] - Failed stub tcp client: mono wrong values number
[2021-10-08T01:17:14.037Z] 
[2021-10-08T01:17:14.037Z] Failures !!!
[2021-10-08T01:17:14.037Z] Run: 10   Failure total: 3   Failures: 3   Errors: 0
[2021-10-08T01:17:14.037Z] D: Got to the end of test suite with code 'false'
[2021-10-08T01:17:14.037Z] FAIL cppunittest (exit status: 1)

Dynamatrix build combo settings:

[2021-11-02T17:48:17.424Z] FINISHED with exit-code 2 cmd:  (
[2021-11-02T17:48:17.424Z] [ -x ./ci_build.sh ] || exit
[2021-11-02T17:48:17.424Z] 
[2021-11-02T17:48:17.424Z] eval BUILD_TYPE="default-all-errors" BUILD_WARNOPT="auto" BUILD_WARNFATAL="no" MAKE="make"  CC=clang CXX=clang++ CFLAGS='-std=gnu99 -m64' CXXFLAGS='-std=gnu++11 -m64' LDFLAGS='-m64' ./ci_build.sh 
[2021-11-02T17:48:17.424Z] ) 
[2021-11-02T17:48:17.424Z] cmdOrig:  (
[2021-11-02T17:48:17.424Z] [ -x ./ci_build.sh ] || exit
[2021-11-02T17:48:17.424Z] 
[2021-11-02T17:48:17.424Z] eval BUILD_TYPE="${BUILD_TYPE}" BUILD_WARNOPT="${BUILD_WARNOPT}" BUILD_WARNFATAL="${BUILD_WARNFATAL}" MAKE="${MAKE}" ${CONFIG_ENVVARS} ./ci_build.sh ${CONFIG_OPTS}
[2021-11-02T17:48:17.424Z] ) 
[2021-11-02T17:48:17.424Z] ...for stageName: (ARCH_BITS=64&&ARCH64=aarch64&&COMPILER=CLANG&&OS_DISTRO=debian10&&OS_FAMILY=linux) && (qemu-nut-builder || ssh-qemu-nut-builder) && ((NUT_BUILD_CAPS=drivers:all||qemu-nut-builder:alldrv)) && BITS=64&&CSTDVARIANT=gnu&&CSTDVERSION_c=99&&CSTDVERSION_cxx=11  &&  LANG=C && LC_ALL=C && TZ=UTC && BUILD_TYPE=default-all-errors && BUILD_WARNFATAL=no && BUILD_WARNOPT=auto (isAllowedFailure)
[2021-11-02T17:48:17.424Z] ...as part of slowBuild filter: GNU C standard builds with non-fatal warnings, without distcheck and docs, one compiler with main supported C/C++ revision on slower QEMU builders (may fail due to those workers)
[2021-11-02T17:48:17.424Z] ...logged into: .ci.MD5_71290238d13a3c42f95e5da6ffb201f3.check.log
[2021-11-02T17:48:17.424Z] NOTE: Saved big job artifacts for this single build scenario usually have same identifier in the middle of file name
[2021-11-02T17:48:17.424Z] ...e.g. a (renamed) copy of config.log for this build
[2021-11-02T17:48:18.056Z] WARNING: FAILED 'Test1' for (ARCH_BITS=64&&ARCH64=aarch64&&COMPILER=CLANG&&OS_DISTRO=debian10&&OS_FAMILY=linux) && (qemu-nut-builder || ssh-qemu-nut-builder) && ((NUT_BUILD_CAPS=drivers:all||qemu-nut-builder:alldrv)) && BITS=64&&CSTDVARIANT=gnu&&CSTDVERSION_c=99&&CSTDVERSION_cxx=11  &&  LANG=C && LC_ALL=C && TZ=UTC && BUILD_TYPE=default-all-errors && BUILD_WARNFATAL=no && BUILD_WARNOPT=auto (isAllowedFailure)
@jimklimov jimklimov added the CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) label Oct 8, 2021
jimklimov added a commit to jimklimov/nut that referenced this issue Nov 7, 2021
This may seem trivial, but there are suspicions this allocation
does not always work (e.g. NUT issue networkupstools#1126)
@jimklimov
Copy link
Member Author

jimklimov commented Nov 8, 2021

It seems that with the conditions above (arm64, clang++, -m64) there is some bug with CppUnit's CPPUNIT_ASSERT_MESSAGE - it fails regardless of the condition part - that does not happen with other build settings.

Workaround evaluated in PR #1162

jimklimov added a commit to jimklimov/nut that referenced this issue Nov 8, 2021
This may seem trivial, but there are suspicions this allocation
does not always work (e.g. NUT issue networkupstools#1126)
@jimklimov jimklimov self-assigned this Nov 8, 2021
jimklimov added a commit to jimklimov/nut that referenced this issue Nov 8, 2021
This may seem trivial, but there are suspicions this allocation
does not always work (e.g. NUT issue networkupstools#1126)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles)
Projects
None yet
Development

No branches or pull requests

1 participant