Skip to content

Add in check to see if benchmark has already run #15

Add in check to see if benchmark has already run

Add in check to see if benchmark has already run #15

Workflow file for this run

name: Run performance benchmark tests
permissions:
pull-requests: write
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout data-caterer-example repo
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check if benchmark has already run
run: |
version=$(grep dataCatererVersion gradle.properties | cut -d= -f2)
if [ ! -f benchmark/results/benchmark_results_${version}.txt ]; then
echo "No benchmark results for version: $version, starting to run benchmarks"
else
echo "Benchmarks already run!"
exit 1
fi
- name: Checkout datafusion-comet repo
uses: actions/checkout@v4
with:
fetch-depth: 2
repository: apache/datafusion-comet
path: benchmark/build/datafusion-comet
- name: Get Spark query engine jars
run: bash benchmark/setup_query_engine_jars.sh
- name: Run benchmark script
run: bash benchmark/run_benchmark.sh
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
title: Add benchmark results