From 192db550c975f9024aca646d993796fbd55462ef Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Thu, 16 Jan 2025 10:54:10 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 1 + Makefile | 1 - waku.nimble | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b567059f8..dee8559fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Makefile b/Makefile index 1d8531a05..75e26bde8 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/waku.nimble b/waku.nimble index ac4f7728c..87a432e0c 100644 --- a/waku.nimble +++ b/waku.nimble @@ -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"