diff --git a/ci/build_docs.sh b/ci/build_docs.sh index c831311357c..67d611340c5 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -6,12 +6,14 @@ set -euo pipefail rapids-logger "Create test conda environment" . /opt/conda/etc/profile.d/conda.sh +ENV_YAML_DIR="$(mktemp -d)" + rapids-dependency-file-generator \ --output conda \ --file_key docs \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee "${ENV_YAML_DIR}/env.yaml" -rapids-mamba-retry env create --force -f env.yaml -n docs +rapids-mamba-retry env create --force -f "${ENV_YAML_DIR}/env.yaml" -n docs conda activate docs rapids-print-env diff --git a/ci/check_style.sh b/ci/check_style.sh index 9eed0029893..088860d38df 100755 --- a/ci/check_style.sh +++ b/ci/check_style.sh @@ -6,12 +6,14 @@ set -euo pipefail rapids-logger "Create checks conda environment" . /opt/conda/etc/profile.d/conda.sh +ENV_YAML_DIR="$(mktemp -d)" + rapids-dependency-file-generator \ --output conda \ --file_key checks \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee "${ENV_YAML_DIR}/env.yaml" -rapids-mamba-retry env create --force -f env.yaml -n checks +rapids-mamba-retry env create --force -f "${ENV_YAML_DIR}/env.yaml" -n checks conda activate checks FORMAT_FILE_URL=https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-24.02/cmake-format-rapids-cmake.json diff --git a/ci/test_cpp_common.sh b/ci/test_cpp_common.sh index c7c095dc4df..37aba751a09 100644 --- a/ci/test_cpp_common.sh +++ b/ci/test_cpp_common.sh @@ -6,12 +6,15 @@ set -euo pipefail . /opt/conda/etc/profile.d/conda.sh rapids-logger "Generate C++ testing dependencies" + +ENV_YAML_DIR="$(mktemp -d)" + rapids-dependency-file-generator \ --output conda \ --file_key test_cpp \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee env.yaml + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee "${ENV_YAML_DIR}/env.yaml" -rapids-mamba-retry env create --force -f env.yaml -n test +rapids-mamba-retry env create --force -f "${ENV_YAML_DIR}/env.yaml" -n test # Temporarily allow unbound variables for conda activation. set +u @@ -19,7 +22,8 @@ conda activate test set -u CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) -RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}/ +RESULTS_DIR=${RAPIDS_TESTS_DIR:-"$(mktemp -d)"} +RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${RESULTS_DIR}/test-results"}/ mkdir -p "${RAPIDS_TESTS_DIR}" rapids-print-env diff --git a/ci/test_java.sh b/ci/test_java.sh index e4df62501cc..0863795162d 100755 --- a/ci/test_java.sh +++ b/ci/test_java.sh @@ -6,12 +6,15 @@ set -euo pipefail . /opt/conda/etc/profile.d/conda.sh rapids-logger "Generate Java testing dependencies" + +ENV_YAML_DIR="$(mktemp -d)" + rapids-dependency-file-generator \ --output conda \ --file_key test_java \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee env.yaml + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee "${ENV_YAML_DIR}/env.yaml" -rapids-mamba-retry env create --force -f env.yaml -n test +rapids-mamba-retry env create --force -f "${ENV_YAML_DIR}/env.yaml" -n test export CMAKE_GENERATOR=Ninja diff --git a/ci/test_notebooks.sh b/ci/test_notebooks.sh index 348428fdef1..b746a18aed1 100755 --- a/ci/test_notebooks.sh +++ b/ci/test_notebooks.sh @@ -6,12 +6,15 @@ set -euo pipefail . /opt/conda/etc/profile.d/conda.sh rapids-logger "Generate notebook testing dependencies" + +ENV_YAML_DIR="$(mktemp -d)" + rapids-dependency-file-generator \ --output conda \ --file_key test_notebooks \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee "${ENV_YAML_DIR}/env.yaml" -rapids-mamba-retry env create --force -f env.yaml -n test +rapids-mamba-retry env create --force -f "${ENV_YAML_DIR}/env.yaml" -n test # Temporarily allow unbound variables for conda activation. set +u diff --git a/ci/test_python_common.sh b/ci/test_python_common.sh index 0e922c105dd..1c330d47ac6 100755 --- a/ci/test_python_common.sh +++ b/ci/test_python_common.sh @@ -8,12 +8,15 @@ set -euo pipefail . /opt/conda/etc/profile.d/conda.sh rapids-logger "Generate Python testing dependencies" + +ENV_YAML_DIR="$(mktemp -d)" + rapids-dependency-file-generator \ --output conda \ --file_key test_python \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee "${ENV_YAML_DIR}/env.yaml" -rapids-mamba-retry env create --force -f env.yaml -n test +rapids-mamba-retry env create --force -f "${ENV_YAML_DIR}/env.yaml" -n test # Temporarily allow unbound variables for conda activation. set +u @@ -24,8 +27,9 @@ rapids-logger "Downloading artifacts from previous jobs" CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python) -RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"} -RAPIDS_COVERAGE_DIR=${RAPIDS_COVERAGE_DIR:-"${PWD}/coverage-results"} +RESULTS_DIR=${RAPIDS_TESTS_DIR:-"$(mktemp -d)"} +RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${RESULTS_DIR}/test-results"}/ +RAPIDS_COVERAGE_DIR=${RAPIDS_COVERAGE_DIR:-"${RESULTS_DIR}/coverage-results"} mkdir -p "${RAPIDS_TESTS_DIR}" "${RAPIDS_COVERAGE_DIR}" rapids-print-env