Skip to content

SDS usage crashes unit tests #7216

@igor-sirotin

Description

@igor-sirotin

Description

For some reason, unit test runtime decreased from 30 to 8 minutes. Something is broken.

So far #7149 seem to be the culprit:
Image

Coverage decreased by 8 percent:
Image

Why PR checks didn't detect this?

  1. Unfortunately, tests-develop job was disabled. Perhaps codecov project limits would have caught this. Though maybe not, it's configured for 10% drop.
  2. I'm not sure why the CI still passed, I'm investigating.

Are tests broken?

They pass on CI.

Tried to run locally, got this:

2025-12-16T14:52:42.102Z	DEBUG	9b0adc.reliability.sds	sds/logging.go:34	Creating new Reliability Manager
SIGSEGV: segmentation violation
PC=0x1084d51cc m=18 sigcode=2 addr=0x0
signal arrived during cgo execution

goroutine 440731 gp=0x1400104cc40 m=18 mp=0x1400312e008 [syscall]:
runtime.cgocall(0x104f0274c, 0x1400d584508)
	/Users/sirotin/go/go1.24.7/src/runtime/cgocall.go:167 +0x44 fp=0x1400d5844d0 sp=0x1400d584490 pc=0x1029c1444
github.com/waku-org/sds-go-bindings/sds._Cfunc_cGoSdsNewReliabilityManager(0xc82a77340)
	_cgo_gotypes.go:166 +0x34 fp=0x1400d584500 sp=0x1400d5844d0 pc=0x103a37ff4
github.com/waku-org/sds-go-bindings/sds.NewReliabilityManager.func6(...)
	/Users/sirotin/go/pkg/mod/github.com/waku-org/[email protected]/sds/sds.go:169
github.com/waku-org/sds-go-bindings/sds.NewReliabilityManager()
	/Users/sirotin/go/pkg/mod/github.com/waku-org/[email protected]/sds/sds.go:169 +0x240 fp=0x1400d5845c0 sp=0x1400d584500 pc=0x103a38870
github.com/status-im/status-go/messaging/layers/reliability.newSdsReliabilityManager(0x140012e3080)
	/Users/sirotin/Repositories/status/status-go/messaging/layers/reliability/sds.go:15 +0x98 fp=0x1400d5846a0 sp=0x1400d5845c0 pc=0x103a49c38
github.com/status-im/status-go/messaging/layers/reliability.NewReliability({0x1065fa528, 0x14020873e68}, 0x14013c9fb60, 0x24?)
	/Users/sirotin/Repositories/status/status-go/messaging/layers/reliability/reliability.go:43 +0xd4 fp=0x1400d5846e0 sp=0x1400d5846a0 pc=0x103a48274
github.com/status-im/status-go/messaging.newCore({0x1066382c0, 0x14000f4c780}, {0x14013c9fb60, {0x140284e9d40, 0x24}, 0x0, {0x0, {0x0, 0x0}, 0x0, ...}, ...}, ...)
	/Users/sirotin/Repositories/status/status-go/messaging/core.go:90 +0x3a4 fp=0x1400d5847a0 sp=0x1400d5846e0 pc=0x103b86ad4
github.com/status-im/status-go/messaging.(*TestMessagingEnvironment).NewTestCore(0x14026974c40, {0x14013c9fb60, {0x140284e9d40, 0x24}, 0x0, {0x0, {0x0, 0x0}, 0x0, 0x0, ...}, ...}, ...)
	/Users/sirotin/Repositories/status/status-go/messaging/core_test_utils.go:51 +0xe8 fp=0x1400d5848b0 sp=0x1400d5847a0 pc=0x103b89498
github.com/status-im/status-go/protocol.newTestMessenger(0x14026974c40, {{0x1400a3b99e0, 0x6}, 0x14013c9fb60, 0x14002150680, 0x0, 0x0, 0x1401c901808, 0x14001779b08, {0x1400dc32780, ...}})
	/Users/sirotin/Repositories/status/status-go/protocol/messenger_builder_test.go:129 +0xa84 fp=0x1400d5858c0 sp=0x1400d5848b0 pc=0x104940284
github.com/status-im/status-go/protocol.newTestCommunitiesMessenger(0x14002f16f00, 0x14026974c40, {{{0x0, 0x0}, 0x14013c9fb60, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...})
	/Users/sirotin/Repositories/status/status-go/protocol/communities_messenger_helpers_test.go:331 +0x1010 fp=0x1400d585ab0 sp=0x1400d5858c0 pc=0x10487d7a0
github.com/status-im/status-go/protocol.(*CommunitiesMessengerTestSuiteBase).newMessengerWithConfig(0x14002f16f00, {{0x0, 0x0}, 0x14013c9fb60, 0x0, 0x0, 0x0, 0x0, 0x0, {0x1402af02718, ...}}, ...)
	/Users/sirotin/Repositories/status/status-go/protocol/communities_messenger_test_suite_base_test.go:58 +0x118 fp=0x1400d585c40 sp=0x1400d585ab0 pc=0x104909868
github.com/status-im/status-go/protocol.(*EventSenderCommunityEventsSuiteBase).newMessenger(0x14002f16f00, {0x0, 0x0}, {0x1082a1020, 0x0, 0x0})
	/Users/sirotin/Repositories/status/status-go/protocol/communities_messenger_admin_test.go:84 +0x2c0 fp=0x1400d585d60 sp=0x1400d585c40 pc=0x1048794f0
github.com/status-im/status-go/protocol.(*EventSenderCommunityEventsSuiteBase).SetupTest(0x14002f16f00)
	/Users/sirotin/Repositories/status/status-go/protocol/communities_messenger_admin_test.go:65 +0x78 fp=0x1400d585db0 sp=0x1400d585d60 pc=0x104879068
github.com/stretchr/testify/suite.Run.func1(0x140273d21c0)
	/Users/sirotin/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:188 +0x170 fp=0x1400d585f60 sp=0x1400d585db0 pc=0x103823e70
testing.tRunner(0x140273d21c0, 0x14005e0b830)
	/Users/sirotin/go/go1.24.7/src/testing/testing.go:1792 +0xe4 fp=0x1400d585fb0 sp=0x1400d585f60 pc=0x102aef164
testing.(*T).Run.gowrap1()
	/Users/sirotin/go/go1.24.7/src/testing/testing.go:1851 +0x2c fp=0x1400d585fd0 sp=0x1400d585fb0 pc=0x102aeffec
runtime.goexit({})
	/Users/sirotin/go/go1.24.7/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400d585fd0 sp=0x1400d585fd0 pc=0x1029cdb04
created by testing.(*T).Run in goroutine 241937
	/Users/sirotin/go/go1.24.7/src/testing/testing.go:1851 +0x374

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions