0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-05 14:06:27 -05:00
bitcoin-core/ci/test
Andrew Chow fc037c8c83
Merge bitcoin/bitcoin#27150: Deduplicate bitcoind and bitcoin-qt init code
802cc1ef53 Deduplicate bitcoind and bitcoin-qt init code (Ryan Ofsky)
d172b5c671 Add InitError(error, details) overload (Ryan Ofsky)
3db2874bd7 Extend bilingual_str support for tinyformat (Ryan Ofsky)
c361df90b9 scripted-diff: Remove double newlines after some init errors (Ryan Ofsky)

Pull request description:

  Add common InitConfig function to deduplicate bitcoind and bitcoin-qt code reading config files and creating the datadir.

  Noticed the duplicate code while reviewing #27073 and want to remove it because difference in bitcoin-qt and bitcoind behavior make it hard to evaluate changes like #27073

  There are a few minor changes in behavior:

  - In bitcoin-qt, when there is a problem reading the configuration file, the GUI error text has changed from "Error: Cannot parse configuration file:" to "Error reading configuration file:" to be consistent with bitcoind.
  - In bitcoind, when there is a problem reading the settings.json file, the error text has changed from "Failed loading settings file" to "Settings file could not be read" to be consistent with bitcoin-qt.
  - In bitcoind, when there is a problem writing the settings.json file, the error text has changed from "Failed saving settings file" to "Settings file could not be written" to be consistent with bitcoin-qt.
  - In bitcoin-qt, if there datadir is not accessible (e.g. no permission to read), there is an normal error dialog showing "Error: filesystem error: status: Permission denied [.../settings.json]", instead of an uncaught exception.

ACKs for top commit:
  Sjors:
    Light review ACK 802cc1ef53
  TheCharlatan:
    ACK 802cc1ef53
  achow101:
    ACK 802cc1ef53

Tree-SHA512: 9c78d277e9ed595fa8ce286b97d2806e1ec06ddbbe7bd3434bd9dd7b456faf8d989f71231e97311f36edb9caaec645a50c730bd7514b8e0fe6e6f7741b13d981
2023-03-07 13:05:01 -05:00
..
00_setup_env.sh Merge bitcoin/bitcoin#27209: ci: Remove unused EXPECTED_TESTS_DURATION_IN_SECONDS env var 2023-03-06 14:00:36 +00:00
00_setup_env_android.sh ci: Use the latest Ubuntu LTS for "ARM64 Android APK" task 2023-02-08 14:15:13 +00:00
00_setup_env_arm.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_i686_centos.sh ci: avoid using -Werror for older compilers 2023-02-01 15:22:24 +00:00
00_setup_env_i686_multiprocess.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_mac.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_mac_native_arm64.sh scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
00_setup_env_native_asan.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_fuzz.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_fuzz_with_msan.sh Merge bitcoin/bitcoin#23619: build: Propagate user-defined flags to host packages 2023-01-30 14:32:32 +00:00
00_setup_env_native_fuzz_with_valgrind.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_msan.sh Merge bitcoin/bitcoin#23619: build: Propagate user-defined flags to host packages 2023-01-30 14:32:32 +00:00
00_setup_env_native_nowallet_libbitcoinkernel.sh ci: avoid using -Werror for older compilers 2023-02-01 15:22:24 +00:00
00_setup_env_native_qt5.sh ci: avoid using -Werror for older compilers 2023-02-01 15:22:24 +00:00
00_setup_env_native_tidy.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_tsan.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_valgrind.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_s390x.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_win64.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
01_base_install.sh ci: Cache package manager install step 2023-01-28 17:59:07 +01:00
04_install.sh ci: Cache stuff in volumes, not host folders 2023-02-08 11:21:23 +01:00
05_before_script.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
06_script_a.sh scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
06_script_b.sh Deduplicate bitcoind and bitcoin-qt init code 2023-02-28 12:04:47 -05:00
wrap-qemu.sh scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
wrap-valgrind.sh scripted-diff: Bump copyright headers 2021-12-30 19:36:57 +02:00
wrap-wine.sh scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
wrapped-cl.bat ci: Integrate ccache into MSVC build 2022-03-12 03:20:33 +01:00