From d5a83de21de48ac45281a168c1c9163643cf059e Mon Sep 17 00:00:00 2001 From: Jacob Wujciak-Jens Date: Mon, 13 May 2024 03:26:26 +0200 Subject: [PATCH] use global arrow_build_dir --- dev/conbench_envs/hooks.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/conbench_envs/hooks.sh b/dev/conbench_envs/hooks.sh index 0745357d2c0d3..568d51739c4cf 100755 --- a/dev/conbench_envs/hooks.sh +++ b/dev/conbench_envs/hooks.sh @@ -49,7 +49,6 @@ set_arrow_build_and_run_env_vars() { } build_arrow_cpp() { - export ARROW_BUILD_DIR="/tmp/$(uuidgen)" # Ignore the error when a cache can't be created if ! ci/scripts/cpp_build.sh $(pwd) $ARROW_BUILD_DIR 2> error.log; then if ! grep -q -F "Can\'t create temporary cache file" error.log; then @@ -59,8 +58,7 @@ build_arrow_cpp() { } build_arrow_python() { - mkdir -p /tmp/arrow - ci/scripts/python_build.sh $(pwd) /tmp/arrow + ci/scripts/python_build.sh $(pwd) "$ARROW_BUILD_DIR" } build_arrow_r() { @@ -71,7 +69,7 @@ build_arrow_r() { build_arrow_java() { mkdir -p /tmp/arrow - ci/scripts/java_build.sh $(pwd) /tmp/arrow + ci/scripts/java_build.sh $(pwd) "$ARROW_BUILD_DIR" } install_archery() { @@ -83,6 +81,8 @@ install_java_script_project_dependencies() { } create_conda_env_with_arrow_python() { + export ARROW_BUILD_DIR="/tmp/$(uuidgen)" + mkdir -p "$ARROW_BUILD_DIR" create_conda_env_for_benchmark_build activate_conda_env_for_benchmark_build install_arrow_python_dependencies