-
Notifications
You must be signed in to change notification settings - Fork 99
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
Ci tests update #575
Ci tests update #575
Conversation
…mpatibility with dev
…ssary apt upgrades
Pytest sync, update workflows
As i see build failed with:
A temp solution could be add diff --git a/zcutil/build-mac-dtest.sh b/zcutil/build-mac-dtest.sh
index 8104c7200..04c1d8ad8 100755
--- a/zcutil/build-mac-dtest.sh
+++ b/zcutil/build-mac-dtest.sh
@@ -52,7 +52,7 @@ cd $WD
./autogen.sh
CPPFLAGS="-I$PREFIX/include -arch x86_64 -DTESTMODE" LDFLAGS="-L$PREFIX/lib -arch x86_64 -Wl,-no_pie" \
-CXXFLAGS='-arch x86_64 -I/usr/local/Cellar/gcc\@8/8.3.0/include/c++/8.3.0/ -I$PREFIX/include -fwrapv -fno-strict-aliasing -Wno-builtin-declaration-mismatch -Werror -Wno-error=attributes -g -Wl,-undefined -Wl,dynamic_lookup' \
+CXXFLAGS='-arch x86_64 -I/usr/local/Cellar/gcc\@8/8.3.0/include/c++/8.3.0/ -I$PREFIX/include -fwrapv -fno-strict-aliasing -Wno-builtin-declaration-mismatch -Wno-deprecated-declarations -Werror -Wno-error=attributes -g -Wl,-undefined -Wl,dynamic_lookup' \
./configure --prefix="${PREFIX}" --with-gui=no "$HARDENING_ARG" "$LCOV_ARG"
make "$@" V=1 NO_GTEST=1 STATIC=1 |
TODO: get rid of gcc on darwin, we should use clang for native darwin builds.
``` cc/import.cpp: In function 'int32_t CheckCODAimport(CTransaction, CTransaction, std::vector<CTxOut>, std::string, std::string)': cc/import.cpp:260:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 260 | out[65]='\0'; | ~~~~~~~^~~~~ cc/import.cpp:247:44: note: at offset 65 into destination object 'out' of size 65 247 | cJSON *result,*tmp,*tmp1; char *retstr,out[SHA256_DIGEST_LENGTH*2+1]; int i,n,m; | ^~~ ``` actually this is not needed, and the line out[64]='\0' could be commented, as sprintf actually writes 3 bytes per call, i.e. for hash[i] = 0xca, it will actually write the following sequence of bytes 'c', 'a', 0x00. So, end of string will be always with end NUL byte.
let's discuss and merge decker's fix #577 (migration to gcc-12 on mac) |
fixes #560 in Macos part |
I re-ran Macos tests here and they again failed with |
Exactly ... the |
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.
I suggest first merging two PRs waiting for merge into this branch and then review this PR
Ci tests update fix
Improve py tests err handling
archive |
Release v1.2.2-5
No description provided.