Invalid format 'GIT_PATCH_OUTPUT=From 74a6be5b8606984f6165c68ff5f4abbeab9052d6 Mon Sep 17 00:00:00 2001 From: krzysztofpaliga <paligakrzysztof106@gmail.com> Date: Fri, 11 Aug 2023 05:36:46 +0200 Subject: [PATCH 1/3] Adds weekly benchmarks, tencent test run --- .github/cloudRun/cloud-tests-local-trigger.sh | 36 ++++ .github/cloudRun/cloud-tests-trigger.sh | 35 ++++ .github/cloudRun/github-action-trigger.sh | 6 + .github/cloudRun/run.sh | 20 ++ .github/weeklyBenchScripts/00_installGo.sh | 38 ++++ .github/weeklyBenchScripts/00_installRust.sh | 24 +++ .github/weeklyBenchScripts/01_installDeps.sh | 62 ++++++ .github/weeklyBenchScripts/02_setup.sh | 48 +++++ .../weeklyBenchScripts/03_prepareProver.sh | 16 ++ .github/weeklyBenchScripts/04_clone.sh | 22 ++ .github/weeklyBenchScripts/05_build.sh | 19 ++ .github/weeklyBenchScripts/06_rsSysstat.sh | 11 + .github/weeklyBenchScripts/07_execBench.sh | 68 ++++++ .../weeklyBenchScripts/08_processResults.sh | 65 ++++++ .../bench-results-cleanup.sh | 10 + .../bench-results-local-trigger.sh | 106 ++++++++++ .../weeklyBenchScripts/bench-results-setup.sh | 28 +++ .../bench-results-trigger.sh | 31 +++ .../github-action-cleanup.sh | 7 + .../weeklyBenchScripts/github-action-setup.sh | 28 +++ .../github-action-trigger.sh | 11 + .github/weeklyBenchScripts/reporting_main.py | 36 ++++ .../weeklyBenchScripts/reporting_modules.py | 195 ++++++++++++++++++ .github/weeklyBenchScripts/sadf.sh | 9 + .github/workflows/cloud-run.yml | 40 ++++ .github/workflows/weekly-bench.yml | 38 ++++ 26 files changed, 1009 insertions(+) create mode 100644 .github/cloudRun/cloud-tests-local-trigger.sh create mode 100644 .github/cloudRun/cloud-tests-trigger.sh create mode 100755 .github/cloudRun/github-action-trigger.sh create mode 100644 .github/cloudRun/run.sh create mode 100644 .github/weeklyBenchScripts/00_installGo.sh create mode 100644 .github/weeklyBenchScripts/00_installRust.sh create mode 100644 .github/weeklyBenchScripts/01_installDeps.sh create mode 100644 .github/weeklyBenchScripts/02_setup.sh create mode 100644 .github/weeklyBenchScripts/03_prepareProver.sh create mode 100644 .github/weeklyBenchScripts/04_clone.sh create mode 100644 .github/weeklyBenchScripts/05_build.sh create mode 100644 .github/weeklyBenchScripts/06_rsSysstat.sh create mode 100644 .github/weeklyBenchScripts/07_execBench.sh create mode 100755 .github/weeklyBenchScripts/08_processResults.sh create mode 100644 .github/weeklyBenchScripts/bench-results-cleanup.sh create mode 100644 .github/weeklyBenchScripts/bench-results-local-trigger.sh create mode 100644 .github/weeklyBenchScripts/bench-results-setup.sh create mode 100644 .github/weeklyBenchScripts/bench-results-trigger.sh create mode 100755 .github/weeklyBenchScripts/github-action-cleanup.sh create mode 100755 .github/weeklyBenchScripts/github-action-setup.sh create mode 100755 .github/weeklyBenchScripts/github-action-trigger.sh create mode 100644 .github/weeklyBenchScripts/reporting_main.py create mode 100644 .github/weeklyBenchScripts/reporting_modules.py create mode 100755 .github/weeklyBenchScripts/sadf.sh create mode 100644 .github/workflows/cloud-run.yml create mode 100644 .github/workflows/weekly-bench.yml diff --git a/.github/cloudRun/cloud-tests-local-trigger.sh b/.github/cloudRun/cloud-tests-local-trigger.sh new file mode 100644 index 0000000000..a2ce7f43d0 --- /dev/null +++ b/.github/cloudRun/cloud-tests-local-trigger.sh @@ -0,0 +1,36 @@ +#!/bin/bash +cd "$(dirname "$0")" || exit 1 + +GITHUB_RUN_ID=$1 +BRANCH_NAME=$2 + +PROVER_INSTANCE=$(cat "$HOME/CI_Github_Trigger/$GITHUB_RUN_ID/prover_instance") +echo "Prover instance at trigger: $PROVER_INSTANCE" + +export PROVER_IP=$(tccli cvm DescribeInstances --InstanceIds "[\"$PROVER_INSTANCE\"]" | grep -A 1 PublicIpAddress | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') +echo "Prover IP: $PROVER_IP" + +rm ~/.ssh/known_hosts* + +prepare_env() { + ssh -i ~/.ssh/bench.pem -o StrictHostKeyChecking=no ubuntu@$PROVER_IP "bash -s" -- <../weeklyBenchScripts/00_installGo.sh + ssh -i ~/.ssh/bench.pem -o StrictHostKeyChecking=no ubuntu@