-
Notifications
You must be signed in to change notification settings - Fork 0
Merge bitcoin/bitcoin#27850: test: Add unit & functional test coverage for blockstore #930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6c59ec6
1da6c15
64707a3
9bf0b03
8ed12a0
40a0306
783d562
db0e1ae
26b1263
b070be9
d891316
5159367
254be0b
a77cdf1
1d5e5bc
c452317
577e3ff
9f7fe7f
a8bf088
ccf8397
73864ca
c011ef0
88bb3e2
c72280d
73a296d
5413294
59be60b
62f7c34
4971e5a
f5d2026
caa10ee
762d06f
752d8fe
85ed7a0
760ce8c
3134cb9
766865e
b32b2cb
efb5b67
5e340da
10e9d25
e804dd2
a33518f
f585ecb
45470a7
a0c7303
731d5c8
8b678ca
c66b972
7742c52
68cb2d9
023703c
aeae1f6
ff719ef
aecf5a2
968fd51
bfddc1b
a64bbfe
376f7c7
985f0fb
16df18f
6195a88
5f68c56
d49034b
94ec343
68f30f2
dde0347
e1b7805
a52dafe
74cda55
f46ac63
41732c6
59d93c2
199c3ca
4178f58
b520b9a
d3e1645
fe96f73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| [main] | ||
| host = https://www.transifex.com | ||
|
|
||
| [dash.dash_ents] | ||
| [o:dash:p:dash:r:dash_ents] | ||
| file_filter = src/qt/locale/dash_<lang>.ts | ||
| source_file = src/qt/locale/dash_en.xlf | ||
| source_lang = en |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Copyright (c) 2020-2022 The Bitcoin Core developers | ||
| # Distributed under the MIT software license, see the accompanying | ||
| # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
|
||
| export LC_ALL=C.UTF-8 | ||
|
|
||
| export HOST=i686-pc-linux-gnu | ||
| export CONTAINER_NAME=ci_i686_centos | ||
| export CI_IMAGE_NAME_TAG="quay.io/centos/amd64:stream9" | ||
| export CI_BASE_PACKAGES="gcc-c++ glibc-devel.x86_64 libstdc++-devel.x86_64 glibc-devel.i686 libstdc++-devel.i686 ccache libtool make git python3 python3-pip which patch lbzip2 xz procps-ng dash rsync coreutils bison util-linux e2fsprogs" | ||
| export PIP_PACKAGES="pyzmq" | ||
| export GOAL="install" | ||
| export NO_WERROR=1 # Suppress error: #warning _FORTIFY_SOURCE > 2 is treated like 2 on this platform [-Werror=cpp] | ||
| export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-reduce-exports" | ||
| export CONFIG_SHELL="/bin/dash" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -450,15 +450,6 @@ if test "$enable_werror" = "yes"; then | |
| fi | ||
| ERROR_CXXFLAGS=$CXXFLAG_WERROR | ||
|
|
||
| dnl -Warray-bounds cause problems with GCC. Do not treat these warnings as errors. | ||
| dnl Suppress -Warray-bounds entirely because of noisy output, currently unhappy with immer implementation. | ||
| AX_CHECK_COMPILE_FLAG([-Warray-bounds], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-array-bounds"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([ | ||
| #if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__) | ||
| #error Non-GCC compiler detected, not setting flag | ||
| #endif | ||
| int main(void) { return 0; } | ||
| ])]) | ||
|
|
||
| dnl -Wattributes cause problems with some versions of GCC. Do not treat these warnings as errors. | ||
| AX_CHECK_COMPILE_FLAG([-Wattributes], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-error=attributes"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([ | ||
| #if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__) | ||
|
|
@@ -478,22 +469,31 @@ if test "$enable_werror" = "yes"; then | |
| #endif | ||
| int main(void) { return 0; } | ||
| ])]) | ||
|
|
||
| dnl -Wstringop-overread and -Wstringop-overflow are broken in GCC. Suppress warnings entirely to avoid noisy output. | ||
| AX_CHECK_COMPILE_FLAG([-Wstringop-overread], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-stringop-overread"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([ | ||
| #if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__) | ||
| #error Non-GCC compiler detected, not setting flag | ||
| #endif | ||
| int main(void) { return 0; } | ||
| ])]) | ||
| AX_CHECK_COMPILE_FLAG([-Wstringop-overflow], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-stringop-overflow"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([ | ||
| #if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__) | ||
| #error Non-GCC compiler detected, not setting flag | ||
| #endif | ||
| int main(void) { return 0; } | ||
| ])]) | ||
| fi | ||
|
|
||
| dnl -Warray-bounds cause problems with GCC. Do not treat these warnings as errors. | ||
| dnl Suppress -Warray-bounds entirely because of noisy output, currently unhappy with immer implementation. | ||
| AX_CHECK_COMPILE_FLAG([-Warray-bounds], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-array-bounds"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([ | ||
| #if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__) | ||
| #error Non-GCC compiler detected, not setting flag | ||
| #endif | ||
| int main(void) { return 0; } | ||
| ])]) | ||
|
Comment on lines
+474
to
+481
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Check These new unconditional suppressions reuse Consider either: -AX_CHECK_COMPILE_FLAG([-Warray-bounds], [...], [], [$CXXFLAG_WERROR], [...])
+AX_CHECK_COMPILE_FLAG([-Warray-bounds], [...], [], [$CXXFLAG_WERROR], [...]) dnl keep
+# OR explicitly pass an empty string to make intent obvious
+# AX_CHECK_COMPILE_FLAG([-Warray-bounds], [...], [], [], [...])Not blocking, just flagging for clarity.
🤖 Prompt for AI Agents |
||
|
|
||
| dnl -Wstringop-overread and -Wstringop-overflow are broken in GCC. Suppress warnings entirely to avoid noisy output. | ||
| AX_CHECK_COMPILE_FLAG([-Wstringop-overread], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-stringop-overread"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([ | ||
| #if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__) | ||
| #error Non-GCC compiler detected, not setting flag | ||
| #endif | ||
| int main(void) { return 0; } | ||
| ])]) | ||
| AX_CHECK_COMPILE_FLAG([-Wstringop-overflow], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-stringop-overflow"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([ | ||
| #if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__) | ||
| #error Non-GCC compiler detected, not setting flag | ||
| #endif | ||
| int main(void) { return 0; } | ||
| ])]) | ||
|
|
||
| AX_CHECK_COMPILE_FLAG([-Wall], [WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall"], [], [$CXXFLAG_WERROR]) | ||
| AX_CHECK_COMPILE_FLAG([-Wextra], [WARN_CXXFLAGS="$WARN_CXXFLAGS -Wextra"], [], [$CXXFLAG_WERROR]) | ||
| AX_CHECK_COMPILE_FLAG([-Wgnu], [WARN_CXXFLAGS="$WARN_CXXFLAGS -Wgnu"], [], [$CXXFLAG_WERROR]) | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |||||||
| import sys | ||||||||
| from typing import List | ||||||||
|
|
||||||||
| import lief #type:ignore | ||||||||
| import lief | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider reinstating the
-import lief
+import lief # type: ignore[import-not-found]📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||
|
|
||||||||
| def check_ELF_RELRO(binary) -> bool: | ||||||||
| ''' | ||||||||
|
|
||||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
ccache size is no longer set explicitly
Dropping
--max-size="$CCACHE_SIZE"relies on the environment variable alone. If the runner’s ccache directory already exceeds 300 M,ccache --zero-statswill not shrink it.Consider restoring an explicit size cap:
📝 Committable suggestion
🤖 Prompt for AI Agents