mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-05 23:43:05 +00:00
increase ulimit and add sleep
This commit is contained in:
parent
6feba5b0df
commit
eb2867dfde
4
.github/workflows/CI.yml
vendored
4
.github/workflows/CI.yml
vendored
@ -3,7 +3,7 @@ name: Bindings Tests
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * *'
|
- cron: "0 2 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Daily:
|
Daily:
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
run: make -C waku
|
run: make -C waku
|
||||||
|
|
||||||
- name: Increase ulimit
|
- name: Increase ulimit
|
||||||
run: sudo sh -c "ulimit -n 8192"
|
run: sudo sh -c "ulimit -n 65536"
|
||||||
|
|
||||||
- name: Run Daily Test
|
- name: Run Daily Test
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -137,6 +137,8 @@ func WaitForAutoConnection(nodeList []*WakuNode) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait for the protocol connections to settle
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
Debug("Auto-connection check completed successfully")
|
Debug("Auto-connection check completed successfully")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -296,9 +298,9 @@ func captureMemory(testName, phase string) {
|
|||||||
runtime.ReadMemStats(&ms)
|
runtime.ReadMemStats(&ms)
|
||||||
|
|
||||||
heapKB := ms.HeapAlloc / 1024
|
heapKB := ms.HeapAlloc / 1024
|
||||||
rssKB, _ := utils.GetRSSKB()
|
rssKB, _ := utils.GetRSSKB()
|
||||||
|
|
||||||
Debug("[%s] Memory usage (%s): %d KB (RSS %d KB)", testName, phase, heapKB, rssKB)
|
Debug("[%s] Memory usage (%s): %d KB (RSS %d KB)", testName, phase, heapKB, rssKB)
|
||||||
|
|
||||||
_ = recordMemoryMetricsPX(testName, phase, heapKB, rssKB)
|
_ = recordMemoryMetricsPX(testName, phase, heapKB, rssKB)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user