From eb2867dfdebb55d6ea374ff3a2e7ecb157593a29 Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Thu, 3 Jul 2025 16:49:53 +0200 Subject: [PATCH] increase ulimit and add sleep --- .github/workflows/CI.yml | 4 ++-- waku/nwaku_test_utils.go | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a9e8b91..702270b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,7 +3,7 @@ name: Bindings Tests on: workflow_dispatch: schedule: - - cron: '0 2 * * *' + - cron: "0 2 * * *" jobs: Daily: @@ -35,7 +35,7 @@ jobs: run: make -C waku - name: Increase ulimit - run: sudo sh -c "ulimit -n 8192" + run: sudo sh -c "ulimit -n 65536" - name: Run Daily Test run: | diff --git a/waku/nwaku_test_utils.go b/waku/nwaku_test_utils.go index 4da8272..65f51db 100644 --- a/waku/nwaku_test_utils.go +++ b/waku/nwaku_test_utils.go @@ -137,6 +137,8 @@ func WaitForAutoConnection(nodeList []*WakuNode) error { return err } + // Wait for the protocol connections to settle + time.Sleep(1 * time.Second) Debug("Auto-connection check completed successfully") return nil } @@ -296,9 +298,9 @@ func captureMemory(testName, phase string) { runtime.ReadMemStats(&ms) heapKB := ms.HeapAlloc / 1024 - rssKB, _ := utils.GetRSSKB() + rssKB, _ := utils.GetRSSKB() Debug("[%s] Memory usage (%s): %d KB (RSS %d KB)", testName, phase, heapKB, rssKB) _ = recordMemoryMetricsPX(testName, phase, heapKB, rssKB) -} \ No newline at end of file +}