From 14ad391d330be8f778eb66f7f469275c94cbeeb2 Mon Sep 17 00:00:00 2001 From: KishiTheMechanic Date: Sat, 13 Dec 2025 07:37:45 +0100 Subject: [PATCH] upload test --- .github/workflows/publish-node-bench.yml | 16 +++++++++++++++- .../node_bench/examples/erpc_vps_ams_4/README.md | 9 +++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tools/node_bench/examples/erpc_vps_ams_4/README.md diff --git a/.github/workflows/publish-node-bench.yml b/.github/workflows/publish-node-bench.yml index ce0e012..694ff43 100644 --- a/.github/workflows/publish-node-bench.yml +++ b/.github/workflows/publish-node-bench.yml @@ -5,6 +5,7 @@ on: branches: [main] paths: - "tools/node_bench/node_bench.sh" + - ".github/workflows/publish-node-bench.yml" workflow_dispatch: jobs: @@ -26,7 +27,20 @@ jobs: set -euo pipefail file="tools/node_bench/node_bench.sh" [[ -f "$file" ]] || { echo "missing $file"; exit 1; } - aws s3 cp "$file" "s3://${R2_BUCKET}/tools/node_bench.sh" \ + aws s3 cp "$file" "s3://tools/node_bench.sh" \ --endpoint-url "$R2_ENDPOINT" \ --content-type "text/x-shellscript" \ --cache-control "no-cache" + + - name: Purge CDN cache + if: ${{ secrets.CLOUDFLARE_API_TOKEN != '' && secrets.CLOUDFLARE_ZONE_ID != '' }} + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }} + run: | + set -euo pipefail + payload=$(jq -n --arg url "https://storage-for-testing.erpc.global/tools/node_bench.sh" '{files: [$url]}') + curl --fail -sS -X POST "https://api.cloudflare.com/client/v4/zones/${CLOUDFLARE_ZONE_ID}/purge_cache" \ + -H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \ + -H "Content-Type: application/json" \ + --data "${payload}" diff --git a/tools/node_bench/examples/erpc_vps_ams_4/README.md b/tools/node_bench/examples/erpc_vps_ams_4/README.md new file mode 100644 index 0000000..9de8985 --- /dev/null +++ b/tools/node_bench/examples/erpc_vps_ams_4/README.md @@ -0,0 +1,9 @@ +# ERPC VPS AMS (4 vCPU) — example + +Machine (from provided panel and run output): + +- Location: Amsterdam +- CPU: AMD EPYC 9255 (5th Gen AMD EPYC, 4 vCPU slice) +- Memory: 16GB +- Disk: 50GB +- OS: Ubuntu24.04