Skip to content

Commit

Permalink
Investigating sccache issues.
Browse files Browse the repository at this point in the history
[skip-vdc][skip-rapids][skip-docs]
  • Loading branch information
alliepiper committed Aug 21, 2024
1 parent 1e1af8d commit b32310b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}" \
Expand Down
17 changes: 15 additions & 2 deletions .github/actions/workflow-run-job-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}} \
Expand Down Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion ci/build_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
1 change: 1 addition & 0 deletions ci/matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b32310b

Please sign in to comment.