00:00:00.001 Started by upstream project "autotest-per-patch" build number 130882 00:00:00.001 originally caused by: 00:00:00.001 Started by user sys_sgci 00:00:00.011 Checking out git https://review.spdk.io/gerrit/a/build_pool/jenkins_build_pool into /var/jenkins_home/workspace/check-format-docker-autotest_script/33b20b30f0a51e6b52980845e0f6aa336787973ad45e341fbbf98d1b65b265d4 to read jbp/jenkins/jjb-config/jobs/autotest-downstream/autotest-docker.groovy 00:00:00.012 The recommended git tool is: git 00:00:00.012 using credential 00000000-0000-0000-0000-000000000002 00:00:00.014 Cloning the remote Git repository 00:00:00.014 Using shallow clone with depth 1 00:00:00.014 Honoring refspec on initial clone 00:00:00.014 Using no checkout clone with sparse checkout. 00:00:00.014 Cloning repository https://review.spdk.io/gerrit/a/build_pool/jenkins_build_pool 00:00:00.014 > git init /var/jenkins_home/workspace/check-format-docker-autotest_script/33b20b30f0a51e6b52980845e0f6aa336787973ad45e341fbbf98d1b65b265d4/jbp # timeout=10 00:00:00.029 Fetching upstream changes from https://review.spdk.io/gerrit/a/build_pool/jenkins_build_pool 00:00:00.029 > git --version # timeout=10 00:00:00.041 > git --version # 'git version 2.39.2' 00:00:00.041 using GIT_ASKPASS to set credentials SPDKCI HTTPS Credentials 00:00:00.052 Setting http proxy: proxy-dmz.intel.com:911 00:00:00.052 > git fetch --tags --force --progress --depth=1 -- https://review.spdk.io/gerrit/a/build_pool/jenkins_build_pool refs/heads/master # timeout=5 00:00:02.512 > git config remote.origin.url https://review.spdk.io/gerrit/a/build_pool/jenkins_build_pool # timeout=10 00:00:02.523 > git config --add remote.origin.fetch refs/heads/master # timeout=10 00:00:02.534 Avoid second fetch 00:00:02.535 > git rev-parse origin/FETCH_HEAD^{commit} # timeout=10 00:00:02.544 > git rev-parse FETCH_HEAD^{commit} # timeout=10 00:00:02.554 Checking out Revision f95f9907808933a1db7196e15e13478e0f322ee7 (FETCH_HEAD) 00:00:02.554 > git config core.sparsecheckout # timeout=10 00:00:02.563 > git config core.sparsecheckout true # timeout=10 00:00:02.572 > git read-tree -mu HEAD # timeout=10 00:00:02.584 > git checkout -f f95f9907808933a1db7196e15e13478e0f322ee7 # timeout=5 00:00:02.623 Commit message: "Revert "autotest-phy: replace deprecated label for nvmf-cvl"" 00:00:02.623 > git rev-list --no-walk f95f9907808933a1db7196e15e13478e0f322ee7 # timeout=10 00:00:02.726 [Pipeline] Start of Pipeline 00:00:02.739 [Pipeline] library 00:00:02.740 Loading library shm_lib@master 00:00:02.740 Library shm_lib@master is cached. Copying from home. 00:00:02.755 [Pipeline] retry 00:00:02.757 [Pipeline] { 00:00:02.766 [Pipeline] timeout 00:00:02.766 Timeout set to expire after 10 min without activity 00:00:02.767 [Pipeline] { 00:00:02.778 [Pipeline] node 00:00:06.516 Running on agt-_autotest_33207-762 in /var/jenkins/workspace/check-format-docker-autotest 00:00:06.518 [Pipeline] { 00:00:06.529 [Pipeline] wrap 00:00:06.537 [Pipeline] { 00:00:06.545 [Pipeline] stage 00:00:06.546 [Pipeline] { (Prologue) 00:00:06.562 [Pipeline] echo 00:00:06.564 Node: agt-_autotest_33207-762 00:00:06.751 [Pipeline] setCustomBuildProperty 00:00:06.763 [Pipeline] sh 00:00:07.775 + sudo git config --global --replace-all safe.directory '*' 00:00:07.890 [Pipeline] httpRequest 00:00:10.052 [Pipeline] echo 00:00:10.053 Sorcerer 10.211.164.101 is alive 00:00:10.063 [Pipeline] retry 00:00:10.064 [Pipeline] { 00:00:10.075 [Pipeline] httpRequest 00:00:10.080 HttpMethod: GET 00:00:10.080 URL: http://10.211.164.101/packages/jbp_f95f9907808933a1db7196e15e13478e0f322ee7.tar.gz 00:00:10.082 Sending request to url: http://10.211.164.101/packages/jbp_f95f9907808933a1db7196e15e13478e0f322ee7.tar.gz 00:00:10.086 Response Code: HTTP/1.1 200 OK 00:00:10.086 Success: Status code 200 is in the accepted range: 200,404 00:00:10.086 Saving response body to /var/jenkins/workspace/check-format-docker-autotest/jbp_f95f9907808933a1db7196e15e13478e0f322ee7.tar.gz 00:00:10.234 [Pipeline] } 00:00:10.251 [Pipeline] // retry 00:00:10.258 [Pipeline] sh 00:00:10.556 + tar --no-same-owner -xf jbp_f95f9907808933a1db7196e15e13478e0f322ee7.tar.gz 00:00:10.572 [Pipeline] httpRequest 00:00:10.958 [Pipeline] echo 00:00:10.960 Sorcerer 10.211.164.101 is alive 00:00:10.970 [Pipeline] retry 00:00:10.971 [Pipeline] { 00:00:10.985 [Pipeline] httpRequest 00:00:10.991 HttpMethod: GET 00:00:10.991 URL: http://10.211.164.101/packages/spdk_ee470bf339b4d8313b53d60e4017cc6a876595f2.tar.gz 00:00:10.992 Sending request to url: http://10.211.164.101/packages/spdk_ee470bf339b4d8313b53d60e4017cc6a876595f2.tar.gz 00:00:10.996 Response Code: HTTP/1.1 200 OK 00:00:10.996 Success: Status code 200 is in the accepted range: 200,404 00:00:10.997 Saving response body to /var/jenkins/workspace/check-format-docker-autotest/spdk_ee470bf339b4d8313b53d60e4017cc6a876595f2.tar.gz 00:00:19.370 [Pipeline] } 00:00:19.388 [Pipeline] // retry 00:00:19.396 [Pipeline] sh 00:00:19.693 + tar --no-same-owner -xf spdk_ee470bf339b4d8313b53d60e4017cc6a876595f2.tar.gz 00:00:23.000 [Pipeline] sh 00:00:23.295 + git -C spdk log --oneline -n5 00:00:23.295 ee470bf33 AE4DMA : Added header files and basic functions. 00:00:23.295 3950cd1bb bdev/nvme: Change spdk_bdev_reset() to succeed if at least one nvme_ctrlr is reconnected 00:00:23.295 f9141d271 test/blob: Add BLOCKLEN macro in blob_ut 00:00:23.295 82c46626a lib/event: implement scheduler trace events 00:00:23.295 fa6aec495 lib/thread: register thread owner type for scheduler trace events 00:00:23.312 [Pipeline] writeFile 00:00:23.327 [Pipeline] sh 00:00:23.621 + cat autorun-spdk.conf 00:00:23.622 : 00:00:23.622 00:00:23.629 RUN_NIGHTLY=0 00:00:23.631 [Pipeline] } 00:00:23.645 [Pipeline] // stage 00:00:23.653 [Pipeline] catchError 00:00:23.655 [Pipeline] { 00:00:23.668 [Pipeline] timeout 00:00:23.668 Timeout set to expire in 5 min 0 sec 00:00:23.670 [Pipeline] { 00:00:23.684 [Pipeline] stage 00:00:23.686 [Pipeline] { (Tests) 00:00:23.700 [Pipeline] sh 00:00:23.994 + jbp/jenkins/jjb-config/jobs/scripts/docker-autoruner.sh check-format-docker-autotest autorun-spdk.conf 00:00:23.994 00:59:25 -- common/autotest_common.sh@1682 -- # [[ n == y ]] 00:00:23.994 00:59:25 -- common/autobuild_common.sh@15 -- # source /var/jenkins/workspace/check-format-docker-autotest/spdk/scripts/common.sh 00:00:23.994 00:59:25 -- scripts/common.sh@15 -- # shopt -s extglob 00:00:23.994 00:59:25 -- scripts/common.sh@547 -- # [[ -e /bin/wpdk_common.sh ]] 00:00:23.994 00:59:25 -- scripts/common.sh@555 -- # [[ -e /etc/opt/spdk-pkgdep/paths/export.sh ]] 00:00:23.994 00:59:25 -- scripts/common.sh@556 -- # source /etc/opt/spdk-pkgdep/paths/export.sh 00:00:23.994 00:59:25 -- paths/export.sh@2 -- # PATH=/opt/golangci/1.54.2/bin:/opt/protoc/21.7/bin:/opt/go/1.21.1/bin:/opt/golangci/1.54.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 00:00:23.994 00:59:25 -- paths/export.sh@3 -- # PATH=/opt/go/1.21.1/bin:/opt/golangci/1.54.2/bin:/opt/protoc/21.7/bin:/opt/go/1.21.1/bin:/opt/golangci/1.54.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 00:00:23.994 00:59:25 -- paths/export.sh@4 -- # PATH=/opt/protoc/21.7/bin:/opt/go/1.21.1/bin:/opt/golangci/1.54.2/bin:/opt/protoc/21.7/bin:/opt/go/1.21.1/bin:/opt/golangci/1.54.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 00:00:23.994 00:59:25 -- paths/export.sh@5 -- # export PATH 00:00:23.994 00:59:25 -- paths/export.sh@6 -- # echo /opt/protoc/21.7/bin:/opt/go/1.21.1/bin:/opt/golangci/1.54.2/bin:/opt/protoc/21.7/bin:/opt/go/1.21.1/bin:/opt/golangci/1.54.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 00:00:23.994 00:59:25 -- common/autobuild_common.sh@485 -- # out=/var/jenkins/workspace/check-format-docker-autotest/spdk/../output 00:00:23.994 00:59:25 -- common/autobuild_common.sh@486 -- # date +%s 00:00:23.994 00:59:25 -- common/autobuild_common.sh@486 -- # mktemp -dt spdk_1728349165.XXXXXX 00:00:23.994 00:59:25 -- common/autobuild_common.sh@486 -- # SPDK_WORKSPACE=/tmp/spdk_1728349165.L6eX0x 00:00:23.994 00:59:25 -- common/autobuild_common.sh@488 -- # [[ -n '' ]] 00:00:23.994 00:59:25 -- common/autobuild_common.sh@492 -- # '[' -n '' ']' 00:00:23.994 00:59:25 -- common/autobuild_common.sh@495 -- # scanbuild_exclude='--exclude /var/jenkins/workspace/check-format-docker-autotest/spdk/dpdk/' 00:00:23.994 00:59:25 -- common/autobuild_common.sh@499 -- # scanbuild_exclude+=' --exclude /var/jenkins/workspace/check-format-docker-autotest/spdk/xnvme --exclude /tmp' 00:00:23.994 00:59:25 -- common/autobuild_common.sh@501 -- # scanbuild='scan-build -o /var/jenkins/workspace/check-format-docker-autotest/spdk/../output/scan-build-tmp --exclude /var/jenkins/workspace/check-format-docker-autotest/spdk/dpdk/ --exclude /var/jenkins/workspace/check-format-docker-autotest/spdk/xnvme --exclude /tmp --status-bugs' 00:00:23.994 00:59:25 -- common/autobuild_common.sh@502 -- # get_config_params 00:00:23.994 00:59:25 -- common/autotest_common.sh@409 -- # xtrace_disable 00:00:23.994 00:59:25 -- common/autotest_common.sh@10 -- # set +x 00:00:23.994 00:59:25 -- common/autobuild_common.sh@502 -- # config_params='--enable-debug --enable-werror --with-rdma --with-idxd --with-fio=/usr/src/fio --with-iscsi-initiator --disable-unit-tests --enable-coverage --with-ublk' 00:00:23.995 00:59:25 -- common/autobuild_common.sh@504 -- # start_monitor_resources 00:00:23.995 00:59:25 -- pm/common@17 -- # local monitor 00:00:23.995 00:59:25 -- pm/common@19 -- # for monitor in "${MONITOR_RESOURCES[@]}" 00:00:23.995 00:59:25 -- pm/common@19 -- # for monitor in "${MONITOR_RESOURCES[@]}" 00:00:23.995 00:59:25 -- pm/common@25 -- # sleep 1 00:00:23.995 00:59:25 -- pm/common@21 -- # date +%s 00:00:23.995 00:59:25 -- pm/common@21 -- # date +%s 00:00:23.995 00:59:25 -- pm/common@21 -- # /var/jenkins/workspace/check-format-docker-autotest/spdk/scripts/perf/pm/collect-vmstat -d /var/jenkins/workspace/check-format-docker-autotest/spdk/../output/power -l -p monitor.docker-autoruner.sh.1728349165 00:00:23.995 00:59:25 -- pm/common@21 -- # /var/jenkins/workspace/check-format-docker-autotest/spdk/scripts/perf/pm/collect-cpu-load -d /var/jenkins/workspace/check-format-docker-autotest/spdk/../output/power -l -p monitor.docker-autoruner.sh.1728349165 00:00:23.995 Redirecting to /var/jenkins/workspace/check-format-docker-autotest/spdk/../output/power/monitor.docker-autoruner.sh.1728349165_collect-vmstat.pm.log 00:00:23.995 Redirecting to /var/jenkins/workspace/check-format-docker-autotest/spdk/../output/power/monitor.docker-autoruner.sh.1728349165_collect-cpu-load.pm.log 00:00:24.935 00:59:26 -- common/autobuild_common.sh@505 -- # trap stop_monitor_resources EXIT 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@11 -- # cd /var/jenkins/workspace/check-format-docker-autotest/spdk 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@13 -- # cp /var/spdk/build-repo-manifest.txt /var/jenkins/workspace/check-format-docker-autotest/output 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@21 -- # [[ check-format-docker-autotest == unittest-valgrind-docker-autotest ]] 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@26 -- # cpus_limit=26 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@27 -- # nproc 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@27 -- # nproc 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@27 -- # export 'MAKEFLAGS=-j 26' 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@27 -- # MAKEFLAGS='-j 26' 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@29 -- # [[ -n '' ]] 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@39 -- # case "$job_name" in 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@45 -- # CHECK_FORMAT_ONLY_DIFF=yes 00:00:24.935 00:59:26 -- scripts/docker-autoruner.sh@45 -- # check_format 00:00:24.935 00:59:26 -- common/autobuild_common.sh@361 -- # run_test autobuild_check_format /var/jenkins/workspace/check-format-docker-autotest/spdk/scripts/check_format.sh 00:00:24.935 00:59:26 -- common/autotest_common.sh@1103 -- # '[' 2 -le 1 ']' 00:00:24.935 00:59:26 -- common/autotest_common.sh@1109 -- # xtrace_disable 00:00:24.935 00:59:26 -- common/autotest_common.sh@10 -- # set +x 00:00:24.935 ************************************ 00:00:24.935 START TEST autobuild_check_format 00:00:24.935 ************************************ 00:00:24.935 00:59:26 autobuild_check_format -- common/autotest_common.sh@1127 -- # /var/jenkins/workspace/check-format-docker-autotest/spdk/scripts/check_format.sh 00:00:26.319 Checking file permissions... OK 00:00:26.578 Checking coding style... OK 00:00:26.578 Checking comment style... OK 00:00:28.487 Checking markdown files format... OK 00:00:28.487 Checking for spaces before tabs... OK 00:00:28.487 Checking trailing whitespace in output strings... OK 00:00:28.487 Checking for use of forbidden library functions... OK 00:00:28.487 Checking for use of forbidden CUnit macros... OK 00:00:29.421 Checking blank lines at end of file... OK 00:00:29.991 Checking for POSIX includes... OK 00:00:30.250 Checking #include style... OK 00:00:30.819 Checking Python style... OK 00:00:31.078 Checking .sh formatting style...patching file autotest.sh 00:00:31.078 00:00:31.078 * Errors in style formatting have been detected. 00:00:31.078 Please, review the generated patch at /var/jenkins/workspace/check-format-docker-autotest/spdk/../output/shfmt-v3.8.0.patch 00:00:31.078 00:00:31.078 # _START_OF_THE_DIFF 00:00:31.078 00:00:31.078 diff --git a/autotest.sh b/autotest.sh 00:00:31.078 index 3005c9998..cc61519a0 100755 00:00:31.078 --- a/autotest.sh 00:00:31.078 +++ b/autotest.sh 00:00:31.078 @@ -255,7 +255,7 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then 00:00:31.078 00:00:31.078 if [ $SPDK_TEST_AE4DMA -eq 1 ]; then 00:00:31.078 run_test "ae4dma" $rootdir/test/ae4dma/ae4dma.sh 00:00:31.078 - fi 00:00:31.078 + fi 00:00:31.078 00:00:31.078 timing_exit lib 00:00:31.078 00:00:31.078 00:00:31.078 # _END_OF_THE_DIFF 00:00:31.078 00:00:36.627 Checking Bash static analysis with shellcheck... Bash shellcheck errors detected! 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 56: 00:00:36.627 name="$1[@]" 00:00:36.627 ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 57: 00:00:36.627 array=("${!name}") 00:00:36.627 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 59: 00:00:36.627 for element in "${array[@]}"; do 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 60: 00:00:36.627 if [ "$element" = "$2" ]; then 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 61: 00:00:36.627 return $(true) 00:00:36.627 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 65: 00:00:36.627 return $(false) 00:00:36.627 ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 ^---^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 299: 00:00:36.627 local rc=0 00:00:36.627 ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 301: 00:00:36.627 echo -n "Checking for proper function naming conventions..." 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 303: 00:00:36.627 commit_to_compare="$(git log --pretty=oneline --skip=1 -n 1 | awk '{print $1}')" 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 304: 00:00:36.627 failed_naming_conventions=false 00:00:36.627 ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 305: 00:00:36.627 changed_c_libs=() 00:00:36.627 ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 306: 00:00:36.627 declared_symbols=() 00:00:36.627 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 309: 00:00:36.627 mapfile -t changed_c_libs < <(git diff --name-only HEAD $commit_to_compare -- lib/**/*.c module/**/*.c | xargs -r dirname | sort | uniq) 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 311: 00:00:36.627 mapfile -t declared_symbols < <(grep -Eh 'spdk_[a-zA-Z0-9_]*\(' include/spdk*/*.h \ 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 314: 00:00:36.627 for c_lib in "${changed_c_libs[@]}"; do 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 315: 00:00:36.627 lib_map_file="mk/spdk_blank.map" 00:00:36.627 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 316: 00:00:36.627 defined_symbols=() 00:00:36.627 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 317: 00:00:36.627 removed_symbols=() 00:00:36.627 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.627 00:00:36.627 00:00:36.627 In scripts/check_format.sh line 318: 00:00:36.627 exported_symbols=() 00:00:36.627 ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 319: 00:00:36.628 if ls "$c_lib"/*.map &> /dev/null; then 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 320: 00:00:36.628 lib_map_file="$(ls "$c_lib"/*.map)" 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 324: 00:00:36.628 mapfile -t defined_symbols < <(git diff -U0 $commit_to_compare HEAD -- $c_lib | sed -En 's/(^[+])(spdk[a-z,A-Z,0-9,_]*)(\(.*)/\2/p') 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 326: 00:00:36.628 mapfile -t removed_symbols < <(git diff -U0 $commit_to_compare HEAD -- $c_lib | sed -En 's/(^[-])(spdk[a-z,A-Z,0-9,_]*)(\(.*)/\2/p') 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 327: 00:00:36.628 for symbol in "${removed_symbols[@]}"; do 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 328: 00:00:36.628 for i in "${!defined_symbols[@]}"; do 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 329: 00:00:36.628 if [[ ${defined_symbols[i]} = "$symbol" ]]; then 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 330: 00:00:36.628 unset -v 'defined_symbols[i]' 00:00:36.628 ^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 336: 00:00:36.628 mapfile -t exported_symbols < <(sed -En 's/(^[[:space:]]*)(spdk[a-z,A-Z,0-9,_]*);/\2/p' < $lib_map_file) 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 337: 00:00:36.628 for defined_symbol in "${defined_symbols[@]}"; do 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 339: 00:00:36.628 if [ "$defined_symbol" = '' ]; then 00:00:36.628 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 340: 00:00:36.628 continue 00:00:36.628 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 342: 00:00:36.628 not_exported=true 00:00:36.628 ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.628 00:00:36.628 00:00:36.628 In scripts/check_format.sh line 343: 00:00:36.628 not_declared=true 00:00:36.629 ^---------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 344: 00:00:36.629 if array_contains_string exported_symbols $defined_symbol; then 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 345: 00:00:36.629 not_exported=false 00:00:36.629 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 348: 00:00:36.629 if array_contains_string declared_symbols $defined_symbol; then 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 349: 00:00:36.629 not_declared=false 00:00:36.629 ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 352: 00:00:36.629 if $not_exported || $not_declared; then 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 353: 00:00:36.629 if ! $failed_naming_conventions; then 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 354: 00:00:36.629 echo " found naming convention errors." 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 356: 00:00:36.629 echo "function $defined_symbol starts with spdk_ which is reserved for public API functions." 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 357: 00:00:36.629 echo "Please add this function to its corresponding map file and a public header or remove the spdk_ prefix." 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 358: 00:00:36.629 failed_naming_conventions=true 00:00:36.629 ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 359: 00:00:36.629 rc=1 00:00:36.629 ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 364: 00:00:36.629 if ! $failed_naming_conventions; then 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 365: 00:00:36.629 echo " OK" 00:00:36.629 ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 368: 00:00:36.629 return $rc 00:00:36.629 ^--------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 372: 00:00:36.629 local out decltype=$1 excludes=(${@:2}) 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.629 00:00:36.629 In scripts/check_format.sh line 376: 00:00:36.629 out=$(git grep -E "^$decltype\s+\w+.*\{$" -- "include/spdk" "${excludes[@]}" \ 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.629 00:00:36.630 00:00:36.630 In scripts/check_format.sh line 380: 00:00:36.630 if [[ -n "$out" ]]; then 00:00:36.630 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.630 ^-------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.630 00:00:36.630 00:00:36.630 In scripts/check_format.sh line 381: 00:00:36.630 cat <<- WARN 00:00:36.630 ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.630 00:00:36.630 00:00:36.630 In scripts/check_format.sh line 386: 00:00:36.630 return 1 00:00:36.630 ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.630 00:00:36.630 00:00:36.630 In scripts/check_format.sh line 391: 00:00:36.630 check_function_conventions 00:00:36.630 ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.630 00:00:36.630 00:00:36.630 In scripts/check_format.sh line 394: 00:00:36.630 check_conventions_generic 'enum' \ 00:00:36.630 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.630 00:00:36.630 00:00:36.630 In scripts/check_format.sh line 405: 00:00:36.630 check_conventions_generic 'struct' \ 00:00:36.630 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). 00:00:36.630 00:00:36.630 For more information: 00:00:36.630 https://www.shellcheck.net/wiki/SC2317 -- Command appears to be unreachable... 00:00:36.630 Checking whether CHANGELOG.md should be updated... OK 00:00:36.889 Checking that all RPCs are documented... OK 00:00:36.889 Checking rpc.py argument option names... OK 00:00:37.158 Checking SPDX-license...OK 00:00:49.392 Checking Golang style...OK 00:00:49.392 Checking extern "C"... OK 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@1127 -- # trap - ERR 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@1127 -- # print_backtrace 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@1155 -- # [[ ehxBET =~ e ]] 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@1157 -- # args=('/var/jenkins/workspace/check-format-docker-autotest/spdk/scripts/check_format.sh' 'autobuild_check_format') 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@1157 -- # local args 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@1159 -- # xtrace_disable 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@10 -- # set +x 00:00:49.392 ========== Backtrace start: ========== 00:00:49.392 00:00:49.392 in /var/jenkins/workspace/check-format-docker-autotest/spdk/test/common/autotest_common.sh:1127 -> run_test(["autobuild_check_format"],["/var/jenkins/workspace/check-format-docker-autotest/spdk/scripts/check_format.sh"]) 00:00:49.392 ... 00:00:49.392 1122 timing_enter $test_name 00:00:49.392 1123 echo "************************************" 00:00:49.392 1124 echo "START TEST $test_name" 00:00:49.392 1125 echo "************************************" 00:00:49.392 1126 xtrace_restore 00:00:49.392 1127 time "$@" 00:00:49.392 1128 xtrace_disable 00:00:49.392 1129 echo "************************************" 00:00:49.392 1130 echo "END TEST $test_name" 00:00:49.392 1131 echo "************************************" 00:00:49.392 1132 timing_exit $test_name 00:00:49.392 ... 00:00:49.392 in /var/jenkins/workspace/check-format-docker-autotest/spdk/test/common/autobuild_common.sh:361 -> check_format([]) 00:00:49.392 ... 00:00:49.392 356 fi 00:00:49.392 357 rm -rf "$rootdir"/doc/output 00:00:49.392 358 } 00:00:49.392 359 00:00:49.392 360 check_format() { 00:00:49.392 => 361 run_test "autobuild_check_format" "$rootdir/scripts/check_format.sh" 00:00:49.392 362 } 00:00:49.392 363 00:00:49.392 364 check_so_deps() { 00:00:49.392 365 run_test "autobuild_check_so_deps" "$rootdir/test/make/check_so_deps.sh" -c "$spdk_conf" -a "$SPDK_ABI_DIR" 00:00:49.392 366 } 00:00:49.392 ... 00:00:49.392 in jbp/jenkins/jjb-config/jobs/scripts/docker-autoruner.sh:45 -> main([]) 00:00:49.392 ... 00:00:49.392 backtrace unavailable 00:00:49.392 ... 00:00:49.392 00:00:49.392 ========== Backtrace end ========== 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@1196 -- # return 0 00:00:49.392 00:00:49.392 real 0m24.008s 00:00:49.392 user 1m54.632s 00:00:49.392 sys 0m53.081s 00:00:49.392 00:59:50 autobuild_check_format -- common/autotest_common.sh@1 -- # stop_monitor_resources 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@29 -- # signal_monitor_resources TERM 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@40 -- # local monitor pid pids signal=TERM 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@42 -- # for monitor in "${MONITOR_RESOURCES[@]}" 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@43 -- # [[ -e /var/jenkins/workspace/check-format-docker-autotest/spdk/../output/power/collect-cpu-load.pid ]] 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@44 -- # pid=202 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@50 -- # kill -TERM 202 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@42 -- # for monitor in "${MONITOR_RESOURCES[@]}" 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@43 -- # [[ -e /var/jenkins/workspace/check-format-docker-autotest/spdk/../output/power/collect-vmstat.pid ]] 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@44 -- # pid=203 00:00:49.392 00:59:50 autobuild_check_format -- pm/common@50 -- # kill -TERM 203 00:00:49.405 [Pipeline] } 00:00:49.422 [Pipeline] // stage 00:00:49.429 [Pipeline] } 00:00:49.446 [Pipeline] // timeout 00:00:49.454 [Pipeline] } 00:00:49.458 ERROR: script returned exit code 1 00:00:49.458 Setting overall build result to FAILURE 00:00:49.471 [Pipeline] // catchError 00:00:49.481 [Pipeline] stage 00:00:49.483 [Pipeline] { (Epilogue) 00:00:49.496 [Pipeline] sh 00:00:49.847 [Pipeline] setCustomBuildProperty 00:00:49.855 [Pipeline] catchError 00:00:49.857 [Pipeline] { 00:00:49.870 [Pipeline] sh 00:00:50.166 + jbp/jenkins/jjb-config/jobs/scripts/check_artifacts_size.sh 00:00:50.166 Artifacts sizes are good 00:00:50.175 [Pipeline] } 00:00:50.189 [Pipeline] // catchError 00:00:50.196 [Pipeline] sh 00:00:50.491 + jbp/jenkins/jjb-config/jobs/scripts/compress_artifacts.sh 00:00:50.505 [Pipeline] archiveArtifacts 00:00:50.513 Archiving artifacts 00:00:50.840 [Pipeline] } 00:00:50.856 [Pipeline] // stage 00:00:50.861 [Pipeline] } 00:00:50.874 [Pipeline] // wrap 00:00:50.880 [Pipeline] } 00:00:50.895 [Pipeline] // node 00:00:50.900 [Pipeline] } 00:00:50.910 [Pipeline] // timeout 00:00:50.915 [Pipeline] } 00:00:50.925 [Pipeline] // retry 00:00:50.929 [Pipeline] End of Pipeline 00:00:50.993 Finished: FAILURE