Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cache server test download #304

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions driver/configurations/cache.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ set(DASHBOARD_PYTHON_CACHE_VERSION)
set(DASHBOARD_REMOTE_CACHE_KEY)

if(REMOTE_CACHE)
mktemp(DASHBOARD_FILE_DOWNLOAD_TEMP file_download_XXXXXXXX
"temporary download file"
)
list(APPEND DASHBOARD_TEMPORARY_FILES DASHBOARD_FILE_DOWNLOAD_TEMP)

# NOTE: is there a new cache server being added (or an ip address changing)?
# In addition to updating `DASHBOARD_REMOTE_CACHE` below, you must update:
#
Expand All @@ -57,21 +52,7 @@ if(REMOTE_CACHE)
else()
set(DASHBOARD_REMOTE_CACHE "http://172.31.18.175")
endif()
message(STATUS
"Testing download of remote cache server: '${DASHBOARD_REMOTE_CACHE}'")
file(DOWNLOAD "${DASHBOARD_REMOTE_CACHE}" "${DASHBOARD_FILE_DOWNLOAD_TEMP}"
STATUS DASHBOARD_DOWNLOAD_STATUS
LOG DASHBOARD_DOWNLOAD_LOG
)
list(GET DASHBOARD_DOWNLOAD_STATUS 0 DASHBOARD_DOWNLOAD_STATUS_0)

if(NOT DASHBOARD_DOWNLOAD_STATUS_0 EQUAL 0)
message(WARNING
"*** Disabling remote cache because could NOT contact remote cache server"
"\n${DASHBOARD_DOWNLOAD_LOG}"
)
set(REMOTE_CACHE OFF)
endif()
message(STATUS "Using remote cache address: ${DASHBOARD_REMOTE_CACHE}")
endif()

if(REMOTE_CACHE AND NOT APPLE)
Expand Down