ElektraInitiative / libelektra

Elektra serves as a universal and secure framework to access configuration settings in a global, hierarchical key database.
https://www.libelektra.org
BSD 3-Clause "New" or "Revised" License
208 stars 123 forks source link

cirrus: testmod_augeas fails on macOS Big Sur #3743

Closed mpranj closed 3 years ago

mpranj commented 3 years ago

Steps to Reproduce the Problem

Build Elektra on macOS Big Sur on cirrus and run tests.

Expected Result

All tests succeed.

Actual Result

See full log here.

1/1 Test #64: testmod_augeas ...................Subprocess aborted***Exception:   0.01 sec
Assertion `size' failed: Size to allocate is zero (implementation defined behavior) (in elektraMalloc at src/libs/elektra/internal.c:276)
AUGEAS       TESTS
==================
../src/plugins/augeas/testmod_augeas.c:45: error in test_hostLensRead: call to kdbGet was not successful
number: C01200
description: : Installation
module: : augeas
at: ../src/plugins/augeas/augeas.c:543
reason: : Syntax error in lens definition
    lensPath: Hosts.lns
mountpoint: : user:/tests/augeas-hosts
configfile: : /private/var/folders/sr/b58hwhtj0jbcf4r09zmg0wlc0000gn/T/cirrus-ci-build/src/plugins/augeas/augeas/hosts-read
../src/plugins/augeas/testmod_augeas.c:46: error in test_hostLensRead: error in kdbGet
../src/plugins/augeas/testmod_augeas.c:50: error in test_hostLensRead: ip address of localhost not found
../src/plugins/augeas/testmod_augeas.c:115: error in test_hostLensWrite: kdbSet was not successful
number: C01200
description: : Installation
module: : augeas
at: ../src/plugins/augeas/augeas.c:632
reason: : Syntax error in lens definition
    lensPath: Hosts.lns
mountpoint: : user:/tests/augeas-hosts
configfile: : /var/folders/sr/b58hwhtj0jbcf4r09zmg0wlc0000gn/T/elektra-test.9fPWVC/elektra-tmp.lAYwUt
../src/plugins/augeas/testmod_augeas.c:116: error in test_hostLensWrite: error in kdbSet
The files do not have same number of lines (0): /private/var/folders/sr/b58hwhtj0jbcf4r09zmg0wlc0000gn/T/cirrus-ci-build/src/plugins/augeas/augeas/hosts-write.
../tests/cframework/tests.c:172: error in compare_line_files_fun: comparing files failed
../src/plugins/augeas/testmod_augeas.c:119: error in test_hostLensWrite: files do not match as expected
../src/plugins/augeas/testmod_augeas.c:184: error in test_hostLensModify: call to kdbGet was not successful
number: C01200
description: : Installation
module: : augeas

[...]

System Information

Further Log Files and Output

install.log main.log tests.log

markus2330 commented 3 years ago

Thank you for reporting the problem! I agree that disabling the test is the correct thing to do, the error sounds like some broken Hosts.lns is installed.

mpranj commented 3 years ago

Disabling is only a temporary measure until someone can fix it. Unfortunately I can not reproduce this locally and it is not high priority to me. I'd rather fix the other current CI problems.

markus2330 commented 3 years ago

The problem will probably go away with an upgrade of Augeas. I would not invest energy trying to fix it.