diff --git a/upgrade/test-pprof-upload.sh b/upgrade/test-pprof-upload.sh index 9a82598..62a2f4d 100644 --- a/upgrade/test-pprof-upload.sh +++ b/upgrade/test-pprof-upload.sh @@ -1,10 +1,12 @@ # SPDX-License-Identifier: MIT function test_upload_profiles() { - FORGEJO_URL="http://${IP}:6060" + FORGEJO_URL="http://localhost:6060" PROFILECLI_URL="http://0.0.0.0:4040" endpoints=("/debug/pprof/allocs" "/debug/pprof/block" "/debug/pprof/goroutine" "/debug/pprof/mutex" "/debug/pprof/profile?seconds=5") + curl -fL https://github.com/grafana/pyroscope/releases/download/v1.1.5/profilecli_1.1.5_linux_amd64.tar.gz -o profilecli.tar.gz + tar xzf profilecli.tar.gz for endpoint in "${endpoints[@]}"; do output=$(basename "$endpoint") @@ -27,6 +29,7 @@ function test_forgejo_pprof() { log_info "run 8.0-dev" start 8.0-dev + test_upload_profiles stop