Skip to content

Commit

Permalink
[Forge] Fix local mode forge run (#2153)
Browse files Browse the repository at this point in the history
  • Loading branch information
sitalkedia authored Jul 22, 2022
1 parent 194a924 commit 77ad147
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions testsuite/run_forge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ if [ "$FORGE_RUNNER_MODE" = "local" ]; then
# more file descriptors for heavy txn generation
ulimit -n 1048576

cargo run -p forge-cli -- --suite $FORGE_TEST_SUITE test k8s-swarm \
cargo run -p forge-cli -- --suite $FORGE_TEST_SUITE --workers-per-ac 10 \
test k8s-swarm
--image-tag $IMAGE_TAG \
--namespace $FORGE_NAMESPACE \
--port-forward $REUSE_ARGS $KEEP_ARGS $ENABLE_HAPROXY_ARGS | tee $FORGE_OUTPUT
Expand Down Expand Up @@ -172,15 +173,19 @@ if [ -n "$AVG_TPS" ]; then
echo "forge_job_avg_tps {FORGE_CLUSTER_NAME=\"$FORGE_CLUSTER_NAME\",FORGE_NAMESPACE=\"$FORGE_NAMESPACE\",GITHUB_RUN_ID=\"$GITHUB_RUN_ID\"} $AVG_TPS" | curl -u "$PUSH_GATEWAY_USER:$PUSH_GATEWAY_PASSWORD" --data-binary @- ${PUSH_GATEWAY}/metrics/job/forge
if [[ "$AVG_TPS" -lt "$TPS_THRESHOLD" ]]; then
echo "(\!) AVG_TPS: ${avg_tps} < ${TPS_THRESHOLD} tps"
FORGE_EXIT_CODE=1
if [ "$FORGE_RUNNER_MODE" != "local" ]; then
FORGE_EXIT_CODE=1
fi
fi
fi
if [ -n "$P99_LATENCY" ]; then
echo "P99_LATENCY: ${P99_LATENCY}"
echo "forge_job_p99_latency {FORGE_CLUSTER_NAME=\"$FORGE_CLUSTER_NAME\",FORGE_NAMESPACE=\"$FORGE_NAMESPACE\",GITHUB_RUN_ID=\"$GITHUB_RUN_ID\"} $P99_LATENCY" | curl -u "$PUSH_GATEWAY_USER:$PUSH_GATEWAY_PASSWORD" --data-binary @- ${PUSH_GATEWAY}/metrics/job/forge
if [[ "$P99_LATENCY" -gt "$P99_LATENCY_MS_THRESHOLD" ]]; then
echo "(\!) P99_LATENCY: ${P99_LATENCY} > ${P99_LATENCY_MS_THRESHOLD} ms"
FORGE_EXIT_CODE=1
if [ "$FORGE_RUNNER_MODE" != "local" ]; then
FORGE_EXIT_CODE=1
fi
fi
fi

Expand Down

0 comments on commit 77ad147

Please sign in to comment.