Page MenuHomePhabricator

Extract smoke tests from automated commits
ClosedPublic

Authored by jasonbcox on Apr 13 2020, 23:18.

Details

Summary

Working on a land bot script that will call this, and there's no reason other
scripts shouldn't be able to call it as well.

Test Plan

Sanity check that we didn't break anything:

COMMIT_TYPE=update-manpages ./automated-commits.sh -p <commit-hash-of-this-patch>

Diff Detail

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

Event Timeline

Snippet of first build failure:

[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:   9% (2/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  13% (3/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  18% (4/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  22% (5/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  27% (6/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  31% (7/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  36% (8/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  40% (9/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  45% (10/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  50% (11/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  54% (12/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  59% (13/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  63% (14/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  68% (15/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  72% (16/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  77% (17/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  81% (18/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  86% (19/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  90% (20/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects:  95% (21/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects: 100% (22/22)        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Compressing objects: 100% (22/22), done.        
[23:18:35]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] remote: Total 22 (delta 17), reused 0 (delta 0)        
[23:18:36]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786] From ssh://reviews.bitcoinabc.org:2221/source/bitcoin-abc-staging
[23:18:36]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786]  * [new tag]             phabricator/diff/18786 -> phabricator/diff/18786
[23:18:36]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786]  * [new tag]             phabricator/base/18781 -> phabricator/base/18781
[23:18:36]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786]  * [new tag]             phabricator/base/18782 -> phabricator/base/18782
[23:18:36]i:				 [/usr/bin/git -c credential.helper= fetch --progress origin +refs/tags/phabricator/diff/18786:refs/tags/phabricator/diff/18786]  * [new tag]             phabricator/base/18786 -> phabricator/base/18786
[23:18:36] :			 [Update git mirror (/home/teamcity/buildAgent/system/git/git-48AA3180.git)] /usr/bin/git log -n1 --pretty=format:%H%x20%s 7c68742bafde47dda78b5db186676ff415c0a1c0 --
[23:18:36] :			 [Update git mirror (/home/teamcity/buildAgent/system/git/git-48AA3180.git)] /usr/bin/git pack-refs --all
[23:18:36] :		 [VCS Root: Bitcoin ABC Staging] Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] The .git directory is missing in '/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc'. Running 'git init'...
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git init
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git config lfs.storage /home/teamcity/buildAgent/system/git/git-48AA3180.git/lfs
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git config core.sparseCheckout true
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git config http.sslCAInfo
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git show-ref
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git show-ref refs/tags/phabricator/diff/18786
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git log -n1 --pretty=format:%H%x20%s 7c68742bafde47dda78b5db186676ff415c0a1c0 --
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git -c credential.helper= checkout -q -f phabricator/diff/18786
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git show-ref refs/tags/phabricator/diff/18786
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] Cleaning Bitcoin ABC Staging in /home/teamcity/buildAgent/work/jailed-build/bitcoin-abc the file set ALL_UNTRACKED
[23:18:36] :			 [Update checkout directory (/home/teamcity/buildAgent/work/jailed-build/bitcoin-abc)] /usr/bin/git clean -f -d -x
[23:18:36] : Build preparation done
[23:18:36]E: Step 1/2: Command Line (4m:50s)
[23:18:36] :	 [Step 1/2] Ant JUnit report watcher
[23:18:36] :		 [Ant JUnit report watcher] Watching paths:
[23:18:36] :		 [Ant JUnit report watcher] +:/tmp/abc-build-results/build/test_bitcoin.xml
[23:18:36] :		 [Ant JUnit report watcher] +:/tmp/abc-build-results/build/**/junit_results*.xml
[23:18:36] :	 [Step 1/2] Starting: /home/teamcity/buildAgent/temp/agentTmp/custom_script9213420042743922697
[23:18:36] :	 [Step 1/2] in directory: /home/teamcity/buildAgent/work/jailed-build
[23:18:36] :	 [Step 1/2] ~/buildAgent/work/jailed-build/bitcoin-abc ~/buildAgent/work/jailed-build
[23:18:36] :	 [Step 1/2] ~/buildAgent/work/jailed-build
[23:18:36] :	 [Step 1/2] Pulling latest cache...
[23:18:37] :	 [Step 1/2] Building base image for: 7c68742ba...
[23:18:37] :	 [Step 1/2] ~/buildAgent/work/jailed-build/bitcoin-abc ~/buildAgent/work/jailed-build
[23:18:37] :	 [Step 1/2] ~/buildAgent/work/jailed-build
[23:18:37] :	 [Step 1/2] Tag name: abc-base-image-7c68742ba
[23:23:27]W:	 [Step 1/2] Process exited with code 1
[23:23:27]E:	 [Step 1/2] Process exited with code 1 (Step: Command Line)
deadalnix added a subscriber: deadalnix.

Accepting anyways because the test suite was already fubared, but this will land even in the case bitcoind doesn't build.

contrib/devtools/smoke-tests.sh
36 ↗(On Diff #18786)

Not all? It may not even build at all as this. I suggest "all check-all"

This revision is now accepted and ready to land.Apr 14 2020, 04:16
contrib/devtools/smoke-tests.sh
36 ↗(On Diff #18786)

build_cmake.sh runs ninja (aka ninja all)