From 0e57972040bc1d3ca701a1360e7ce923c60fd919 Mon Sep 17 00:00:00 2001 From: Dylan Socolobsky Date: Thu, 5 Dec 2024 11:05:35 -0300 Subject: [PATCH] Update deployed page with generated flamegraphs 2 --- .github/scripts/flamegraph.sh | 3 ++- .github/scripts/flamegraph_reth.sh | 6 ++++-- .github/workflows/flamegraph_reporter.yaml | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/scripts/flamegraph.sh b/.github/scripts/flamegraph.sh index 82a592d53c..77f6aa5455 100644 --- a/.github/scripts/flamegraph.sh +++ b/.github/scripts/flamegraph.sh @@ -14,7 +14,8 @@ retries=0 while [[ $output -le $end_val && $retries -lt 30 ]]; do sleep 5 output=$(cast balance $account --rpc-url=http://localhost:1729 2>&1) - echo "balance was $output still not reached value of $end_val" + echo "balance was $output still not reached value of $end_val (retry $retries/30)" + ((retries++)) done echo "Done. Balance of $output reached, killing process ethrex" sudo pkill ethrex && while pgrep -l "cargo-flamegraph"; do echo "waiting for reth to exit... "; sleep 1;done; diff --git a/.github/scripts/flamegraph_reth.sh b/.github/scripts/flamegraph_reth.sh index 77e481cc97..3d57e914ee 100644 --- a/.github/scripts/flamegraph_reth.sh +++ b/.github/scripts/flamegraph_reth.sh @@ -9,10 +9,12 @@ ethrex_l2 test load --path /home/runner/work/ethrex/ethrex/test_data/private_key echo "Monitoring..." output=$(cast balance $account --rpc-url=http://localhost:1729 2>&1) -while [[ $output -le $end_val ]]; do +retries=0 +while [[ $output -le $end_val && $retries -lt 30 ]]; do sleep 5 output=$(cast balance $account --rpc-url=http://localhost:1729 2>&1) - echo "balance was $output still not reached value of $end_val" + echo "balance was $output still not reached value of $end_val (retry $retries/30)" + ((retries++)) done echo "Balance of $output reached, killing process reth" diff --git a/.github/workflows/flamegraph_reporter.yaml b/.github/workflows/flamegraph_reporter.yaml index 3f2aad99fe..b70c731c15 100644 --- a/.github/workflows/flamegraph_reporter.yaml +++ b/.github/workflows/flamegraph_reporter.yaml @@ -167,13 +167,13 @@ jobs: - name: Download ethrex flamegraph artifact uses: actions/download-artifact@v4 with: - name: flamegraph_ethrex + name: flamegraph_ethrex.svg path: flamegraph_ethrex.svg - name: Download reth flamegraph artifact uses: actions/download-artifact@v4 with: - name: flamegraph_reth + name: flamegraph_reth.svg path: flamegraph_reth.svg - name: Update static page locally with new data