Project

General

Profile

Actions

Bug #14262

closed

unittest hangs on forever in the middle

Added by shun song over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

//1. first i run run-make-check.sh

[root@ceph-ci-build ceph-1]# ./run-make-check.sh
.......
PASS: unittest_admin_socket
PASS: unittest_ceph_crypto
PASS: unittest_utf8
PASS: unittest_mime
PASS: unittest_escape
PASS: unittest_strtol
PASS: unittest_confutils
PASS: unittest_config
PASS: unittest_context
PASS: unittest_safe_io
PASS: unittest_heartbeatmap
PASS: unittest_formatter
PASS: unittest_daemon_config
PASS: unittest_ipaddr
PASS: unittest_texttable
PASS: unittest_readahead
PASS: unittest_tableformatter
PASS: unittest_bit_vector
PASS: unittest_erasure_code_shec_thread
PASS: unittest_bufferlist
PASS: ../qa/workunits/erasure-code/encode-decode-non-regression.sh
PASS: test/encoding/readable.sh
PASS: unittest_erasure_code_shec_all

//2. check which unittest case hang on

[root@ceph-ci-build ~]# ps axu|grep test-driver

root 7296 0.0 0.0 112640 968 pts/3 S+ 15:54 0:00 grep --color=auto test-driver
root 8315 0.0 0.0 113124 1524 pts/2 S+ 15:39 0:00 /bin/sh c p='test/osd/osd-scrub-repair.sh'; \ b='test/osd/osd-scrub-repair.sh'; \ case $ in e) set e;; esac; srcdirstrip=`echo "." | sed 's|.|.|g'`; case $p in ./*) f=`echo "$p" | sed "s|^$srcdirstrip/||"`;; ) f=$p;; esac; { mgn= red= grn= lgn= blu= brg= std=; am__color_tests=no; if test "X" = Xno; then am__color_tests=no; elif test "X" = Xalways; then am__color_tests=yes; elif test "X$TERM" != Xdumb && { test t 1; } 2>/dev/null; then am__color_tests=yes; fi; if test $am__color_tests = yes; then red='?[0;31m'; grn='?[0;32m'; lgn='?[1;32m'; blu='?[1;34m'; mgn='?[0;35m'; brg='?[1m'; std='?[m'; fi; }; srcdir=.; export srcdir; case "test/osd/osd-scrub-repair.sh.log" in */) am__odir=`echo "./test/osd/osd-scrub-repair.sh.log" | sed 's|/[^/]*$||'`;; ) am__odir=.;; esac; test "x$am__odir" = x"." || test -d "$am__odir" || /usr/bin/mkdir -p "$am__odir" || exit $?; if test -f "./$f"; then dir=./; elif test -f "$f"; then dir=; else dir="./"; fi; tst=$dir$f; log='test/osd/osd-scrub-repair.sh.log'; if test -n ''; then am__enable_hard_errors=no; else am__enable_hard_errors=yes; fi; case " " in *[\ \?]$f[\ \?] | [\ \?]$dir$f[\ \?]) am__expect_failure=yes;; ) am__expect_failure=no;; esac; /bin/sh ../test-driver --test-name "$f" \ --log-file $b.log --trs-file $b.trs \ --color-tests "$am__color_tests" --enable-hard-errors "$am__enable_hard_errors" --expect-failure "$am__expect_failure" - \ "$tst"
root 8325 0.0 0.0 113124 1460 pts/2 S
15:39 0:00 /bin/sh ../test-driver --test-name test/osd/osd-scrub-repair.sh --log-file test/osd/osd-scrub-repair.sh.log --trs-file test/osd/osd-scrub-repair.sh.trs --color-tests yes --enable-hard-errors yes --expect-failure no -- ./test/osd/osd-scrub-repair.sh
root 10740 0.0 0.0 113124 1520 pts/2 S+ 15:38 0:00 /bin/sh c p='test/ceph_objectstore_tool.py'; \ b='test/ceph_objectstore_tool.py'; \ case $ in *e
) set e;; esac; srcdirstrip=`echo "." | sed 's|.|.|g'`; case $p in ./*) f=`echo "$p" | sed "s|^$srcdirstrip/||"`;; ) f=$p;; esac; { mgn= red= grn= lgn= blu= brg= std=; am__color_tests=no; if test "X" = Xno; then am__color_tests=no; elif test "X" = Xalways; then am__color_tests=yes; elif test "X$TERM" != Xdumb && { test t 1; } 2>/dev/null; then am__color_tests=yes; fi; if test $am__color_tests = yes; then red='?[0;31m'; grn='?[0;32m'; lgn='?[1;32m'; blu='?[1;34m'; mgn='?[0;35m'; brg='?[1m'; std='?[m'; fi; }; srcdir=.; export srcdir; case "test/ceph_objectstore_tool.py.log" in */) am__odir=`echo "./test/ceph_objectstore_tool.py.log" | sed 's|/[^/]*$||'`;; ) am__odir=.;; esac; test "x$am__odir" = x"." || test -d "$am__odir" || /usr/bin/mkdir -p "$am__odir" || exit $?; if test -f "./$f"; then dir=./; elif test -f "$f"; then dir=; else dir="./"; fi; tst=$dir$f; log='test/ceph_objectstore_tool.py.log'; if test -n ''; then am__enable_hard_errors=no; else am__enable_hard_errors=yes; fi; case " " in *[\ \?]$f[\ \?] | [\ \?]$dir$f[\ \?]) am__expect_failure=yes;; *) am__expect_failure=no;; esac; /bin/sh ../test-driver --test-name "$f" \ --log-file $b.log --trs-file $b.trs \ --color-tests "$am__color_tests" --enable-hard-errors "$am__enable_hard_errors" --expect-failure "$am__expect_failure" - \ "$tst"
root 10764 0.0 0.0 113124 1464 pts/2 S
15:38 0:00 /bin/sh ../test-driver --test-name test/ceph_objectstore_tool.py --log-file test/ceph_objectstore_tool.py.log --trs-file test/ceph_objectstore_tool.py.trs --color-tests yes --enable-hard-errors yes --expect-failure no -- ./test/ceph_objectstore_tool.py

Actions #1

Updated by shun song over 8 years ago

it seems check-programs and check-scripts run in unordered sequence. looking from Makefile, it should be firstly run check-programs, then run check-scripts.

PASS: test/pybind/test_ceph_argparse.py
PASS: unittest_striper
PASS: unittest_prebufferedstreambuf
PASS: unittest_str_list
PASS: unittest_log
PASS: unittest_throttle
PASS: unittest_ceph_argparse
PASS: unittest_ceph_compatset
PASS: unittest_mds_types
PASS: unittest_osd_types
PASS: unittest_lru
PASS: unittest_io_priority
PASS: unittest_gather
PASS: unittest_workqueue
PASS: unittest_signals
PASS: unittest_xlist
PASS: unittest_crc32c
PASS: unittest_arch
PASS: unittest_crypto
PASS: unittest_crypto_init
PASS: unittest_perf_counters
PASS: unittest_admin_socket
PASS: unittest_ceph_crypto
PASS: unittest_utf8
PASS: unittest_mime
PASS: unittest_escape
PASS: unittest_strtol
PASS: unittest_confutils
PASS: unittest_config
PASS: unittest_context
PASS: unittest_safe_io
PASS: unittest_heartbeatmap
PASS: unittest_formatter
PASS: unittest_daemon_config
PASS: unittest_ipaddr
PASS: unittest_texttable
PASS: unittest_readahead
PASS: unittest_tableformatter
PASS: unittest_bit_vector
PASS: unittest_erasure_code_shec_thread
PASS: unittest_bufferlist
PASS: ../qa/workunits/erasure-code/encode-decode-non-regression.sh
PASS: test/encoding/readable.sh
PASS: unittest_erasure_code_shec_all

Actions #2

Updated by Sage Weil over 8 years ago

  • Status changed from New to Resolved

i think this is fixed.. we resolved several issues with make check 2 days ago. please reopen if you still see it!

Actions

Also available in: Atom PDF