|
3 | 3 | set -eo pipefail
|
4 | 4 |
|
5 | 5 | BASE=merged-master
|
| 6 | +BITCOIN_UPSTREAM=bitcoin/master |
| 7 | +ELEMENTS_UPSTREAM=upstream/master |
| 8 | + |
| 9 | +# BEWARE: On some systems /tmp/ gets periodically cleaned, which may cause |
| 10 | +# random files from this directory to disappear based on timestamp, and |
| 11 | +# make git very confused |
6 | 12 | WORKTREE="/tmp/elements-merge-worktree"
|
7 | 13 |
|
| 14 | +# These should be tuned to your machine; below values are for an 8-core |
| 15 | +# 16-thread macbook pro |
| 16 | +PARALLEL_BUILD=16 # passed to make -j |
| 17 | +PARALLEL_TEST=8 # passed to test_runner.py --jobs |
| 18 | +PARALLEL_FUZZ=5 # passed to test_runner.py -j when fuzzing |
| 19 | + |
8 | 20 | if [[ "$1" == "continue" ]]; then
|
9 | 21 | BASE="$BASE^1"
|
10 | 22 | ECHO_CONTINUE=1
|
@@ -37,8 +49,8 @@ if [[ "$1" != "list-only" ]]; then
|
37 | 49 | fi
|
38 | 50 |
|
39 | 51 | ## Get full list of merges
|
40 |
| -ELT_COMMITS=$(git -C "$WORKTREE" log master --not $BASE --merges --first-parent --pretty='format:%ct %cI %h Elements %s') |
41 |
| -BTC_COMMITS=$(git -C "$WORKTREE" log bitcoin/master --not $BASE --merges --first-parent --pretty='format:%ct %cI %h Bitcoin %s') |
| 52 | +ELT_COMMITS=$(git -C "$WORKTREE" log "$ELEMENTS_UPSTREAM" --not $BASE --merges --first-parent --pretty='format:%ct %cI %h Elements %s') |
| 53 | +BTC_COMMITS=$(git -C "$WORKTREE" log "$BITCOIN_UPSTREAM" --not $BASE --merges --first-parent --pretty='format:%ct %cI %h Bitcoin %s') |
42 | 54 |
|
43 | 55 | #ELT_COMMITS=
|
44 | 56 | #BTC_COMMITS=$(git -C "$WORKTREE" log v0.21.0 --not $BASE --merges --first-parent --pretty='format:%ct %cI %h Bitcoin %s')
|
|
89 | 101 | # The following is an expansion of `make check` that skips the libsecp
|
90 | 102 | # tests and also the benchmarks (though it does build them!)
|
91 | 103 | echo "Building"
|
92 |
| - chronic make -j80 -k |
| 104 | + chronic make -j"$PARALLEL_BUILD" -k |
93 | 105 | # chronic make -j1 check
|
94 | 106 | echo "Linting"
|
95 | 107 | chronic ./ci/lint/06_script.sh
|
|
101 | 113 | chronic ./test/util/rpcauth-test.py
|
102 | 114 | chronic make -C src/univalue/ check
|
103 | 115 | echo "Functional testing"
|
104 |
| - chronic ./test/functional/test_runner.py --jobs=40 |
| 116 | + chronic ./test/functional/test_runner.py --jobs="$PARALLEL_TEST" |
105 | 117 | echo "Cleaning for fuzz"
|
106 | 118 | chronic make distclean || true
|
107 | 119 | chronic git -C "$WORKTREE" clean -xf
|
108 | 120 | echo "Building for fuzz"
|
109 | 121 | chronic ./autogen.sh
|
110 | 122 | # TODO turn on `,integer` after this rebase
|
111 | 123 | chronic ./configure --with-incompatible-bdb --enable-fuzz --with-sanitizers=address,fuzzer,undefined CC=clang CXX=clang++
|
112 |
| - chronic make -j80 -k |
| 124 | + chronic make -j"$PARALLEL_BUILD" -k |
113 | 125 | echo "Fuzzing"
|
114 |
| - chronic ./test/fuzz/test_runner.py -j24 ~/code/bitcoin/qa-assets/fuzz_seed_corpus/ |
| 126 | + chronic ./test/fuzz/test_runner.py -j"$PARALLEL_FUZZ" ~/code/bitcoin/qa-assets/fuzz_seed_corpus/ |
115 | 127 | fi
|
116 | 128 |
|
117 | 129 | if [[ "$1" == "step" ]]; then
|
|
0 commit comments