Skip to content

Apache DataFusion SQL Query Engine

Try fixing missing results name in the benchmark step (#9632)

Marko Grujic6e90f01c413a
diff --git a/.github/workflows/pr_benchmarks.yml b/.github/workflows/pr_benchmarks.yml
index 884e3b6a70..929a4e84ee 100644
--- a/.github/workflows/pr_benchmarks.yml
+++ b/.github/workflows/pr_benchmarks.yml
@@ -21,7 +21,7 @@ jobs:
with:
ref: refs/pull/${{ github.event.issue.number }}/head
- - name: Setup data and generate unique result names
+ - name: Setup test data
# Workaround for `the input device is not a TTY`, appropriated from https://github.com/actions/runner/issues/241
shell: 'script -q -e -c "bash -e {0}"'
run: |
@@ -31,7 +31,8 @@ jobs:
# Setup the TPC-H data set with a scale factor of 10
./bench.sh data tpch
- # Generate a unique-ish identifiers for the results
+ - name: Generate unique result names
+ run: |
echo "HEAD_LONG_SHA=$(git log -1 --format='%H')" >> "$GITHUB_ENV"
echo "HEAD_SHORT_SHA=$(git log -1 --format='%h' --abbrev=7)" >> "$GITHUB_ENV"
echo "BASE_SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)" >> "$GITHUB_ENV"