chore(raft): ignore e2e test binary, stop raft network on shutdown
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled

This commit is contained in:
2026-07-30 18:46:09 +03:00
parent b6eccf284e
commit f9cc68d4e6
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@ tests/fuzz_test
tests/prop_test tests/prop_test
tests/bugfix_test tests/bugfix_test
tests/nimforum_smoke_test tests/nimforum_smoke_test
tests/raft_e2e_test
benchmarks/bench_all benchmarks/bench_all
benchmarks/compare benchmarks/compare
clients/nim/tests/test_client clients/nim/tests/test_client
+4 -1
View File
@@ -328,6 +328,7 @@ proc main() =
var tcpServer = newServerWithRegistry(config, registry) var tcpServer = newServerWithRegistry(config, registry)
# Start Raft cluster if enabled # Start Raft cluster if enabled
var raftNet: RaftNetwork = nil
if config.raftEnabled: if config.raftEnabled:
info("Starting Raft node " & config.raftNodeId & " on port " & $config.raftPort) info("Starting Raft node " & config.raftNodeId & " on port " & $config.raftPort)
let raftDataDir = config.dataDir / "raft" let raftDataDir = config.dataDir / "raft"
@@ -357,7 +358,7 @@ proc main() =
# Wire replication ↔ DistTxn # Wire replication ↔ DistTxn
wireReplicationDistTxn(tcpServer.replicationManager, tcpServer.distTxnManager) wireReplicationDistTxn(tcpServer.replicationManager, tcpServer.distTxnManager)
var raftNet = newRaftNetwork(raftNode) raftNet = newRaftNetwork(raftNode)
asyncCheck raftNet.run() asyncCheck raftNet.run()
# Start replication health check and reconnection loops # Start replication health check and reconnection loops
@@ -386,6 +387,8 @@ proc main() =
tcpServer.stop() tcpServer.stop()
if tcpServer.gossipProtocol != nil: if tcpServer.gossipProtocol != nil:
tcpServer.gossipProtocol.stop() tcpServer.gossipProtocol.stop()
if raftNet != nil:
raftNet.stop()
withStorageGate: withStorageGate:
registry.closeAll() registry.closeAll()