Skip to content

Commit 95833c0

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#23938: ci: Clone entire bitcoin-core/qa-assets repo only when run fuzzing
0b7c55f ci: Clone entire bitcoin-core/qa-assets repo only when run fuzzing (Hennadii Stepanov) Pull request description: This PR speeds up CI tasks that run unit tests but do not run fuzzing. On my machine: ``` $ time git clone --depth=1 https://github.com/bitcoin-core/qa-assets Cloning into 'qa-assets'... remote: Enumerating objects: 289750, done. remote: Counting objects: 100% (289750/289750), done. remote: Compressing objects: 100% (207687/207687), done. remote: Total 289750 (delta 16863), reused 275449 (delta 12092), pack-reused 0 Receiving objects: 100% (289750/289750), 1.39 GiB | 4.79 MiB/s, done. Resolving deltas: 100% (16863/16863), done. Updating files: 100% (294515/294515), done. real7m43,417s user2m39,771s sys0m43,272s ``` ACKs for top commit: MarcoFalke: cr ACK 0b7c55f Tree-SHA512: 8f8dd63e361c3d9c64a2b31f207f59beea7d2e4142363f7762ec724a61152323fda0c6b98a36386e15f2ca4ef3f7412da763baef65e862fc7f48cdeda8c40e09
2 parents e941507 + 0b7c55f commit 95833c0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ci/test/04_install.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,17 @@ fi
8787
DOCKER_EXEC echo "Free disk space:"
8888
DOCKER_EXEC df -h
8989

90-
if [ "$RUN_FUZZ_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
91-
if [ ! -d "${DIR_QA_ASSETS}" ]; then
90+
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
91+
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
92+
if [ ! -d "$DIR_FUZZ_IN" ]; then
9293
DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets "${DIR_QA_ASSETS}"
9394
fi
94-
95-
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
95+
elif [ "$RUN_UNIT_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
9696
export DIR_UNIT_TEST_DATA=${DIR_QA_ASSETS}/unit_test_data/
97+
if [ ! -d "$DIR_UNIT_TEST_DATA" ]; then
98+
DOCKER_EXEC mkdir -p "$DIR_UNIT_TEST_DATA"
99+
DOCKER_EXEC curl --location --fail https://github.com/bitcoin-core/qa-assets/raw/main/unit_test_data/script_assets_test.json -o "${DIR_UNIT_TEST_DATA}/script_assets_test.json"
100+
fi
97101
fi
98102

99103
DOCKER_EXEC mkdir -p "${BASE_SCRATCH_DIR}/sanitizer-output/"

0 commit comments

Comments
 (0)