mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-05 23:43:05 +00:00
make changes in sore.go fro json wrong format and make CI job exit on errors
This commit is contained in:
parent
a790561322
commit
f17a654158
5
.github/workflows/CI_endurance.yml
vendored
5
.github/workflows/CI_endurance.yml
vendored
@ -36,7 +36,9 @@ jobs:
|
|||||||
run: sudo sh -c "ulimit -n 8192"
|
run: sudo sh -c "ulimit -n 8192"
|
||||||
|
|
||||||
- name: Run Endurance Test (Group 1)
|
- name: Run Endurance Test (Group 1)
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
go test -p=1 -v ./waku -count=1 -timeout=360m -run '^(TestStressMemoryUsageForThreeNodes|TestStressStoreQuery5kMessagesWithPagination|TestStressConnectDisconnect500Iteration|TestStressHighThroughput10kPublish)$' | tee testlogs1.log
|
go test -p=1 -v ./waku -count=1 -timeout=360m -run '^(TestStressMemoryUsageForThreeNodes|TestStressStoreQuery5kMessagesWithPagination|TestStressConnectDisconnect500Iteration|TestStressHighThroughput10kPublish)$' | tee testlogs1.log
|
||||||
|
|
||||||
- name: Upload Test Logs (Group 1)
|
- name: Upload Test Logs (Group 1)
|
||||||
@ -83,7 +85,10 @@ jobs:
|
|||||||
run: sudo sh -c "ulimit -n 8192"
|
run: sudo sh -c "ulimit -n 8192"
|
||||||
|
|
||||||
- name: Run Endurance Test (Group 2)
|
- name: Run Endurance Test (Group 2)
|
||||||
|
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
go test -p=1 -v ./waku -count=1 -timeout=360m -run '^(TestStressRandomNodesInMesh|TestStress2Nodes500IterationTearDown|TestPeerExchangePXLoad)$' | tee testlogs2.log
|
go test -p=1 -v ./waku -count=1 -timeout=360m -run '^(TestStressRandomNodesInMesh|TestStress2Nodes500IterationTearDown|TestPeerExchangePXLoad)$' | tee testlogs2.log
|
||||||
|
|
||||||
- name: Upload Test Logs (Group 2)
|
- name: Upload Test Logs (Group 2)
|
||||||
|
|||||||
@ -1,15 +1,15 @@
|
|||||||
package common
|
package common
|
||||||
|
|
||||||
type StoreQueryRequest struct {
|
type StoreQueryRequest struct {
|
||||||
RequestId string `json:"requestId"`
|
RequestId string `json:"request_id"`
|
||||||
IncludeData bool `json:"includeData"`
|
IncludeData bool `json:"include_data"`
|
||||||
PubsubTopic string `json:"pubsubTopic,omitempty"`
|
PubsubTopic string `json:"pubsubTopic,omitempty"`
|
||||||
ContentTopics *[]string `json:"contentTopics,omitempty"`
|
ContentTopics *[]string `json:"contentTopics,omitempty"`
|
||||||
TimeStart *int64 `json:"timeStart,omitempty"`
|
TimeStart *int64 `json:"timeStart,omitempty"`
|
||||||
TimeEnd *int64 `json:"timeEnd,omitempty"`
|
TimeEnd *int64 `json:"timeEnd,omitempty"`
|
||||||
MessageHashes *[]MessageHash `json:"messageHashes,omitempty"`
|
MessageHashes *[]MessageHash `json:"messageHashes,omitempty"`
|
||||||
PaginationCursor *MessageHash `json:"paginationCursor,omitempty"`
|
PaginationCursor *MessageHash `json:"paginationCursor,omitempty"`
|
||||||
PaginationForward bool `json:"paginationForward"`
|
PaginationForward bool `json:"pagination_forward"`
|
||||||
PaginationLimit *uint64 `json:"paginationLimit,omitempty"`
|
PaginationLimit *uint64 `json:"paginationLimit,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -86,7 +86,7 @@ func TestStressStoreQuery5kMessagesWithPagination(t *testing.T) {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
||||||
iterations := 5000
|
iterations := 3000
|
||||||
|
|
||||||
captureMemory(t.Name(), "at start")
|
captureMemory(t.Name(), "at start")
|
||||||
|
|
||||||
@ -104,6 +104,7 @@ func TestStressStoreQuery5kMessagesWithPagination(t *testing.T) {
|
|||||||
TimeStart: queryTimestamp,
|
TimeStart: queryTimestamp,
|
||||||
IncludeData: true,
|
IncludeData: true,
|
||||||
PaginationLimit: proto.Uint64(50),
|
PaginationLimit: proto.Uint64(50),
|
||||||
|
PaginationForward: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
storedmsgs, err := wakuNode.GetStoredMessages(node2, storeQueryRequest)
|
storedmsgs, err := wakuNode.GetStoredMessages(node2, storeQueryRequest)
|
||||||
@ -136,7 +137,7 @@ func TestStressHighThroughput10kPublish(t *testing.T) {
|
|||||||
|
|
||||||
captureMemory(t.Name(), "at start")
|
captureMemory(t.Name(), "at start")
|
||||||
|
|
||||||
totalMessages := 2500
|
totalMessages := 5
|
||||||
pubsubTopic := DefaultPubsubTopic
|
pubsubTopic := DefaultPubsubTopic
|
||||||
|
|
||||||
for i := 0; i < totalMessages; i++ {
|
for i := 0; i < totalMessages; i++ {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user