Skip to content

Commit

Permalink
perfdash: a few improvements
Browse files Browse the repository at this point in the history
Load config for tests from local directory.
Limit number of builds to 10 for faster bootstrap.
Redirect to gs on click on the graph.

Signed-off-by: Marcel Zieba <[email protected]>
  • Loading branch information
marseel committed Sep 27, 2024
1 parent 0368469 commit c068bd2
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions scale-tests/run_perfdash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

set -xeo pipefail

export SERVER_ADDRESS="0.0.0.0:8080"
export BUILDS="100"
export BUCKET="cilium-scale-results"
export GITHUB_CONFIG="https://api.github.com/repos/cilium/scaffolding/contents/scale-tests/jobs"
export SERVER_ADDRESS="${SERVER_ADDRESS:-0.0.0.0:8080}"
export BUILDS="${BUILDS:-10}"
export BUCKET="${BUCKET:-cilium-scale-results}"
export CONFIG_PATH="${CONFIG_PATH:-../../jobs/tests.yaml}"
export STORAGE_URL="https://console.cloud.google.com/storage/browser"

update_perf_tests () {
if ! [ -d ./perf-tests ]
Expand All @@ -24,13 +25,14 @@ build_perfdash () {
}

run_perfdash () {
./perfdash \
--www \
--address=$SERVER_ADDRESS \
--builds=$BUILDS \
--force-builds \
--logsBucket=$BUCKET \
--githubConfigDir=$GITHUB_CONFIG
./perfdash \
--www \
--address=$SERVER_ADDRESS \
--builds=$BUILDS \
--force-builds \
--logsBucket=$BUCKET \
--configPath=$CONFIG_PATH \
--storageURL=$STORAGE_URL
}

main () {
Expand Down

0 comments on commit c068bd2

Please sign in to comment.