gitlab ci: cache user cache (#43952)
This commit is contained in:
parent
f7eb0ccfc9
commit
9b62a9c238
@ -170,6 +170,7 @@ default:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- "${CI_PROJECT_DIR}/jobs_scratch_dir"
|
- "${CI_PROJECT_DIR}/jobs_scratch_dir"
|
||||||
|
- "${CI_PROJECT_DIR}/tmp/_user_cache/cache"
|
||||||
variables:
|
variables:
|
||||||
KUBERNETES_CPU_REQUEST: 4000m
|
KUBERNETES_CPU_REQUEST: 4000m
|
||||||
KUBERNETES_MEMORY_REQUEST: 16G
|
KUBERNETES_MEMORY_REQUEST: 16G
|
||||||
|
@ -13,7 +13,7 @@ ci:
|
|||||||
before_script-:
|
before_script-:
|
||||||
- - cat /proc/loadavg || true
|
- - cat /proc/loadavg || true
|
||||||
- cat /proc/meminfo | grep 'MemTotal\|MemFree' || true
|
- cat /proc/meminfo | grep 'MemTotal\|MemFree' || true
|
||||||
- - spack list --count # ensure that spack's cache is populated
|
- - touch ${SPACK_USER_CACHE_PATH}/cache/*/* # bump mtime of cache so it is not invalidated
|
||||||
- - spack env activate --without-view ${SPACK_CONCRETE_ENV_DIR}
|
- - spack env activate --without-view ${SPACK_CONCRETE_ENV_DIR}
|
||||||
- spack compiler list
|
- spack compiler list
|
||||||
- if [ -n "$SPACK_BUILD_JOBS" ]; then spack config add "config:build_jobs:$SPACK_BUILD_JOBS"; fi
|
- if [ -n "$SPACK_BUILD_JOBS" ]; then spack config add "config:build_jobs:$SPACK_BUILD_JOBS"; fi
|
||||||
@ -119,7 +119,7 @@ ci:
|
|||||||
# Disable local configs to avoid issues on shell runners
|
# Disable local configs to avoid issues on shell runners
|
||||||
SPACK_DISABLE_LOCAL_CONFIG: "1"
|
SPACK_DISABLE_LOCAL_CONFIG: "1"
|
||||||
before_script:
|
before_script:
|
||||||
- - export SPACK_USER_CACHE_PATH="${CI_PROJECT_DIR}/_user_cache/"
|
- - export SPACK_USER_CACHE_PATH="${CI_PROJECT_DIR}/tmp/_user_cache/"
|
||||||
- - uname -a || true
|
- - uname -a || true
|
||||||
- grep -E "vendor|model name" /proc/cpuinfo 2>/dev/null | sort -u || head -n10 /proc/cpuinfo 2>/dev/null || true
|
- grep -E "vendor|model name" /proc/cpuinfo 2>/dev/null | sort -u || head -n10 /proc/cpuinfo 2>/dev/null || true
|
||||||
- nproc || true
|
- nproc || true
|
||||||
|
Loading…
Reference in New Issue
Block a user