Skip to content

Commit

Permalink
Run benchmark commands in e2e
Browse files Browse the repository at this point in the history
... for sanity checks to catch a panic or abnormal exit. Also allows one
to see the output in a CI jib w/o having to run it locally.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis authored and mangelajo committed Apr 30, 2021
1 parent eeb2cb8 commit 30e18b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/subctl/benchmark/throughput.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func runThroughputTest(f *framework.Framework, testParams benchmarkTestParams) {
// to remove this dependency with iptables-chain, lets delete the service after the nettest server Pod is terminated.
// [*] https://github.com/submariner-io/submariner/issues/1166
if framework.TestContext.GlobalnetEnabled && testParams.ClientCluster != testParams.ServerCluster {
f.DeletePod(testParams.ServerCluster, nettestServerPod.Pod.Name, f.Namespace)
f.DeleteService(testParams.ServerCluster, service.Name)
f.DeleteServiceExport(testParams.ServerCluster, service.Name)
}
Expand Down
10 changes: 10 additions & 0 deletions scripts/kind-e2e/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,15 @@ test_subctl_gather

${DAPPER_SOURCE}/bin/subctl diagnose all

# Run benchmark commands for sanity checks

${DAPPER_SOURCE}/bin/subctl benchmark latency --intra-cluster ${KUBECONFIGS_DIR}/kind-config-cluster1

${DAPPER_SOURCE}/bin/subctl benchmark latency ${KUBECONFIGS_DIR}/kind-config-cluster1 ${KUBECONFIGS_DIR}/kind-config-cluster2

${DAPPER_SOURCE}/bin/subctl benchmark throughput --intra-cluster ${KUBECONFIGS_DIR}/kind-config-cluster1

${DAPPER_SOURCE}/bin/subctl benchmark throughput --verbose ${KUBECONFIGS_DIR}/kind-config-cluster1 ${KUBECONFIGS_DIR}/kind-config-cluster2

print_clusters_message

0 comments on commit 30e18b2

Please sign in to comment.