Skip to content

Commit 777675f

Browse files
committed
Merge commit 'f18e7819e9a21eeb539b6d3045876ab50e0ecef2'
2 parents c9bb5fd + f19e781 commit 777675f

File tree

486 files changed

+6380
-4154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+6380
-4154
lines changed

depend/bitcoin/.github/ci-test-each-commit-exec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def main():
2727
"cmake",
2828
"-B",
2929
"build",
30+
"-Werror=dev",
3031
"-DCMAKE_C_COMPILER=clang",
3132
"-DCMAKE_CXX_COMPILER=clang++",
3233
"-DWERROR=ON",

depend/bitcoin/.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223

224224
- name: Generate build system
225225
run: |
226-
cmake -B build --preset vs2022 -DCMAKE_TOOLCHAIN_FILE="${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ${{ matrix.generate-options }}
226+
cmake -B build -Werror=dev --preset vs2022 -DCMAKE_TOOLCHAIN_FILE="${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ${{ matrix.generate-options }}
227227
228228
- name: Save vcpkg binary cache
229229
uses: actions/cache/save@v4
@@ -260,6 +260,7 @@ jobs:
260260
env:
261261
BITCOIND: '${{ github.workspace }}\build\bin\Release\bitcoind.exe'
262262
BITCOINCLI: '${{ github.workspace }}\build\bin\Release\bitcoin-cli.exe'
263+
BITCOINTX: '${{ github.workspace }}\build\bin\Release\bitcoin-tx.exe'
263264
BITCOINUTIL: '${{ github.workspace }}\build\bin\Release\bitcoin-util.exe'
264265
BITCOINWALLET: '${{ github.workspace }}\build\bin\Release\bitcoin-wallet.exe'
265266
BITCOINCHAINSTATE: '${{ github.workspace }}\build\bin\Release\bitcoin-chainstate.exe'
@@ -390,16 +391,19 @@ jobs:
390391
(Get-Content "test/config.ini") -replace '(?<=^SRCDIR=).*', '${{ github.workspace }}' -replace '(?<=^BUILDDIR=).*', '${{ github.workspace }}' -replace '(?<=^RPCAUTH=).*', '${{ github.workspace }}/share/rpcauth/rpcauth.py' | Set-Content "test/config.ini"
391392
Get-Content "test/config.ini"
392393
393-
- name: Run util tests
394-
run: py -3 test/util/test_runner.py
394+
- name: Set previous release directory
395+
run: |
396+
echo "PREVIOUS_RELEASES_DIR=${{ runner.temp }}/previous_releases" >> "$GITHUB_ENV"
395397
396-
- name: Run rpcauth test
397-
run: py -3 test/util/rpcauth-test.py
398+
- name: Get previous releases
399+
working-directory: test
400+
run: ./get_previous_releases.py --target-dir $PREVIOUS_RELEASES_DIR
398401

399402
- name: Run functional tests
400403
env:
401404
# TODO: Fix the excluded test and re-enable it.
402-
EXCLUDE: '--exclude wallet_multiwallet.py'
405+
# feature_unsupported_utxo_db.py fails on windows because of emojis in the test data directory
406+
EXCLUDE: '--exclude wallet_multiwallet.py,feature_unsupported_utxo_db.py'
403407
TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
404408
run: py -3 test/functional/test_runner.py --jobs $NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix="$RUNNER_TEMP" --combinedlogslen=99999999 --timeout-factor=$TEST_RUNNER_TIMEOUT_FACTOR $EXCLUDE $TEST_RUNNER_EXTRA
405409

depend/bitcoin/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -592,11 +592,9 @@ set(Python3_FIND_FRAMEWORK LAST CACHE STRING "")
592592
set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "")
593593
mark_as_advanced(Python3_FIND_FRAMEWORK Python3_FIND_UNVERSIONED_NAMES)
594594
find_package(Python3 3.10 COMPONENTS Interpreter)
595-
if(Python3_EXECUTABLE)
596-
set(PYTHON_COMMAND ${Python3_EXECUTABLE})
597-
else()
595+
if(NOT TARGET Python3::Interpreter)
598596
list(APPEND configure_warnings
599-
"Minimum required Python not found. Utils and rpcauth tests are disabled."
597+
"Minimum required Python not found."
600598
)
601599
endif()
602600

@@ -640,8 +638,6 @@ add_subdirectory(doc)
640638

641639
add_subdirectory(src)
642640

643-
include(cmake/tests.cmake)
644-
645641
include(Maintenance)
646642
setup_split_debug_script()
647643
add_maintenance_targets()

depend/bitcoin/CMakePresets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"name": "dev-mode",
6363
"displayName": "Developer mode, with all features/dependencies enabled",
6464
"binaryDir": "${sourceDir}/build_dev_mode",
65+
"errors": {"dev": true},
6566
"cacheVariables": {
6667
"BUILD_BENCH": "ON",
6768
"BUILD_CLI": "ON",

depend/bitcoin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Translations
7070
------------
7171

7272
Changes to translations as well as new translations can be submitted to
73-
[Bitcoin Core's Transifex page](https://www.transifex.com/bitcoin/bitcoin/).
73+
[Bitcoin Core's Transifex page](https://explore.transifex.com/bitcoin/bitcoin/).
7474

7575
Translations are periodically pulled from Transifex and merged into the git repository. See the
7676
[translation process](doc/translation_process.md) for details on how this works.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
export LC_ALL=C
88

9+
set -o errexit -o pipefail -o xtrace
10+
911
export CI_RETRY_EXE="/ci_retry --"
1012

1113
pushd "/"
@@ -38,7 +40,7 @@ python3 --version
3840

3941
${CI_RETRY_EXE} pip3 install \
4042
codespell==2.4.1 \
41-
lief==0.13.2 \
43+
lief==0.16.6 \
4244
mypy==1.4.1 \
4345
pyzmq==25.1.0 \
4446
ruff==0.5.5 \

depend/bitcoin/ci/lint_imagefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV LC_ALL=C.UTF-8
1212
COPY ./ci/retry/retry /ci_retry
1313
COPY ./.python-version /.python-version
1414
COPY ./ci/lint/container-entrypoint.sh /entrypoint.sh
15-
COPY ./ci/lint/04_install.sh /install.sh
15+
COPY ./ci/lint/01_install.sh /install.sh
1616

1717
RUN /install.sh && \
1818
echo 'alias lint="./ci/lint/06_script.sh"' >> ~/.bashrc && \

depend/bitcoin/ci/lint_run_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ cp "./ci/retry/retry" "/ci_retry"
1313
cp "./.python-version" "/.python-version"
1414
mkdir --parents "/test/lint"
1515
cp --recursive "./test/lint/test_runner" "/test/lint/"
16-
set -o errexit; source ./ci/lint/04_install.sh
16+
set -o errexit; source ./ci/lint/01_install.sh
1717
set -o errexit
1818
./ci/lint/06_script.sh

depend/bitcoin/ci/test/00_setup_env_i686_multiprocess.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export CI_IMAGE_PLATFORM="linux/amd64"
1313
export PACKAGES="llvm clang g++-multilib"
1414
export DEP_OPTS="DEBUG=1 MULTIPROCESS=1"
1515
export GOAL="install"
16-
export TEST_RUNNER_EXTRA="--v2transport"
16+
export TEST_RUNNER_EXTRA="--v2transport --usecli"
1717
export BITCOIN_CONFIG="\
1818
-DCMAKE_BUILD_TYPE=Debug \
1919
-DCMAKE_C_COMPILER='clang;-m32' \

depend/bitcoin/ci/test/01_base_install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
export LC_ALL=C.UTF-8
88

9-
set -ex
9+
set -o errexit -o pipefail -o xtrace
1010

11-
CFG_DONE="ci.base-install-done" # Use a global git setting to remember whether this script ran to avoid running it twice
11+
CFG_DONE="${BASE_ROOT_DIR}/ci.base-install-done" # Use a global setting to remember whether this script ran to avoid running it twice
1212

13-
if [ "$(git config --global ${CFG_DONE})" == "true" ]; then
13+
if [ "$( cat "${CFG_DONE}" || true )" == "done" ]; then
1414
echo "Skip base install"
1515
exit 0
1616
fi
@@ -105,4 +105,4 @@ if [ -n "$XCODE_VERSION" ] && [ ! -d "${DEPENDS_DIR}/SDKs/${OSX_SDK_BASENAME}" ]
105105
tar -C "${DEPENDS_DIR}/SDKs" -xf "$OSX_SDK_PATH"
106106
fi
107107

108-
git config --global ${CFG_DONE} "true"
108+
echo -n "done" > "${CFG_DONE}"

0 commit comments

Comments
 (0)