chore: optimize libwaku size (#3242)

* avoid compile TRACE level to reduce libwaku size
* waku_rln_relay/constants.nim: avoid adding constant seq that is used in tests only
* ci:yml USE_LIBBACKTRACE=0 to force -d:debug when running tests
This commit is contained in:
Ivan FB 2025-01-16 10:54:10 +01:00 committed by GitHub
parent 9d0b30cc99
commit 192db550c9
3 changed files with 2 additions and 2 deletions

View File

@ -117,6 +117,7 @@ jobs:
export MAKEFLAGS="-j1"
export NIMFLAGS="--colors:off -d:chronicles_colors:none"
export USE_LIBBACKTRACE=0
make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled test testwakunode2

View File

@ -7,7 +7,6 @@
BUILD_SYSTEM_DIR := vendor/nimbus-build-system
EXCLUDED_NIM_PACKAGES := vendor/nim-dnsdisc/vendor
LINK_PCRE := 0
LOG_LEVEL := TRACE
FORMAT_MSG := "\\x1B[95mFormatting:\\x1B[39m"
# we don't want an error here, so we can handle things later, in the ".DEFAULT" target
-include $(BUILD_SYSTEM_DIR)/makefiles/variables.mk

View File

@ -101,7 +101,7 @@ task testcommon, "Build & run common tests":
### Waku tasks
task wakunode2, "Build Waku v2 cli node":
let name = "wakunode2"
buildBinary name, "apps/wakunode2/"
buildBinary name, "apps/wakunode2/", " -d:chronicles_log_level='TRACE' "
task benchmarks, "Some benchmarks":
let name = "benchmarks"