Page MenuHomePhabricator

[CI] Add a build-coverage target
ClosedPublic

Authored by Fabien on Jun 16 2020, 14:57.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABC287efccb62cb: [CI] Add a build-coverage target
Summary

This new target build a coverage report of the extended tests.
Integration is still fairly limited for now and will be extended in
later diffs.

Test Plan

Run the build-coverage build plan.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Jun 16 2020, 14:57
Fabien planned changes to this revision.Jun 16 2020, 14:58

Pending build success

Snippet of first build failure:

[14:59:07] : Build preparation done
[14:59:07]E: Step 1/2: Command Line (23s)
[14:59:07] :	 [Step 1/2] Ant JUnit report watcher
[14:59:07] :		 [Ant JUnit report watcher] Watching paths:
[14:59:07] :		 [Ant JUnit report watcher] +:results/test_bitcoin.xml
[14:59:07] :		 [Ant JUnit report watcher] +:results/**/junit_results*.xml
[14:59:07] :	 [Step 1/2] Starting: /home/teamcity/buildAgent/temp/agentTmp/custom_script3896736977669024415
[14:59:07] :	 [Step 1/2] in directory: /home/teamcity/buildAgent/work/jailed-build
[14:59:07] :	 [Step 1/2] ~/buildAgent/work/jailed-build/bitcoin-abc ~/buildAgent/work/jailed-build
[14:59:07] :	 [Step 1/2] ~/buildAgent/work/jailed-build
[14:59:07] :	 [Step 1/2] Building base image for: ebe9c33ab...
[14:59:07] :	 [Step 1/2] ~/buildAgent/work/jailed-build/bitcoin-abc ~/buildAgent/work/jailed-build
[14:59:09] :	 [Step 1/2] ~/buildAgent/work/jailed-build
[14:59:09] :	 [Step 1/2] Tag name: abc-base-image-ebe9c33ab
[14:59:26]W:	 [Step 1/2] + : build-coverage
[14:59:26] :	 [Step 1/2] Running build configuration 'build-coverage'...
[14:59:26]W:	 [Step 1/2] + '[' -z build-coverage ']'
[14:59:26]W:	 [Step 1/2] + echo 'Running build configuration '\''build-coverage'\''...'
[14:59:26]W:	 [Step 1/2] ++ git rev-parse --show-toplevel
[14:59:26]W:	 [Step 1/2] + TOPLEVEL=/work
[14:59:26]W:	 [Step 1/2] + export TOPLEVEL
[14:59:26]W:	 [Step 1/2] + trap print_sanitizers_log ERR
[14:59:26]W:	 [Step 1/2] +++ dirname ./contrib/teamcity/build-configurations.sh
[14:59:26]W:	 [Step 1/2] ++ cd ./contrib/teamcity
[14:59:26]W:	 [Step 1/2] ++ pwd
[14:59:26]W:	 [Step 1/2] + CI_SCRIPTS_DIR=/work/contrib/teamcity
[14:59:26]W:	 [Step 1/2] + DEVTOOLS_DIR=/work/contrib/devtools
[14:59:26]W:	 [Step 1/2] + setup
[14:59:26]W:	 [Step 1/2] + : /work/build-coverage
[14:59:26]W:	 [Step 1/2] + mkdir -p /work/build-coverage
[14:59:26]W:	 [Step 1/2] ++ cd /work/build-coverage
[14:59:26]W:	 [Step 1/2] ++ pwd
[14:59:26]W:	 [Step 1/2] + BUILD_DIR=/work/build-coverage
[14:59:26]W:	 [Step 1/2] + export BUILD_DIR
[14:59:26]W:	 [Step 1/2] + cd /work/build-coverage
[14:59:26]W:	 [Step 1/2] ++ nproc
[14:59:26]W:	 [Step 1/2] + THREADS=12
[14:59:26]W:	 [Step 1/2] + export THREADS
[14:59:26]W:	 [Step 1/2] + CMAKE_PLATFORMS_DIR=/work/cmake/platforms
[14:59:26]W:	 [Step 1/2] + SAN_SUPP_DIR=/work/test/sanitizer_suppressions
[14:59:26]W:	 [Step 1/2] + SAN_LOG_DIR=/tmp/sanitizer_logs
[14:59:26]W:	 [Step 1/2] + mkdir -p /tmp/sanitizer_logs
[14:59:26]W:	 [Step 1/2] + rm -rf '/tmp/sanitizer_logs/*'
[14:59:26]W:	 [Step 1/2] + export ASAN_OPTIONS=log_path=/tmp/sanitizer_logs/asan.log
[14:59:26]W:	 [Step 1/2] + ASAN_OPTIONS=log_path=/tmp/sanitizer_logs/asan.log
[14:59:26]W:	 [Step 1/2] + export LSAN_OPTIONS=log_path=/tmp/sanitizer_logs/lsan.log
[14:59:26]W:	 [Step 1/2] + LSAN_OPTIONS=log_path=/tmp/sanitizer_logs/lsan.log
[14:59:26]W:	 [Step 1/2] + export TSAN_OPTIONS=log_path=/tmp/sanitizer_logs/tsan.log
[14:59:26]W:	 [Step 1/2] + TSAN_OPTIONS=log_path=/tmp/sanitizer_logs/tsan.log
[14:59:26]W:	 [Step 1/2] + export UBSAN_OPTIONS=log_path=/tmp/sanitizer_logs/ubsan.log
[14:59:26]W:	 [Step 1/2] + UBSAN_OPTIONS=log_path=/tmp/sanitizer_logs/ubsan.log
[14:59:26]W:	 [Step 1/2] + UNIT_TESTS_JUNIT_LOG_LEVEL=message
[14:59:26]W:	 [Step 1/2] + case "$ABC_BUILD_NAME" in
[14:59:26]W:	 [Step 1/2] + echo 'Error: Invalid build name '\''build-coverage'\'''
[14:59:26]W:	 [Step 1/2] + exit 2
[14:59:26] :	 [Step 1/2] Error: Invalid build name 'build-coverage'
[14:59:26]W:	 [Step 1/2] cp: cannot stat '/work/build': No such file or directory
[14:59:26]W:	 [Step 1/2] cp: cannot stat '/work/ibd/debug.log': No such file or directory
[14:59:29]W:	 [Step 1/2] Process exited with code 2
[14:59:29]E:	 [Step 1/2] Process exited with code 2 (Step: Command Line)
This revision is now accepted and ready to land.Jun 16 2020, 15:59
This revision was automatically updated to reflect the committed changes.