From b32310b76f82ee79e3f01e33c4ba8b84f6cbe12e Mon Sep 17 00:00:00 2001 From: Allison Piper Date: Wed, 21 Aug 2024 13:08:13 +0000 Subject: [PATCH] Investigating sccache issues. [skip-vdc][skip-rapids][skip-docs] --- .devcontainer/launch.sh | 7 +++++++ .../actions/workflow-run-job-linux/action.yml | 17 +++++++++++++++-- ci/build_common.sh | 8 +++++++- ci/matrix.yaml | 1 + 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.devcontainer/launch.sh b/.devcontainer/launch.sh index d67e1f73993..086eeefff70 100755 --- a/.devcontainer/launch.sh +++ b/.devcontainer/launch.sh @@ -237,6 +237,13 @@ launch_docker() { eval "${INITIALIZE_COMMAND[*]@Q}" fi + echo "docker run \\" + echo " ${RUN_ARGS[@]} \\" + echo " ${ENV_VARS[@]} \\" + echo " ${MOUNTS[@]} \\" + echo " ${DOCKER_IMAGE} \\" + echo " $@" + exec docker run \ "${RUN_ARGS[@]}" \ "${ENV_VARS[@]}" \ diff --git a/.github/actions/workflow-run-job-linux/action.yml b/.github/actions/workflow-run-job-linux/action.yml index d10d1dca2ef..bdf266f29f9 100644 --- a/.github/actions/workflow-run-job-linux/action.yml +++ b/.github/actions/workflow-run-job-linux/action.yml @@ -141,7 +141,7 @@ runs: # Launch this container using the host's docker daemon set -x - ${{github.event.repository.name}}/.devcontainer/launch.sh \ + bash -x ${{github.event.repository.name}}/.devcontainer/launch.sh \ --docker \ --cuda ${{inputs.cuda}} \ --host ${{inputs.host}} \ @@ -172,10 +172,23 @@ runs: touch "$result_dir/success" + repo_dir="${{github.event.repository.name}}" + + echo "::group::Install tree" + apt install -y tree + echo "::endgroup::" + + echo "::group::Dump repo dir" + echo "repo_dir: $repo_dir" + ls -lh "$repo_dir" + tree "${repo_dir}" + echo "::endgroup::" + # Finds a matching file in the repo directory and copies it to the results directory. find_and_copy() { filename="$1" - filepath="$(find ${{github.event.repository.name}} -name "${filename}" -print -quit)" + echo "Searching for '${filename}' in '${repo_dir}'" + filepath="$(find "${repo_dir}" -name "${filename}" -print -quit)" if [[ -z "$filepath" ]]; then echo "${filename} does not exist in repo directory." return 1 diff --git a/ci/build_common.sh b/ci/build_common.sh index e0bfc05c3b3..837ae4accf4 100755 --- a/ci/build_common.sh +++ b/ci/build_common.sh @@ -206,7 +206,13 @@ function build_preset() { status=$? popd > /dev/null - sccache --show-adv-stats --stats-format=json > "${sccache_json}" + which sccache || : + echo "${sccache_json}" + sccache --show-adv-stats --stats-format=json | tee "${sccache_json}" || : + echo + ls -lh "${sccache_json}" || : + cat "${sccache_json}" || : + echo minimal_sccache_stats=$(source "./sccache_stats.sh" "end") diff --git a/ci/matrix.yaml b/ci/matrix.yaml index fa2f5d92183..bf1d179659f 100644 --- a/ci/matrix.yaml +++ b/ci/matrix.yaml @@ -8,6 +8,7 @@ workflows: # - {jobs: ['test'], project: 'thrust', std: 17, ctk: 'curr', cxx: ['gcc12', 'llvm16']} # override: + - {jobs: ['build'], project: 'thrust'} pull_request: # Old CTK