From 2c317dad143a3d0d493fbffaa92c22eba659656c Mon Sep 17 00:00:00 2001 From: Ivan Efremov Date: Tue, 1 Jul 2025 21:07:25 +0300 Subject: [PATCH] Fix run.sh proxy-bench args --- .github/workflows/proxy-benchmark.yml | 47 ++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/.github/workflows/proxy-benchmark.yml b/.github/workflows/proxy-benchmark.yml index e48fe41b45..43861d981d 100644 --- a/.github/workflows/proxy-benchmark.yml +++ b/.github/workflows/proxy-benchmark.yml @@ -32,15 +32,23 @@ jobs: statuses: write contents: write pull-requests: write +<<<<<<< HEAD runs-on: [ self-hosted, unit-perf-aws-arm ] +======= + runs-on: [ self-hosted, unit-perf ] +>>>>>>> 8bd54d307 (Run proxy-bench directly on self-hosted runner) timeout-minutes: 60 # 1h timeout - container: - image: ghcr.io/neondatabase/build-tools:pinned-bookworm - credentials: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - options: --init steps: + - name: Checkout only needed scripts + uses: actions/checkout@v4 + with: + sparse-checkout: | + scripts/proxy_bench_results_ingest.py + scripts/ingest_perf_test_result.py + scripts/generate_and_push_perf_report.sh + scripts/pysync + sparse-checkout-cone-mode: false + - name: Checkout proxy-bench Repo uses: actions/checkout@v4 with: @@ -57,6 +65,7 @@ jobs: echo "NEON_DIR=${RUNNER_TEMP}/neon" echo "NEON_PROXY_PATH=${RUNNER_TEMP}/neon/bin/proxy" echo "TEST_OUTPUT=${PROXY_BENCH_PATH}/test_output" + echo "DOCKER_COMPOSE_FILE=${PROXY_BENCH_PATH}/docker-compose.yml" echo "" } >> "$GITHUB_ENV" @@ -65,6 +74,19 @@ jobs: with: path: ~/.cache/pypoetry/virtualenvs key: v2-${{ runner.os }}-${{ runner.arch }}-python-deps-bookworm-${{ hashFiles('poetry.lock') }} +<<<<<<< HEAD +======= + + - name: Install Python deps + shell: bash -euxo pipefail {0} + run: ./scripts/pysync + + - name: Run proxy-bench + env: + DOCKER_COMPOSE_FILE: ${{ env.DOCKER_COMPOSE_FILE }} + working-directory: ${{ env.PROXY_BENCH_PATH }} + run: ./run.sh +>>>>>>> 8bd54d307 (Run proxy-bench directly on self-hosted runner) - name: Install Python deps shell: bash -euxo pipefail {0} @@ -77,14 +99,14 @@ jobs: - name: Run proxy-bench working-directory: ${{ env.PROXY_BENCH_PATH }} - run: ./run.sh --with-grafana --bare-metal + run: ./run.sh --bare-metal - name: Ingest Bench Results if: always() working-directory: ${{ env.NEON_DIR }} run: | mkdir -p $TEST_OUTPUT - python $NEON_DIR/scripts/proxy_bench_results_ingest.py --out $TEST_OUTPUT + ./scripts/proxy_bench_results_ingest.py --out $TEST_OUTPUT - name: Push Metrics to Proxy perf database shell: bash -euxo pipefail {0} @@ -109,4 +131,11 @@ jobs: fi if [[ -d "${PROXY_BENCH_PATH}/test_output" ]]; then rm -rf ${PROXY_BENCH_PATH}/test_output - fi \ No newline at end of file +<<<<<<< HEAD + fi +======= + fi + if [[ -d "./scripts" ]]; then + rm -rf ./scripts + fi +>>>>>>> 8bd54d307 (Run proxy-bench directly on self-hosted runner)