Page MenuHomePhabricator

[CI] Prevent artifacts from the same diretory to fail the build
ClosedPublic

Authored by Fabien on Sep 2 2020, 13:41.

Details

Summary

The shutil.copytree method will raise an exception if the destination
already exists, which can easily happen when 2 artifacts are copied to
the same directory. There is a flag to prevent this but unfortunately it
requires python 3.8, so just discard the exception for now.

Test Plan

Create a collision in the artifact destination directories (currently
there is none by chance) and run the build with the
build-configurations.py script. Check the artifacts are copied as
expected and the build succeeds.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
ci_shutil_copytree_exists_ok
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 12548
Build 25215: Build Diffbuild-clang-10 · build-clang-tidy · build-diff · build-without-wallet
Build 25214: arc lint + arc unit