URL: https://github.com/SSSD/sssd/pull/511
Title: #511: Do not shutdown KCM/Secrets responders when activities are 
happening ...

fidencio commented:
"""
I've updated the patch set following @jhrozek's suggestion.
Here is the output of a run with and without passing the "-m 'not slow'" to the 
tests:
```
[ffidenci@pessoa x86_64]$ make intgcheck-run INTGCHECK_PYTEST_ARGS="-k 
test_secrets.py"
set -e; \
if [ ! -d intg/pfx ]; then make intgcheck-prepare; fi; \
cd intg/bld; \
make  -C src/tests/intg intgcheck-installed; \
cd ../..
make[1]: Entering directory 
'/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg'
pipepath="/tmp/sssd-intg.hls5nvgr/var/lib/sss/pipes"; \
if test ${#pipepath} -gt 80; then \
    echo "error: Pipe directory path too long," \
         "D-Bus won't be able to open sockets" >&2; \
    exit 1; \
fi
set -e; \
cd "/home/brq/ffidenci/src/upstream/sssd/x86_64/../src/tests/intg"; \
nss_wrapper=$(pkg-config --libs nss_wrapper); \
uid_wrapper=$(pkg-config --libs uid_wrapper); \
unset HOME; \
PATH="$(dirname -- /usr/sbin/slapd):$PATH" \
PATH="/tmp/sssd-intg.hls5nvgr/sbin:/tmp/sssd-intg.hls5nvgr/bin:$PATH" \
PATH="$PATH:/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg:/home/brq/ffidenci/src/upstream/sssd/x86_64/../src/tests/intg"
 \
PYTHONPATH="/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg:/home/brq/ffidenci/src/upstream/sssd/x86_64/../src/tests/intg"
 \
LDB_MODULES_PATH="/tmp/sssd-intg.hls5nvgr/lib/ldb" \
NON_WRAPPED_UID=$(id -u) \
LD_PRELOAD="/tmp/sssd-intg.hls5nvgr/lib/getsockopt_wrapper.so:$nss_wrapper:$uid_wrapper"
 \
NSS_WRAPPER_PASSWD="/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg/passwd"
 \
NSS_WRAPPER_GROUP="/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg/group"
 \
NSS_WRAPPER_MODULE_SO_PATH="/tmp/sssd-intg.hls5nvgr/lib/libnss_sss.so.2" \
NSS_WRAPPER_MODULE_FN_PREFIX="sss" \
UID_WRAPPER=1 \
UID_WRAPPER_ROOT=1 \
DBUS_SOCK_DIR="/tmp/sssd-intg.hls5nvgr/var/run/dbus/" \
DBUS_SESSION_BUS_ADDRESS="unix:path=$DBUS_SOCK_DIR/fake_socket" \
DBUS_SYSTEM_BUS_ADDRESS="unix:path=$DBUS_SOCK_DIR/system_bus_socket" \
DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$DBUS_SYSTEM_BUS_ADDRESS" \
    fakeroot /usr/bin/python2 /usr/bin/py.test -v --tb=native -k 
test_secrets.py .
========================================================= test session starts 
==========================================================
platform linux2 -- Python 2.7.14, pytest-3.2.3, py-1.4.34, pluggy-0.4.0 -- 
/usr/bin/python2
cachedir: .cache
rootdir: /home/brq/ffidenci/src/upstream/sssd/src/tests/intg, inifile:
collected 261 items                                                             
                                                        

test_secrets.py::test_crd_ops PASSED
test_secrets.py::test_curlwrap_crd_ops PASSED
test_secrets.py::test_curlwrap_parallel PASSED
test_secrets.py::test_containers PASSED
test_secrets.py::test_cli_idle_timeout PASSED
test_secrets.py::test_global_quota PASSED
test_secrets.py::test_sec_quota PASSED
test_secrets.py::test_per_uid_limit PASSED
test_secrets.py::test_unlimited_quotas PASSED
test_secrets.py::test_resp_idle_timeout_shutdown_slow PASSED
test_secrets.py::test_resp_idle_timeout_postpone_shutdown_slow PASSED

========================================================= 250 tests deselected 
=========================================================
============================================= 11 passed, 250 deselected in 
267.31 seconds ==============================================
rm -f /tmp/sssd-intg.hls5nvgr/var/log/sssd/*
make[1]: Leaving directory 
'/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg'



[ffidenci@pessoa x86_64]$ make intgcheck-run INTGCHECK_PYTEST_ARGS="-k 
test_secrets.py -m 'not slow'"
set -e; \
if [ ! -d intg/pfx ]; then make intgcheck-prepare; fi; \
cd intg/bld; \
make  -C src/tests/intg intgcheck-installed; \
cd ../..
make[1]: Entering directory 
'/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg'
pipepath="/tmp/sssd-intg.hls5nvgr/var/lib/sss/pipes"; \
if test ${#pipepath} -gt 80; then \
    echo "error: Pipe directory path too long," \
         "D-Bus won't be able to open sockets" >&2; \
    exit 1; \
fi
set -e; \
cd "/home/brq/ffidenci/src/upstream/sssd/x86_64/../src/tests/intg"; \
nss_wrapper=$(pkg-config --libs nss_wrapper); \
uid_wrapper=$(pkg-config --libs uid_wrapper); \
unset HOME; \
PATH="$(dirname -- /usr/sbin/slapd):$PATH" \
PATH="/tmp/sssd-intg.hls5nvgr/sbin:/tmp/sssd-intg.hls5nvgr/bin:$PATH" \
PATH="$PATH:/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg:/home/brq/ffidenci/src/upstream/sssd/x86_64/../src/tests/intg"
 \
PYTHONPATH="/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg:/home/brq/ffidenci/src/upstream/sssd/x86_64/../src/tests/intg"
 \
LDB_MODULES_PATH="/tmp/sssd-intg.hls5nvgr/lib/ldb" \
NON_WRAPPED_UID=$(id -u) \
LD_PRELOAD="/tmp/sssd-intg.hls5nvgr/lib/getsockopt_wrapper.so:$nss_wrapper:$uid_wrapper"
 \
NSS_WRAPPER_PASSWD="/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg/passwd"
 \
NSS_WRAPPER_GROUP="/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg/group"
 \
NSS_WRAPPER_MODULE_SO_PATH="/tmp/sssd-intg.hls5nvgr/lib/libnss_sss.so.2" \
NSS_WRAPPER_MODULE_FN_PREFIX="sss" \
UID_WRAPPER=1 \
UID_WRAPPER_ROOT=1 \
DBUS_SOCK_DIR="/tmp/sssd-intg.hls5nvgr/var/run/dbus/" \
DBUS_SESSION_BUS_ADDRESS="unix:path=$DBUS_SOCK_DIR/fake_socket" \
DBUS_SYSTEM_BUS_ADDRESS="unix:path=$DBUS_SOCK_DIR/system_bus_socket" \
DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$DBUS_SYSTEM_BUS_ADDRESS" \
    fakeroot /usr/bin/python2 /usr/bin/py.test -v --tb=native -k 
test_secrets.py -m 'not slow' .
========================================================= test session starts 
==========================================================
platform linux2 -- Python 2.7.14, pytest-3.2.3, py-1.4.34, pluggy-0.4.0 -- 
/usr/bin/python2
cachedir: .cache
rootdir: /home/brq/ffidenci/src/upstream/sssd/src/tests/intg, inifile:
collected 261 items                                                             
                                                        

test_secrets.py::test_crd_ops PASSED
test_secrets.py::test_curlwrap_crd_ops PASSED
test_secrets.py::test_curlwrap_parallel PASSED
test_secrets.py::test_containers PASSED
test_secrets.py::test_cli_idle_timeout PASSED
test_secrets.py::test_global_quota PASSED
test_secrets.py::test_sec_quota PASSED
test_secrets.py::test_per_uid_limit PASSED
test_secrets.py::test_unlimited_quotas PASSED

========================================================= 252 tests deselected 
=========================================================
============================================== 9 passed, 252 deselected in 
24.96 seconds ===============================================
rm -f /tmp/sssd-intg.hls5nvgr/var/log/sssd/*
make[1]: Leaving directory 
'/home/brq/ffidenci/src/upstream/sssd/x86_64/intg/bld/src/tests/intg'
```
"""

See the full comment at 
https://github.com/SSSD/sssd/pull/511#issuecomment-384891382
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org

Reply via email to