increase ulimit and add sleep

This commit is contained in:
Gabriel mermelstein 2025-07-03 16:49:53 +02:00
parent 6feba5b0df
commit eb2867dfde
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
2 changed files with 6 additions and 4 deletions

View File

@ -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: |

View File

@ -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)
}
}