Merge pull request #20 from data-catering/create-pull-request/patch #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run performance benchmark tests | |
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: | | |
version=$(grep dataCatererVersion gradle.properties | cut -d= -f2) | |
bash benchmark/run_benchmark.sh | |
bash benchmark/compare_benchmark_results.sh "$version" | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: Add benchmark results |