From 4b75f2eedc788b64c6a60d1f87c1b87d542d4632 Mon Sep 17 00:00:00 2001 From: tycho garen Date: Fri, 22 Oct 2021 07:57:27 -0400 Subject: [PATCH] e2e: limit scope of test --- .github/workflows/e2e-nightly-master.yml | 4 +-- test/e2e/generator/generate.go | 36 ++++++++++++------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/e2e-nightly-master.yml b/.github/workflows/e2e-nightly-master.yml index 0d5dbb830..3c7e77ad9 100644 --- a/.github/workflows/e2e-nightly-master.yml +++ b/.github/workflows/e2e-nightly-master.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - group: ['00', '01', '02', '03'] + group: ['00', '01', '02'] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -34,7 +34,7 @@ jobs: - name: Generate testnets working-directory: test/e2e # When changing -g, also change the matrix groups above - run: ./build/generator -g 4 -d networks/nightly/ + run: ./build/generator -g 3 -d networks/nightly/ - name: Run ${{ matrix.p2p }} p2p testnets working-directory: test/e2e diff --git a/test/e2e/generator/generate.go b/test/e2e/generator/generate.go index 10a180f6a..04f606910 100644 --- a/test/e2e/generator/generate.go +++ b/test/e2e/generator/generate.go @@ -14,7 +14,7 @@ var ( // testnetCombinations defines global testnet options, where we generate a // separate testnet for each combination (Cartesian product) of options. testnetCombinations = map[string][]interface{}{ - "topology": {"single", "quad", "large"}, + "topology": {"quad", "large"}, "queueType": {"priority"}, // "fifo" "initialHeight": {0, 1000}, "initialState": { @@ -26,32 +26,32 @@ var ( // The following specify randomly chosen values for testnet nodes. nodeDatabases = weightedChoice{ - "goleveldb": 35, - "badgerdb": 35, - "boltdb": 15, - "rocksdb": 10, - "cleveldb": 5, + // "goleveldb": 35, + "badgerdb": 35, + // "boltdb": 15, + // "rocksdb": 10, + // "cleveldb": 5, } nodeABCIProtocols = weightedChoice{ "builtin": 50, - "tcp": 20, - "grpc": 20, - "unix": 10, + // "tcp": 20, + // "grpc": 20, + // "unix": 10, } nodePrivvalProtocols = weightedChoice{ "file": 50, - "grpc": 20, - "tcp": 20, - "unix": 10, + // "grpc": 20, + // "tcp": 20, + // "unix": 10, } nodeMempools = weightedChoice{ - "v0": 20, + // "v0": 20, "v1": 80, } nodeStateSyncs = weightedChoice{ - e2e.StateSyncDisabled: 10, - e2e.StateSyncP2P: 45, - e2e.StateSyncRPC: 45, + // e2e.StateSyncDisabled: 10, + e2e.StateSyncP2P: 45, + e2e.StateSyncRPC: 45, } nodePersistIntervals = uniformChoice{0, 1, 5} nodeSnapshotIntervals = uniformChoice{0, 5} @@ -66,9 +66,9 @@ var ( "kill": 0.1, "restart": 0.1, } - evidence = uniformChoice{0, 1, 10} + evidence = uniformChoice{0} // , 1, 10 txSize = uniformChoice{1024, 4096} // either 1kb or 4kb - ipv6 = uniformChoice{false, true} + ipv6 = uniformChoice{false} // , true keyType = uniformChoice{types.ABCIPubKeyTypeEd25519, types.ABCIPubKeyTypeSecp256k1} )