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
Lint
Lint Not Applicable
Unit
Tests Not Applicable