diff --git a/.github/workflows/benchmarking.yml b/.github/workflows/benchmarking.yml index be7aac5ee5..adb4c943a8 100644 --- a/.github/workflows/benchmarking.yml +++ b/.github/workflows/benchmarking.yml @@ -36,106 +36,6 @@ concurrency: cancel-in-progress: true jobs: - bench: - # this workflow runs on self hosteed runner - # it's environment is quite different from usual guthub runner - # probably the most important difference is that it doesn't start from clean workspace each time - # e g if you install system packages they are not cleaned up since you install them directly in host machine - # not a container or something - # See documentation for more info: https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners - runs-on: [self-hosted, zenith-benchmarker] - - env: - POSTGRES_DISTRIB_DIR: /usr/pgsql - DEFAULT_PG_VERSION: 14 - - steps: - - name: Checkout zenith repo - uses: actions/checkout@v3 - - # actions/setup-python@v2 is not working correctly on self-hosted runners - # see https://github.com/actions/setup-python/issues/162 - # and probably https://github.com/actions/setup-python/issues/162#issuecomment-865387976 in particular - # so the simplest solution to me is to use already installed system python and spin virtualenvs for job runs. - # there is Python 3.7.10 already installed on the machine so use it to install poetry and then use poetry's virtuealenvs - - name: Install poetry & deps - run: | - python3 -m pip install --upgrade poetry wheel - # since pip/poetry caches are reused there shouldn't be any troubles with install every time - ./scripts/pysync - - - name: Show versions - run: | - echo Python - python3 --version - poetry run python3 --version - echo Poetry - poetry --version - echo Pgbench - ${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/pgbench --version - - - name: Create Neon Project - id: create-neon-project - uses: ./.github/actions/neon-project-create - with: - environment: ${{ github.event.inputs.environment || 'staging' }} - api_key: ${{ ( github.event.inputs.environment || 'staging' ) == 'staging' && secrets.NEON_STAGING_API_KEY || secrets.NEON_CAPTEST_API_KEY }} - - - name: Run benchmark - # pgbench is installed system wide from official repo - # https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-7-x86_64/ - # via - # sudo tee /etc/yum.repos.d/pgdg.repo<