Task 62015035046

qa: Facilitate debugging bitcoind inside functional tests

2026-01-30 15:55:07 completed 2024/06/wait_for_debugger a2e01576c37a6f1aca0db42184f6632f9c91543e


Commands that took longer than 1 second (total 15m16s)
linedurationpercentagecommand
8210s0%dirname ./ci/test/00_setup_env.sh
8220s0%cd ./ci/test/../../
8230s0%pwd
8240s0%BASE_READ_ONLY_DIR=/home/admin/actions-runner/_work/bitcoin/bitcoin
8250s0%export BASE_READ_ONLY_DIR
8260s0%export BASE_ROOT_DIR=/home/admin/actions-runner/_work/_temp
8270s0%BASE_ROOT_DIR=/home/admin/actions-runner/_work/_temp
8280s0%export DEPENDS_DIR=/home/admin/actions-runner/_work/_temp/depends
8290s0%DEPENDS_DIR=/home/admin/actions-runner/_work/_temp/depends
8300s0%export BASE_SCRATCH_DIR=/home/admin/actions-runner/_work/_temp/ci/scratch
8310s0%BASE_SCRATCH_DIR=/home/admin/actions-runner/_work/_temp/ci/scratch
8320s0%echo 'Setting specific values in env'
8330s0%'[' -n ./ci/test/00_setup_env_native_previous_releases.sh ']'
8340s0%set -o errexit
8360s0%source ./ci/test/00_setup_env_native_previous_releases.sh
8370s0%export LC_ALL=C.UTF-8
8380s0%LC_ALL=C.UTF-8
8390s0%export CONTAINER_NAME=ci_native_previous_releases
8400s0%CONTAINER_NAME=ci_native_previous_releases
8410s0%export CI_IMAGE_NAME_TAG=mirror.gcr.io/ubuntu:22.04
8420s0%CI_IMAGE_NAME_TAG=mirror.gcr.io/ubuntu:22.04
8430s0%export 'PACKAGES=gcc-12 g++-12 python3-zmq'
8440s0%PACKAGES='gcc-12 g++-12 python3-zmq'
8450s0%export 'DEP_OPTS=CC=gcc-12 CXX=g++-12'
8460s0%DEP_OPTS='CC=gcc-12 CXX=g++-12'
8470s0%export 'TEST_RUNNER_EXTRA=--previous-releases --coverage --extended --exclude feature_dbcrash'
8480s0%TEST_RUNNER_EXTRA='--previous-releases --coverage --extended --exclude feature_dbcrash'
8490s0%export GOAL=install
8500s0%GOAL=install
8510s0%export CI_LIMIT_STACK_SIZE=1
8520s0%CI_LIMIT_STACK_SIZE=1
8530s0%export DOWNLOAD_PREVIOUS_RELEASES=true
8540s0%DOWNLOAD_PREVIOUS_RELEASES=true
8550s0%export 'BITCOIN_CONFIG= --preset=dev-mode -DREDUCE_EXPORTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='\''-funsigned-char'\'' -DCMAKE_C_FLAGS_DEBUG='\''-g2 -O2'\'' -DCMAKE_CXX_FLAGS='\''-funsigned-char'\'' -DCMAKE_CXX_FLAGS_DEBUG='\''-g2 -O2'\'' -DAPPEND_CPPFLAGS='\''-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE'\'' '
8560s0%BITCOIN_CONFIG=' --preset=dev-mode -DREDUCE_EXPORTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='\''-funsigned-char'\'' -DCMAKE_C_FLAGS_DEBUG='\''-g2 -O2'\'' -DCMAKE_CXX_FLAGS='\''-funsigned-char'\'' -DCMAKE_CXX_FLAGS_DEBUG='\''-g2 -O2'\'' -DAPPEND_CPPFLAGS='\''-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE'\'' '
8570s0%echo 'Fallback to default values in env (if not yet set)'
8590s0%command -v nproc
8600s0%nproc
8610s0%export MAKEJOBS=-j8
8620s0%MAKEJOBS=-j8
8630s0%export RUN_UNIT_TESTS=true
8640s0%RUN_UNIT_TESTS=true
8650s0%export RUN_FUNCTIONAL_TESTS=true
8660s0%RUN_FUNCTIONAL_TESTS=true
8670s0%export RUN_TIDY=false
8680s0%RUN_TIDY=false
8690s0%export TEST_RUNNER_TIMEOUT_FACTOR=40
8700s0%TEST_RUNNER_TIMEOUT_FACTOR=40
8710s0%export RUN_FUZZ_TESTS=false
8720s0%RUN_FUZZ_TESTS=false
8730s0%export BOOST_TEST_RANDOM=1
8740s0%BOOST_TEST_RANDOM=1
8750s0%export DEBIAN_FRONTEND=noninteractive
8760s0%DEBIAN_FRONTEND=noninteractive
8770s0%export CCACHE_MAXSIZE=500M
8780s0%CCACHE_MAXSIZE=500M
8790s0%export CCACHE_TEMPDIR=/tmp/.ccache-temp
8800s0%CCACHE_TEMPDIR=/tmp/.ccache-temp
8810s0%export CCACHE_COMPRESS=1
8820s0%CCACHE_COMPRESS=1
8830s0%export CCACHE_DIR=/home/admin/actions-runner/_work/_temp/ccache_dir
8840s0%CCACHE_DIR=/home/admin/actions-runner/_work/_temp/ccache_dir
8850s0%export BASE_OUTDIR=/home/admin/actions-runner/_work/_temp/ci/scratch/out
8860s0%BASE_OUTDIR=/home/admin/actions-runner/_work/_temp/ci/scratch/out
8870s0%export PREVIOUS_RELEASES_DIR=/home/admin/actions-runner/_work/_temp/previous_releases
8880s0%PREVIOUS_RELEASES_DIR=/home/admin/actions-runner/_work/_temp/previous_releases
8890s0%export 'CI_BASE_PACKAGES=build-essential pkgconf curl ca-certificates ccache python3-dev rsync git procps bison e2fsprogs cmake ninja-build'
8900s0%CI_BASE_PACKAGES='build-essential pkgconf curl ca-certificates ccache python3-dev rsync git procps bison e2fsprogs cmake ninja-build'
8910s0%export GOAL=install
8920s0%GOAL=install
8930s0%export DIR_QA_ASSETS=/home/admin/actions-runner/_work/_temp/ci/scratch/qa-assets
8940s0%DIR_QA_ASSETS=/home/admin/actions-runner/_work/_temp/ci/scratch/qa-assets
8950s0%export CI_RETRY_EXE=retry
8960s0%CI_RETRY_EXE=retry
8970s0%export CI_IMAGE_PLATFORM=linux
8980s0%CI_IMAGE_PLATFORM=linux
8990s0%set -o errexit
9000s0%./ci/test/02_run_container.py
9020s0%bash -c 'grep export ./ci/test/00_setup_env*.sh'
9030s0%cat /tmp/env-admin-ci_native_previous_releases
93913s1%docker buildx build --file=/home/admin/actions-runner/_work/bitcoin/bitcoin/ci/test_imagefile --build-arg=CI_IMAGE_NAME_TAG=mirror.gcr.io/ubuntu:22.04 --build-arg=FILE_ENV=./ci/test/00_setup_env_native_previous_releases.sh --build-arg=BASE_ROOT_DIR=/home/admin/actions-runner/_work/_temp --platform=linux --label=bitcoin-ci-test --tag=ci_native_previous_releases --cache-from type=gha,url=http://127.0.0.1:12321/,url_v2=http://127.0.0.1:12321/,scope=ci_native_previous_releases --load /home/admin/actions-runner/_work/bitcoin/bitcoin
10030s0%docker volume create ci_native_previous_releases_ccache
10050s0%docker volume create ci_native_previous_releases_depends
10070s0%docker volume create ci_native_previous_releases_depends_sources
10090s0%docker volume create ci_native_previous_releases_previous_releases
10110s0%docker network create --ipv6 --subnet 1111:1111::/112 ci-ip6net
10140s0%docker image prune --force --filter label=bitcoin-ci-test
10160s0%docker run --rm --interactive --detach --tty --cap-add=LINUX_IMMUTABLE --mount=type=bind,src=/home/admin/actions-runner/_work/bitcoin/bitcoin,dst=/home/admin/actions-runner/_work/bitcoin/bitcoin,readonly --mount=type=bind,src=/home/admin/actions-runner/_work/_temp/ccache_dir,dst=/home/admin/actions-runner/_work/_temp/ccache_dir --mount=type=bind,src=/home/admin/actions-runner/_work/_temp/depends/built,dst=/home/admin/actions-runner/_work/_temp/depends/built --mount=type=bind,src=/home/admin/actions-runner/_work/_temp/depends/sources,dst=/home/admin/actions-runner/_work/_temp/depends/sources --mount=type=bind,src=/home/admin/actions-runner/_work/_temp/previous_releases,dst=/home/admin/actions-runner/_work/_temp/previous_releases --mount=type=bind,src=/home/admin/actions-runner/_work/_temp/build,dst=/home/admin/actions-runner/_work/_temp/build --env-file=/tmp/env-admin-ci_native_previous_releases --name=ci_native_previous_releases --network=ci-ip6net --platform=linux ci_native_previous_releases
10170s0%docker exec f9ad9cf689a6dec58b8acfbabfd82abf10fbf06e62c8e4168cd78cf975b2c209 rsync --recursive --perms --stats --human-readable /home/admin/actions-runner/_work/bitcoin/bitcoin/ /home/admin/actions-runner/_work/_temp
10350s0%docker exec f9ad9cf689a6dec58b8acfbabfd82abf10fbf06e62c8e4168cd78cf975b2c209 /home/admin/actions-runner/_work/_temp/ci/test/01_base_install.sh
10360s0%CFG_DONE=/home/admin/actions-runner/_work/_temp/ci.base-install-done
10370s0%cat /home/admin/actions-runner/_work/_temp/ci.base-install-done
10380s0%'[' done == done ']'
10400s0%echo 'Skip base install'
10410s0%exit 0
10420s0%docker exec f9ad9cf689a6dec58b8acfbabfd82abf10fbf06e62c8e4168cd78cf975b2c209 /home/admin/actions-runner/_work/_temp/ci/test/03_test_script.sh
10430s0%cd /home/admin/actions-runner/_work/_temp
10440s0%export 'PATH=/path_with space:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
10450s0%PATH='/path_with space:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
10460s0%export ASAN_OPTIONS=detect_leaks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1
10470s0%ASAN_OPTIONS=detect_leaks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1
10480s0%export LSAN_OPTIONS=suppressions=/home/admin/actions-runner/_work/_temp/test/sanitizer_suppressions/lsan
10490s0%LSAN_OPTIONS=suppressions=/home/admin/actions-runner/_work/_temp/test/sanitizer_suppressions/lsan
10500s0%export TSAN_OPTIONS=suppressions=/home/admin/actions-runner/_work/_temp/test/sanitizer_suppressions/tsan:halt_on_error=1:second_deadlock_stack=1
10510s0%TSAN_OPTIONS=suppressions=/home/admin/actions-runner/_work/_temp/test/sanitizer_suppressions/tsan:halt_on_error=1:second_deadlock_stack=1
10520s0%export UBSAN_OPTIONS=suppressions=/home/admin/actions-runner/_work/_temp/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1
10530s0%UBSAN_OPTIONS=suppressions=/home/admin/actions-runner/_work/_temp/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1
10540s0%nproc
10550s0%echo 'Number of available processing units: 8'
10560s0%'[' '' == macos ']'
10570s0%free -m -h
10620s0%uname --kernel-name --kernel-release
10630s0%echo 'System info: Linux 6.14.0-37-generic'
10650s0%lscpu
10680s0%echo 'Free disk space:'
10690s0%df -h
11120s0%[[ ci_native_previous_releases == \c\i\_\n\a\t\i\v\e\_\a\s\a\n ]]
11130s0%/home/admin/actions-runner/_work/_temp/depends/config.guess
11220s0%export HOST=x86_64-pc-linux-gnu
11230s0%HOST=x86_64-pc-linux-gnu
11240s0%echo '=== BEGIN env ==='
11250s0%env
11740s0%echo '=== END env ==='
11750s0%[[ '' != true ]]
11760s0%tee /dev/fd/63
11770s0%patch -p1
11780s0%'[' false = true ']'
11790s0%'[' true = true ']'
11800s0%export DIR_UNIT_TEST_DATA=/home/admin/actions-runner/_work/_temp/ci/scratch/qa-assets/unit_test_data/
11810s0%DIR_UNIT_TEST_DATA=/home/admin/actions-runner/_work/_temp/ci/scratch/qa-assets/unit_test_data/
11820s0%'[' '!' -d /home/admin/actions-runner/_work/_temp/ci/scratch/qa-assets/unit_test_data/ ']'
11850s0%b/src/leveldb/db/db_impl.cc
11950s0%1].Add(stats);
11960s0%mkdir -p /home/admin/actions-runner/_work/_temp/ci/scratch/qa-assets/unit_test_data/
11981s0%retry curl --location --fail https://github.com/bitcoin-core/qa-assets/raw/main/unit_test_data/script_assets_test.json -o /home/admin/actions-runner/_work/_temp/ci/scratch/qa-assets/unit_test_data//script_assets_test.json
12070s0%'[' '' == macos ']'
12080s0%echo
12090s0%'[' -z '' ']'
12100s0%[[ mirror.gcr.io/ubuntu:22.04 == *alpine* ]]
12110s0%SHELL_OPTS=CONFIG_SHELL=
12126s0%bash -c 'CONFIG_SHELL= make -j8 -C depends HOST=x86_64-pc-linux-gnu CC=gcc-12 CXX=g++-12 LOG=1'
12260s0%'[' true = true ']'
12270s0%test/get_previous_releases.py --target-dir /home/admin/actions-runner/_work/_temp/previous_releases
12370s0%BITCOIN_CONFIG_ALL='-DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON'
12380s0%'[' -z '' ']'
12390s0%BITCOIN_CONFIG_ALL='-DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DCMAKE_TOOLCHAIN_FILE=/home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/toolchain.cmake'
12400s0%'[' -z '' ']'
12410s0%BITCOIN_CONFIG_ALL='-DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DCMAKE_TOOLCHAIN_FILE=/home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/toolchain.cmake -DWERROR=ON'
12420s0%ccache --zero-stats
12440s0%PRINT_CCACHE_STATISTICS='ccache --version | head -n 1 && ccache --show-stats'
12450s0%BASE_BUILD_DIR=/home/admin/actions-runner/_work/_temp/build
12460s0%BITCOIN_CONFIG_ALL='-DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DCMAKE_TOOLCHAIN_FILE=/home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/toolchain.cmake -DWERROR=ON -DCMAKE_INSTALL_PREFIX=/home/admin/actions-runner/_work/_temp/ci/scratch/out -Werror=dev'
12470s0%[[ '' == true ]]
12480s0%[[ false == true ]]
12490s0%eval 'CMAKE_ARGS=(-DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DCMAKE_TOOLCHAIN_FILE=/home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/toolchain.cmake -DWERROR=ON -DCMAKE_INSTALL_PREFIX=/home/admin/actions-runner/_work/_temp/ci/scratch/out -Werror=dev --preset=dev-mode -DREDUCE_EXPORTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='\''-funsigned-char'\'' -DCMAKE_C_FLAGS_DEBUG='\''-g2 -O2'\'' -DCMAKE_CXX_FLAGS='\''-funsigned-char'\'' -DCMAKE_CXX_FLAGS_DEBUG='\''-g2 -O2'\'' -DAPPEND_CPPFLAGS='\''-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE'\'' )'
12500s0%CMAKE_ARGS=(-DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DCMAKE_TOOLCHAIN_FILE=/home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/toolchain.cmake -DWERROR=ON -DCMAKE_INSTALL_PREFIX=/home/admin/actions-runner/_work/_temp/ci/scratch/out -Werror=dev --preset=dev-mode -DREDUCE_EXPORTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='-funsigned-char' -DCMAKE_C_FLAGS_DEBUG='-g2 -O2' -DCMAKE_CXX_FLAGS='-funsigned-char' -DCMAKE_CXX_FLAGS_DEBUG='-g2 -O2' -DAPPEND_CPPFLAGS='-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE')
12510s0%cmake -S /home/admin/actions-runner/_work/_temp -B /home/admin/actions-runner/_work/_temp/build -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DCMAKE_TOOLCHAIN_FILE=/home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/toolchain.cmake -DWERROR=ON -DCMAKE_INSTALL_PREFIX=/home/admin/actions-runner/_work/_temp/ci/scratch/out -Werror=dev --preset=dev-mode -DREDUCE_EXPORTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-funsigned-char '-DCMAKE_C_FLAGS_DEBUG=-g2 -O2' -DCMAKE_CXX_FLAGS=-funsigned-char '-DCMAKE_CXX_FLAGS_DEBUG=-g2 -O2' -DAPPEND_CPPFLAGS=-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE
12860s0%include pthread.h
12878s0%include pthread.h - found
16740s0%compiler .......................... GNU 12.3.0, /bin/g++-12
16770s0%compiler flags .................... -funsigned-char -g2 -O2 -std=c++20 -fPIC -fno-extended-identifiers -fmacro-prefix-map=/home/admin/actions-runner/_work/_temp/src=. -fstack-reuse=none -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Werror -Wall -Wextra -Wformat -Wformat-security -Wvla -Wredundant-decls -Wdate-time -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wbidi-chars=any -Wundef -Wno-unused-parameter -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE
16910s0%[[ install != all ]]
16920s0%[[ install != codegen ]]
16930s0%GOAL='all install'
16947m4s46%cmake --build /home/admin/actions-runner/_work/_temp/build -j8 --target all install
28780s0%bash -c 'ccache --version | head -n 1 && ccache --show-stats'
28940s0%ccache --show-stats
28950s0%grep Hits:
28960s0%head -1
28970s0%sed 's/.*(\(.*\)%).*/\1/'
28980s0%hit_rate='7.46 '
29000s0%'[' 7 -lt 75 ']'
29010s0%echo '::notice title=low ccache hitrate::Ccache hit-rate in ci_native_previous_releases was 7.46 %'
29020s0%du -sh /home/admin/actions-runner/_work/_temp/depends/SDKs/ /home/admin/actions-runner/_work/_temp/depends/builders/ /home/admin/actions-runner/_work/_temp/depends/built/ /home/admin/actions-runner/_work/_temp/depends/hosts/ /home/admin/actions-runner/_work/_temp/depends/packages/ /home/admin/actions-runner/_work/_temp/depends/patches/ /home/admin/actions-runner/_work/_temp/depends/sdk-sources/ /home/admin/actions-runner/_work/_temp/depends/sources/ /home/admin/actions-runner/_work/_temp/depends/work/ /home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/
29130s0%du -sh /home/admin/actions-runner/_work/_temp/previous_releases
29150s0%'[' -n 1 ']'
29160s0%ulimit -s 512
29170s0%'[' -n '' ']'
29180s0%'[' '' = true ']'
29190s0%'[' true = true ']'
29200s0%DIR_UNIT_TEST_DATA=/home/admin/actions-runner/_work/_temp/ci/scratch/qa-assets/unit_test_data/
29210s0%LD_LIBRARY_PATH=/home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/lib
29220s0%CTEST_OUTPUT_ON_FAILURE=ON
292326s2%ctest --test-dir /home/admin/actions-runner/_work/_temp/build --stop-on-failure -j8 --timeout 2400
32380s0%'[' true = true ']'
32390s0%eval 'TEST_RUNNER_EXTRA=(--previous-releases --coverage --extended --exclude feature_dbcrash)'
32400s0%TEST_RUNNER_EXTRA=(--previous-releases --coverage --extended --exclude feature_dbcrash)
32410s0%LD_LIBRARY_PATH=/home/admin/actions-runner/_work/_temp/depends/x86_64-pc-linux-gnu/lib
32426m13s40%/home/admin/actions-runner/_work/_temp/build/test/functional/test_runner.py -j8 --tmpdirprefix /home/admin/actions-runner/_work/_temp/ci/scratch/test_runner/ --ansi --combinedlogslen=99999999 --timeout-factor=40 --previous-releases --coverage --extended --exclude feature_dbcrash --quiet --failfast
46330s0%'[' false = true ']'
46340s0%[[ '' == true ]]
46350s0%'[' false = true ']'
46377s0%docker container kill f9ad9cf689a6dec58b8acfbabfd82abf10fbf06e62c8e4168cd78cf975b2c209
Tags
  • previous releases
  • 2024/06/wait_for_debugger
  • COMPLETED