Page MenuHomePhabricator

[Gitian] don't untar the source package
ClosedPublic

Authored by Fabien on Mar 24 2023, 08:50.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC2e05a02ccb08: [Gitian] don't untar the source package
Summary

Because we don't build from the source package, there is no reason to untar the archive for every host. Instead we use a different build directory for each host.

Test Plan

Run the gitian builds.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
gitian_no_untar
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22643
Build 44906: Build Diff
Build 44905: arc lint + arc unit

Event Timeline

Fabien requested review of this revision.Mar 24 2023, 08:50

@bot gitian-linux gitian-osx gitian-win

Tail of the build log:

[09:20:46]E:	 [Step 1/1] Build gitian-osx failed with exit code 1
[09:20:41]i:	 [Step 1/1] ##teamcity[buildProblem timestamp='2023-03-24T09:20:41.095' description='Build gitian-osx failed with exit code 1']
[09:20:41] :	 [Step 1/1]  * [new tag]             phabricator/diff/8992  -> phabricator/diff/8992
[09:20:41] :	 [Step 1/1]  * [new tag]             phabricator/diff/8993  -> phabricator/diff/8993
[09:20:41] :	 [Step 1/1]  * [new branch]          master                 -> master
[09:20:41] :	 [Step 1/1] --- Building for bullseye amd64 ---
[09:20:41] :	 [Step 1/1] Stopping target if it is up
[09:20:41] :	 [Step 1/1] Error response from daemon: No such container: gitian-target
[09:20:41] :	 [Step 1/1] Error: No such container: gitian-target
[09:20:41] :	 [Step 1/1] Making a new image copy
[09:20:41] :	 [Step 1/1] Starting target
[09:20:41] :	 [Step 1/1] Checking if target is up.
[09:20:41] :	 [Step 1/1] Preparing build environment
[09:20:41] :	 [Step 1/1] Updating apt-get repository (log in var/install.log)
[09:20:41] :	 [Step 1/1] Installing additional packages (log in var/install.log)
[09:20:41] :	 [Step 1/1] Upgrading system, may take a while (log in var/install.log)
[09:20:41] :	 [Step 1/1] Creating package manifest
[09:20:41] :	 [Step 1/1] Creating build script (var/build-script)
[09:20:41] :	 [Step 1/1] Running build script (log in var/build.log)
[09:20:41] :	 [Step 1/1] ./bin/gbuild:23:in `system!': failed to run on-target setarch x86_64 bash -x < var/build-script > var/build.log 2>&1 (RuntimeError)
[09:20:41] :	 [Step 1/1] 	from ./bin/gbuild:185:in `build_one_configuration'
[09:20:41] :	 [Step 1/1] 	from ./bin/gbuild:339:in `block (2 levels) in <main>'
[09:20:41] :	 [Step 1/1] 	from ./bin/gbuild:334:in `each'
[09:20:41] :	 [Step 1/1] 	from ./bin/gbuild:334:in `block in <main>'
[09:20:41] :	 [Step 1/1] 	from ./bin/gbuild:332:in `each'
[09:20:41] :	 [Step 1/1] 	from ./bin/gbuild:332:in `<main>'
[09:20:41] :	 [Step 1/1] Build gitian-osx failed with exit code 1
[09:20:41]W:	 [Step 1/1] + RESULT=1
[09:20:41]W:	 [Step 1/1] + pushd /home/teamcity/infra
[09:20:41]W:	 [Step 1/1] + docker-compose stop apt-cache-proxy
[09:20:41] :	 [Step 1/1] ~/infra ~/buildAgent/work/jailed-build/bitcoin-abc ~/buildAgent/work/jailed-build
[09:20:41]W:	 [Step 1/1] Stopping abc-apt-cache-proxy ... 
[09:20:52] :	 [Step 1/1] ~/buildAgent/work/jailed-build/bitcoin-abc ~/buildAgent/work/jailed-build
[09:20:52]W:	 [Step 1/1]  [1A [2K
[09:20:52]W:	 [Step 1/1] Stopping abc-apt-cache-proxy ...  [32mdone [0m
[09:20:52]W:	 [Step 1/1]  [1B+ popd
[09:20:52]W:	 [Step 1/1] + exit 1
[09:20:52]W:	 [Step 1/1] Process exited with code 1
[09:20:52]E:	 [Step 1/1] Process exited with code 1 (Step: Command Line)
[09:20:52] :	 [Step 1/1] Waiting for 1 service processes to complete
[09:20:52]E:	 [Step 1/1] Ant JUnit report watcher
[09:20:52]E:		 [Ant JUnit report watcher] No reports found for paths:
[09:20:52]E:		 [Ant JUnit report watcher] /home/teamcity/buildAgent/work/jailed-build/results/artifacts/junit/*.xml
[09:20:52]E:	 [Step 1/1] Step Command Line failed
[09:20:53]E: Ant JUnit report watcher
[09:20:53]E:	 [Ant JUnit report watcher] No reports found for paths:
[09:20:53]E:	 [Ant JUnit report watcher] +:results/test_bitcoin.xml
[09:20:53]E:	 [Ant JUnit report watcher] +:results/**/junit_results*.xml
[09:20:53] : Publishing internal artifacts (4s)
[09:20:57] :	 [Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher]
[09:20:57] :	 [Publishing internal artifacts] Publishing 1 file using [WebPublisher]
[09:20:53]W: Publishing artifacts (6s)
[09:20:53] :	 [Publishing artifacts] Collecting files to publish: [+:results/**/junit_results*.xml, +:bitcoin-abc/abc-ci-builds/gitian-osx/gitian-results => gitian-osx.tar.gz]
[09:20:53]W:	 [Publishing artifacts] Artifacts path 'results/**/junit_results*.xml' not found
[09:20:53] :	 [Publishing artifacts] Creating archive gitian-osx.tar.gz
[09:20:53] :		 [Creating archive gitian-osx.tar.gz] Creating /home/teamcity/buildAgent/temp/buildTmp/TarPreprocessor3034736238630037452/gitian-osx.tar.gz
[09:20:53] :		 [Creating archive gitian-osx.tar.gz] Archive was created, file size 210.33 KB (215384 bytes)
[09:20:58] :	 [Publishing artifacts] Publishing 1 file using [ArtifactsCachePublisher]: bitcoin-abc/abc-ci-builds/gitian-osx/gitian-results => gitian-osx.tar.gz
[09:20:59] :	 [Publishing artifacts] Publishing 1 file using [WebPublisher]: bitcoin-abc/abc-ci-builds/gitian-osx/gitian-results => gitian-osx.tar.gz
[09:21:00] : Build finished
This revision is now accepted and ready to land.Mar 24 2023, 09:21

Copy the files from the actual tree instead of the untared source package on osx

This revision was automatically updated to reflect the committed changes.