Skip to content

Apache DataFusion SQL Query Engine

Add explicit move of PR bench results if they were named HEAD instead of by the short sha (#9636)

Marko Grujice83efcef1884
diff --git a/.github/workflows/pr_benchmarks.yml b/.github/workflows/pr_benchmarks.yml
index 929a4e84ee..b7b85c9fcf 100644
--- a/.github/workflows/pr_benchmarks.yml
+++ b/.github/workflows/pr_benchmarks.yml
@@ -44,6 +44,12 @@ jobs:
cd benchmarks
./bench.sh run tpch
+
+ # For some reason this step doesn't seem to propagate the env var down into the script
+ if [ -d "results/HEAD" ]; then
+ echo "Moving results into ${{ env.HEAD_SHORT_SHA }}"
+ mv results/HEAD results/${{ env.HEAD_SHORT_SHA }}
+ fi
- name: Checkout base commit
uses: actions/checkout@v4