alamb commented on PR #20159:
URL: https://github.com/apache/datafusion/pull/20159#issuecomment-3885730529

   Seems to have done the trick
   ```shell
   # Automatically created by scrape_comments.py
   # PR: https://github.com/apache/datafusion/pull/20159
   # Comment: 
https://github.com/apache/datafusion/pull/20159#issuecomment-3885722084
   # User: alamb
   # Body: run benchmark tpch_mem^M
   DATAFUSION_RUNTIME_MEMORY_LIMIT=1G
   
   #!/usr/bin/env bash
   
   set -euo pipefail
   
   PR_URL="https://github.com/apache/datafusion/pull/20159";
   OUTPUT_FILE="/tmp/benchmark_script_output.txt"
   
   error_handler() {
     local exit_code=$?
     set +e
   
     local tail_output
     tail_output="$(tail -n 10 "$OUTPUT_FILE" 2>/dev/null || true)"
   
     local body_file
     body_file="$(mktemp)"
     {
       echo "Benchmark script failed with exit code ${exit_code}."
       echo
       echo "Last 10 lines of output:"
       echo "<details><summary>Click to expand</summary>"
       echo
       echo '```'
       echo "${tail_output}"
       echo '```'
       echo
       echo "</details>"
     } > "${body_file}"
   
     gh pr comment "${PR_URL}" --body-file "${body_file}"
   
     rm -f "${body_file}"
     exit 0
   trap error_handler ERR
   
   : > "${OUTPUT_FILE}"
   exec > >(tee -a "${OUTPUT_FILE}") 2>&1
   
   export DATAFUSION_RUNTIME_MEMORY_LIMIT=1G
   
   BENCHMARKS="tpch_mem" ./gh_compare_branch.sh 
https://github.com/apache/datafusion/pull/20159
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to