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

sbus_tests and sbus_codegen_tests fail on Debian sid #3658

Closed
sssd-bot opened this issue May 2, 2020 · 0 comments
Closed

sbus_tests and sbus_codegen_tests fail on Debian sid #3658

sssd-bot opened this issue May 2, 2020 · 0 comments

Comments

@sssd-bot
Copy link

sssd-bot commented May 2, 2020

Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/2617

  • Created at 2015-04-07 09:54:47 by tjaalton
  • Closed at 2018-11-14 11:15:31 as wontfix
  • Assigned to lslebodn

Tried to enable check/mocka for 1.12.4 but it fails:

dh_auto_test: make -j8 check returned exit code 2
===================================
   sssd 1.12.4: ./test-suite.log
===================================
 
# TOTAL: 56
# PASS:  54
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0
 
.. contents:: :depth: 2
 
FAIL: sbus_tests
================
 
Running suite(s): sbus
20%: Checks: 5, Failures: 4, Errors: 0
../src/tests/sbus_tests.c:218:F:tests:test_raw_handler:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:275:F:tests:test_request_parse_ok:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:303:F:tests:test_request_parse_bad_args:0: Assertion 'dbus_error_has_name(&error, "org.freedesktop.DBus.Error.InvalidArgs")' failed
../src/tests/sbus_tests.c:328:F:tests:test_introspection:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:365:P:tests:test_sbus_new_error:0: Passed
 
FAIL: sbus_codegen_tests
========================
 
Running suite(s): sbus_codegen
60%: Checks: 10, Failures: 4, Errors: 0
../src/tests/sbus_codegen_tests.c:78:P:defs:test_interfaces:0: Passed
../src/tests/sbus_codegen_tests.c:102:P:defs:test_methods:0: Passed
../src/tests/sbus_codegen_tests.c:114:P:defs:test_properties:0: Passed
../src/tests/sbus_codegen_tests.c:131:P:defs:test_signals:0: Passed
../src/tests/sbus_codegen_tests.c:192:P:defs:test_vtable:0: Passed
../src/tests/sbus_codegen_tests.c:206:P:defs:test_constants:0: Passed
../src/tests/sbus_codegen_tests.c:671:F:handler:test_marshal_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:797:F:handler:test_get_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:1308:F:handler:test_getall_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:948:F:handler:test_get_basic_array_types:0: Assertion 'reply != ((void *)0)' failed

Comments


Comment from jhrozek at 2015-04-07 11:00:48

Lukas is our debian expert..

owner: somebody => lslebodn


Comment from jhrozek at 2015-04-09 16:30:53

If the tests cannot be made working on debian for one reason or other, we can disable them with a config-time option (or debian can have a downstream patch).

milestone: NEEDS_TRIAGE => SSSD Deferred


Comment from jhrozek at 2015-04-16 15:45:01

Fields changed

rhbz: => 0


Comment from lslebodn at 2015-04-22 21:01:45

Fields changed

description: Tried to enable check/mocka for 1.12.4 but it fails:

dh_auto_test: make -j8 check returned exit code 2

sssd 1.12.4: ./test-suite.log

TOTAL: 56

PASS: 54

SKIP: 0

XFAIL: 0

FAIL: 2

XPASS: 0

ERROR: 0

.. contents:: :depth: 2

FAIL: sbus_tests

Running suite(s): sbus
20%: Checks: 5, Failures: 4, Errors: 0
../src/tests/sbus_tests.c:218:F:tests:test_raw_handler:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:275:F:tests:test_request_parse_ok:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:303:F:tests:test_request_parse_bad_args:0: Assertion 'dbus_error_has_name(&error, "org.freedesktop.DBus.Error.InvalidArgs")' failed
../src/tests/sbus_tests.c:328:F:tests:test_introspection:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:365:P:tests:test_sbus_new_error:0: Passed

FAIL: sbus_codegen_tests

Running suite(s): sbus_codegen
60%: Checks: 10, Failures: 4, Errors: 0
../src/tests/sbus_codegen_tests.c:78:P:defs:test_interfaces:0: Passed
../src/tests/sbus_codegen_tests.c:102:P:defs:test_methods:0: Passed
../src/tests/sbus_codegen_tests.c:114:P:defs:test_properties:0: Passed
../src/tests/sbus_codegen_tests.c:131:P:defs:test_signals:0: Passed
../src/tests/sbus_codegen_tests.c:192:P:defs:test_vtable:0: Passed
../src/tests/sbus_codegen_tests.c:206:P:defs:test_constants:0: Passed
../src/tests/sbus_codegen_tests.c:671:F:handler:test_marshal_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:797:F:handler:test_get_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:1308:F:handler:test_getall_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:948:F:handler:test_get_basic_array_types:0: Assertion 'reply != ((void *)0)' failed => Tried to enable check/mocka for 1.12.4 but it fails:
{{{
dh_auto_test: make -j8 check returned exit code 2

sssd 1.12.4: ./test-suite.log

TOTAL: 56

PASS: 54

SKIP: 0

XFAIL: 0

FAIL: 2

XPASS: 0

ERROR: 0

.. contents:: :depth: 2

FAIL: sbus_tests

Running suite(s): sbus
20%: Checks: 5, Failures: 4, Errors: 0
../src/tests/sbus_tests.c:218:F:tests:test_raw_handler:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:275:F:tests:test_request_parse_ok:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:303:F:tests:test_request_parse_bad_args:0: Assertion 'dbus_error_has_name(&error, "org.freedesktop.DBus.Error.InvalidArgs")' failed
../src/tests/sbus_tests.c:328:F:tests:test_introspection:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_tests.c:365:P:tests:test_sbus_new_error:0: Passed

FAIL: sbus_codegen_tests

Running suite(s): sbus_codegen
60%: Checks: 10, Failures: 4, Errors: 0
../src/tests/sbus_codegen_tests.c:78:P:defs:test_interfaces:0: Passed
../src/tests/sbus_codegen_tests.c:102:P:defs:test_methods:0: Passed
../src/tests/sbus_codegen_tests.c:114:P:defs:test_properties:0: Passed
../src/tests/sbus_codegen_tests.c:131:P:defs:test_signals:0: Passed
../src/tests/sbus_codegen_tests.c:192:P:defs:test_vtable:0: Passed
../src/tests/sbus_codegen_tests.c:206:P:defs:test_constants:0: Passed
../src/tests/sbus_codegen_tests.c:671:F:handler:test_marshal_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:797:F:handler:test_get_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:1308:F:handler:test_getall_basic_types:0: Assertion 'reply != ((void *)0)' failed
../src/tests/sbus_codegen_tests.c:948:F:handler:test_get_basic_array_types:0: Assertion 'reply != ((void *)0)' failed
}}}


Comment from lslebodn at 2015-04-22 21:15:48

I was not able to reproduce failed sbus test. (different test failed in my case.

user@vm-066:~/deb_pkgs$ grep -E "FAIL|(: sbus)" sssd_1.12.4-1_amd64.build
PASS: sbus-internal-tests
FAIL: fail_over-tests
PASS: sbus_tests
PASS: sbus_codegen_tests
# XFAIL: 0
# FAIL:  1
FAIL: fail_over-tests
../src/tests/fail_over-tests.c:138:P:FAIL_OVER Tests:test_fo_new_service:0: Passed
../src/tests/fail_over-tests.c:160:F:FAIL_OVER Tests:test_fo_resolve_service:0: ../src/tests/fail_over-tests.c:244: Expected return of 0, got 110
# XFAIL: 0
# FAIL:  1

Will it fail if test are run with make -j1?


Comment from lslebodn at 2015-04-22 21:18:23

BTW here is an output of failed failover test.

FAIL: fail_over-tests
=====================

Running suite(s): fail_over

(Wed Apr 22 16:24:57:970489 2015) [sssd] [fo_new_service] (0x0400): Creating new service 'ntp'
(Wed Apr 22 16:24:57:970547 2015) [sssd] [fo_add_server_to_list] (0x0400): Inserted primary server 'localhost:20' to service 'http'
(Wed Apr 22 16:24:57:970590 2015) [sssd] [fo_add_server_to_list] (0x0400): Inserted backup server '127.0.0.1:80' to service 'http'
(Wed Apr 22 16:24:57:970625 2015) [sssd] [fo_add_server_to_list] (0x0400): Inserted backup server 'localhost:30' to service 'ldap'
(Wed Apr 22 16:24:57:970656 2015) [sssd] [fo_add_server_to_list] (0x0400): Inserted primary server '127.0.0.1:389' to service 'ldap'
(Wed Apr 22 16:24:57:970687 2015) [sssd] [fo_add_server_to_list] (0x0400): Server '127.0.0.1:389' for service 'ldap' is already present
(Wed Apr 22 16:24:57:970729 2015) [sssd] [fo_add_server_to_list] (0x0400): Server '127.0.0.1:389' for service 'ldap' is already present
(Wed Apr 22 16:24:57:970761 2015) [sssd] [fo_add_server_to_list] (0x0400): Inserted primary server '(no name):123' to service 'ntp'
(Wed Apr 22 16:24:57:970796 2015) [sssd] [fo_resolve_service_send] (0x0100): Trying to resolve service 'http'
(Wed Apr 22 16:24:57:970832 2015) [sssd] [get_server_status] (0x1000): Status of server 'localhost' is 'name not resolved'
(Wed Apr 22 16:24:57:970862 2015) [sssd] [get_port_status] (0x1000): Port status of port 20 for server 'localhost' is 'neutral'
(Wed Apr 22 16:24:57:970905 2015) [sssd] [fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 0 seconds
(Wed Apr 22 16:24:57:970928 2015) [sssd] [get_server_status] (0x1000): Status of server 'localhost' is 'name not resolved'
(Wed Apr 22 16:24:57:970960 2015) [sssd] [resolv_is_address] (0x4000): [localhost] does not look like an IP address
(Wed Apr 22 16:24:57:970984 2015) [sssd] [resolv_gethostbyname_step] (0x2000): Querying files
(Wed Apr 22 16:24:57:971007 2015) [sssd] [resolv_gethostbyname_files_send] (0x0100): Trying to resolve A record of 'localhost' in files
(Wed Apr 22 16:24:57:971057 2015) [sssd] [set_server_common_status] (0x0100): Marking server 'localhost' as 'resolving name'
(Wed Apr 22 16:24:57:971118 2015) [sssd] [resolv_gethostbyname_step] (0x2000): Querying files
(Wed Apr 22 16:24:57:971145 2015) [sssd] [resolv_gethostbyname_files_send] (0x0100): Trying to resolve AAAA record of 'localhost' in files
(Wed Apr 22 16:24:57:971197 2015) [sssd] [resolv_gethostbyname_next] (0x0200): No more address families to retry
(Wed Apr 22 16:24:57:971222 2015) [sssd] [resolv_gethostbyname_step] (0x2000): Querying DNS
(Wed Apr 22 16:24:57:971285 2015) [sssd] [resolv_gethostbyname_dns_query] (0x0100): Trying to resolve A record of 'localhost' in DNS
(Wed Apr 22 16:24:57:971316 2015) [sssd] [schedule_request_timeout] (0x2000): Scheduling a timeout of 5 seconds
(Wed Apr 22 16:24:57:971347 2015) [sssd] [schedule_timeout_watcher] (0x2000): Scheduling DNS timeout watcher
(Wed Apr 22 16:24:57:971520 2015) [sssd] [fo_resolve_service_timeout] (0x0080): Service resolving timeout reached
50%: Checks: 2, Failures: 1, Errors: 0
../src/tests/fail_over-tests.c:138:P:FAIL_OVER Tests:test_fo_new_service:0: Passed
../src/tests/fail_over-tests.c:160:F:FAIL_OVER Tests:test_fo_resolve_service:0: ../src/tests/fail_over-tests.c:244: Expected return of 0, got 110

The file /etc/hosts was not available and thus localhost could not be resolved.


Comment from tjaalton at 2017-02-24 14:51:16

Metadata Update from @tjaalton:

  • Issue assigned to lslebodn
  • Issue set to the milestone: SSSD Patches welcome

Comment from pbrezina at 2018-11-14 11:15:32

I'm closing this since we have reimplemented sbus in SSSD 2.0 and we do not plan to work on this.


Comment from pbrezina at 2018-11-14 11:15:33

Metadata Update from @pbrezina:

  • Custom field design_review reset (from 0)
  • Custom field mark reset (from 0)
  • Custom field patch reset (from 0)
  • Custom field review reset (from 0)
  • Custom field testsupdated reset (from 0)
  • Issue close_status updated to: wontfix
  • Issue status updated to: Closed (was: Open)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant