Browse Source

e2e: weight protocol dimensions (#6884)

This changes the focus of the e2e suite, to (roughly) focus on
configurations that are more well used. Most production users of
tendermint run ABCI application in process and the GRPC/socket methods
cover the vast majority of the remaining use cases. 

Perhaps we should consider drop support unix domain sockets in a
future release, but I think in the mean time it's useful to have the
tests *mostly* focus on the primary use cases.
pull/6887/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
511bd3eb7f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 4 deletions
  1. +14
    -4
      test/e2e/generator/generate.go

+ 14
- 4
test/e2e/generator/generate.go View File

@ -33,8 +33,18 @@ var (
"rocksdb": 10, "rocksdb": 10,
"cleveldb": 5, "cleveldb": 5,
} }
nodeABCIProtocols = uniformChoice{"unix", "tcp", "builtin", "grpc"}
nodePrivvalProtocols = uniformChoice{"file", "unix", "tcp", "grpc"}
nodeABCIProtocols = weightedChoice{
"builtin": 50,
"tcp": 20,
"grpc": 20,
"unix": 10,
}
nodePrivvalProtocols = weightedChoice{
"file": 50,
"grpc": 20,
"tcp": 20,
"unix": 10,
}
// FIXME: v2 disabled due to flake // FIXME: v2 disabled due to flake
nodeBlockSyncs = uniformChoice{"v0"} // "v2" nodeBlockSyncs = uniformChoice{"v0"} // "v2"
nodeMempools = uniformChoice{"v0", "v1"} nodeMempools = uniformChoice{"v0", "v1"}
@ -277,8 +287,8 @@ func generateNode(
Mode: string(mode), Mode: string(mode),
StartAt: startAt, StartAt: startAt,
Database: nodeDatabases.Choose(r), Database: nodeDatabases.Choose(r),
ABCIProtocol: nodeABCIProtocols.Choose(r).(string),
PrivvalProtocol: nodePrivvalProtocols.Choose(r).(string),
ABCIProtocol: nodeABCIProtocols.Choose(r),
PrivvalProtocol: nodePrivvalProtocols.Choose(r),
BlockSync: nodeBlockSyncs.Choose(r).(string), BlockSync: nodeBlockSyncs.Choose(r).(string),
Mempool: nodeMempools.Choose(r).(string), Mempool: nodeMempools.Choose(r).(string),
StateSync: nodeStateSyncs.Choose(r).(bool) && startAt > 0, StateSync: nodeStateSyncs.Choose(r).(bool) && startAt > 0,


Loading…
Cancel
Save