#2694 CI: Fix ramshackle test_ipa_subdomains_server (FAIL: test_ipa_subdom_server)
Closed: cloned-to-github 3 years ago by pbrezina. Opened 8 years ago by lslebodn.

test_ipa_subdomains_server failed for me few times:
It would be good to fix it to have reliable tests.


This test failed under valgrind:

[==========] Running 11 test(s).
[ RUN      ] test_ipa_trust_dir2str
[       OK ] test_ipa_trust_dir2str
[ RUN      ] test_ipa_server_create_oneway
[       OK ] test_ipa_server_create_oneway
[ RUN      ] test_ipa_server_create_oneway_kt_exists
[       OK ] test_ipa_server_create_oneway_kt_exists
[ RUN      ] test_ipa_server_trust_oneway_init
test_ctx->ipa_ctx->server_mode->trusts
/var/tmp/sssd/src/tests/cmocka/test_ipa_subdomains_server.c:726: error: Failure!

[  FAILED  ] test_ipa_server_trust_oneway_init
[ RUN      ] test_ipa_server_trust_init
[       OK ] test_ipa_server_trust_init
[ RUN      ] test_ipa_server_create_trusts
[       OK ] test_ipa_server_create_trusts
[ RUN      ] test_get_trust_direction_inbound
[       OK ] test_get_trust_direction_inbound
[ RUN      ] test_get_trust_direction_outbound
[       OK ] test_get_trust_direction_outbound
[ RUN      ] test_get_trust_direction_twoway
[       OK ] test_get_trust_direction_twoway
[ RUN      ] test_get_trust_direction_notset_root
[       OK ] test_get_trust_direction_notset_root
[ RUN      ] test_get_trust_direction_notset_member
[       OK ] test_get_trust_direction_notset_member
[==========] 11 test(s) run.
[  PASSED  ] 10 test(s).
[  FAILED  ] 1 test(s), listed below:
[  FAILED  ] test_ipa_server_trust_oneway_init

 1 FAILED TEST(S)
FAIL: test_ipa_subdom_server

Fields changed

milestone: NEEDS_TRIAGE => SSSD Continuous integration

Fields changed

rhbz: => 0

Fields changed

milestone: SSSD Continuous integration => SSSD 1.13.2

[==========] Running 13 test(s).
[ RUN      ] test_ipa_server_trust_oneway_init
test_ctx->ipa_ctx->server_mode->trusts
../src/tests/cmocka/test_ipa_subdomains_server.c:859: error: Failure!

[  FAILED  ] test_ipa_server_trust_oneway_init

http://sssd-ci.duckdns.org/logs/job/24/32/rhel7/ci-build-debug/sssd-1.13.1/_build/test_ipa_subdom_server.log

Fields changed

summary: CI: Fix ramshackle test_ipa_subdomains_server => CI: Fix ramshackle test_ipa_subdomains_server (FAIL: test_ipa_subdom_server)

Fields changed

priority: major => critical

Fields changed

patch: 0 => 1

Fields changed

milestone: SSSD 1.13.2 => SSSD 1.13.1

Replying to [comment:7 lslebodn]:

{{{
[==========] Running 13 test(s).
[ RUN ] test_ipa_server_trust_oneway_init
test_ctx->ipa_ctx->server_mode->trusts
../src/tests/cmocka/test_ipa_subdomains_server.c:859: error: Failure!

[ FAILED ] test_ipa_server_trust_oneway_init
}}}

I can see similar failure also in 1.13.1 in koji.
https://kojipkgs.fedoraproject.org//work/tasks/6921/11356921/build.log

So it could not be caused by problems with keytab, because it's already fixed in 1.13.1 by commit bee2f31

Maybe it's another timing issue.

resolution: fixed =>
status: closed => reopened

Fields changed

milestone: SSSD 1.13.1 => NEEDS_TRIAGE

Adding for the record; In case of removed build from koji

===================================
   sssd 1.13.1: ./test-suite.log
===================================
# TOTAL: 74
# PASS:  72
# SKIP:  1
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test_ipa_subdom_server
============================
[==========] Running 13 test(s).
[ RUN      ] test_ipa_trust_dir2str
[       OK ] test_ipa_trust_dir2str
[ RUN      ] test_ipa_server_create_oneway
[       OK ] test_ipa_server_create_oneway
[ RUN      ] test_ipa_server_create_oneway_kt_exists
[       OK ] test_ipa_server_create_oneway_kt_exists
[ RUN      ] test_ipa_server_create_oneway_kt_refresh_fallback
(Wed Oct  7 12:23:49:138939 2015) [sssd] [child_sig_handler] (0x0020): child [30896] failed with status [1].
(Wed Oct  7 12:23:49:140904 2015) [sssd] [child_sig_handler] (0x0020): child [30897] failed with status [1].
[       OK ] test_ipa_server_create_oneway_kt_refresh_fallback
[ RUN      ] test_ipa_server_create_oneway_kt_refresh_fail
(Wed Oct  7 12:23:49:152943 2015) [sssd] [child_sig_handler] (0x0020): child [30898] failed with status [1].
[       OK ] test_ipa_server_create_oneway_kt_refresh_fail
[ RUN      ] test_ipa_server_trust_oneway_init
test_ctx->ipa_ctx->server_mode->trusts
src/tests/cmocka/test_ipa_subdomains_server.c:860: error: Failure!
[  FAILED  ] test_ipa_server_trust_oneway_init
[ RUN      ] test_ipa_server_trust_init
[       OK ] test_ipa_server_trust_init
[ RUN      ] test_ipa_server_create_trusts
[       OK ] test_ipa_server_create_trusts
[ RUN      ] test_get_trust_direction_inbound
[       OK ] test_get_trust_direction_inbound
[ RUN      ] test_get_trust_direction_outbound
[       OK ] test_get_trust_direction_outbound
[ RUN      ] test_get_trust_direction_twoway
[       OK ] test_get_trust_direction_twoway
[ RUN      ] test_get_trust_direction_notset_root
[       OK ] test_get_trust_direction_notset_root
[ RUN      ] test_get_trust_direction_notset_member
[       OK ] test_get_trust_direction_notset_member
[==========] 13 test(s) run.
[  PASSED  ] 12 test(s).
[  FAILED  ] 1 test(s), listed below:
[  FAILED  ] test_ipa_server_trust_oneway_init
 1 FAILED TEST(S)
FAIL test_ipa_subdom_server (exit status: 1)
SKIP: src/tests/whitespace_test
===============================
Git repository is required for this test!
SKIP src/tests/whitespace_test (exit status: 77)
============================================================================
Testsuite summary for sssd 1.13.1
============================================================================
# TOTAL: 74
# PASS:  72
# SKIP:  1
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to sssd-devel@lists.fedorahosted.org
============================================================================
Makefile:19332: recipe for target 'test-suite.log' failed
make[4]: Leaving directory '/builddir/build/BUILD/sssd-1.13.1'
Makefile:19438: recipe for target 'check-TESTS' failed
make[3]: Leaving directory '/builddir/build/BUILD/sssd-1.13.1'
make[4]: *** [test-suite.log] Error 1
make[3]: *** [check-TESTS] Error 2
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
Makefile:20138: recipe for target 'check-am' failed
make[2]: Leaving directory '/builddir/build/BUILD/sssd-1.13.1'
Makefile:19218: recipe for target 'check-recursive' failed
make[1]: Leaving directory '/builddir/build/BUILD/sssd-1.13.1'
Makefile:20141: recipe for target 'check' failed
RPM build errors:
make: *** [check] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.zwkag2 (%check)
    Bad exit status from /var/tmp/rpm-tmp.zwkag2 (%check)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bb --target i686 --nodeps  /builddir/build/SPECS/sssd.spec 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 493, in do
    raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bb --target i686 --nodeps  /builddir/build/SPECS/sssd.spec 
LEAVE do --> EXCEPTION RAISED

patch: 1 => 0
version: 1.12.5 => 1.13.1

We don't know exactly what's going on -- we'll try to solve the ticket again, but I'll lower the priority.

milestone: NEEDS_TRIAGE => SSSD 1.13.3
priority: critical => minor

This ticket still needs work and we need to release 1.13.3 soon.

milestone: SSSD 1.13.3 => SSSD 1.13.4

Since we couldn't reproduce the failure in a reliable manner, I'm moving the ticket to the CI milestone.

milestone: SSSD 1.13.4 => SSSD Continuous integration

Metadata Update from @lslebodn:
- Issue set to the milestone: SSSD Continuous integration

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/3735

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @pbrezina:
- Issue close_status updated to: cloned-to-github
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata