Files
status-go/scripts/push_benchmark.sh
Igor Sirotin b7ba8e52d6 refactor: move test suites under test/
tests-functional/    -> test/functional/
  tests-unit-network/  -> test/unit-network/

No Go code changes beyond the two package paths. Every reference follows:
Makefile targets, the pytest-lint and reliability workflows, the three
Jenkinsfiles, the root Dockerfile, pyrightconfig.json, .gitignore, the
benchmark and functional-test scripts, and the docs.

All paths inside the moved directories are self-contained (docker compose
uses `context: .`, the Python helpers resolve from __file__), so the extra
level of nesting does not reach outside.

refs #7067
2026-08-20 20:59:45 +02:00

48 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
set -o nounset
set -o errexit
set -o pipefail
REPO_URL="git@github.com:status-im/status-go-benchmarks.git"
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
source "${GIT_ROOT}/scripts/colors.sh"
echo -e "${GRN}Pushing benchmark results${RST}"
cd "${GIT_ROOT}"
# Get the commit SHA from the status-go repo BEFORE cloning bench-repo
commit_sha=$(git rev-parse --short HEAD)
git clone "${REPO_URL}" benchmarks-repo
cd benchmarks-repo
timestamp=$(date -u '+%Y%m%dT%H%M%S')
benchmark_dir="${timestamp}_${commit_sha}"
echo -e "${GRN}Creating benchmark directory${RST}"
mkdir -p "benchmarks/${benchmark_dir}"
echo -e "${GRN}Copying benchmark results${RST}"
cp -r "${GIT_ROOT}/test/functional/.results/benchmarks"/* "benchmarks/${benchmark_dir}/"
echo -e "${GRN}Creating virtual environment${RST}"
python3 -m venv .venv
source .venv/bin/activate
echo -e "${GRN}Installing dependencies${RST}"
pip install --upgrade pip
pip install -r requirements.txt
echo -e "${GRN}Updating README${RST}"
python ./scripts/update_readme.py
echo -e "${GRN}Committing changes${RST}"
git add .
git commit -m "Add benchmark results ${benchmark_dir}"
echo -e "${GRN}Pushing changes${RST}"
git push "${REPO_URL}"
echo -e "${GRN}Push finished${RST}"