diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 1aa546ea9..36604d64a 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -8,6 +8,22 @@ on: jobs: benchmark: - runs-on: arc-runners-set-bench + name: Run benchmarks + runs-on: ubuntu-latest-8-cores steps: - - run: echo "hello" + - name: Checkout + uses: actions/checkout@v4 + + - name: Install protoc + uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Compile and run + run: | + cargo run \ + --release \ + --bin bench_standard \ + -- \ + --print-results \ + --print-explain diff --git a/infra/README.md b/infra/README.md deleted file mode 100644 index c45539d59..000000000 --- a/infra/README.md +++ /dev/null @@ -1 +0,0 @@ -# Infra diff --git a/infra/bench-arc-values.yaml b/infra/bench-arc-values.yaml deleted file mode 100644 index 8036886e7..000000000 --- a/infra/bench-arc-values.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Values configuration for the runner set for benchmarks. - -githubConfigUrl: "https://github.com/glaredb/glaredb" - -minRunners: 0 -maxRunners: 2 - -template: - spec: - nodeSelector: - cloud.google.com/machine-family: n4 - cloud.google.com/compute-class: Performance # Dedicated node per pod - containers: - - name: runner - image: ghcr.io/actions/actions-runner:latest - command: ["/home/runner/run.sh"] - env: - - name: ACTIONS_RUNNER_CONTAINER_HOOKS - value: /home/runner/k8s/index.js - - name: ACTIONS_RUNNER_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER - value: "true" - resources: - requests: - cpu: 12 - memory: "32Gi" - ephemeral-storage: "200Gi" diff --git a/infra/create-bench-arc.sh b/infra/create-bench-arc.sh deleted file mode 100755 index c6716d9da..000000000 --- a/infra/create-bench-arc.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -set -eux - -: "${GITHUB_PAT:?Github access token needs to be set}" - -REPO_ROOT=$(git rev-parse --show-toplevel) - -INSTALLATION_NAME="arc-runners-set-bench" -NAMESPACE="arc-runners-bench" - -helm install arc \ - --namespace "${NAMESPACE}" \ - --create-namespace \ - --version "0.9.3" \ - oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller - -helm install "${INSTALLATION_NAME}" \ - --namespace "${NAMESPACE}" \ - --create-namespace \ - --values "${REPO_ROOT}/infra/bench-arc-values.yaml" \ - --set githubConfigSecret.github_token="${GITHUB_PAT}" \ - --version "0.9.3" \ - oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set