diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2024-01-05 17:31:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-05 17:31:59 +0100 |
commit | c1af62783a06ea897485c49f40c483ba3c419563 (patch) | |
tree | 4a4384be2d18c29a553b834aaa13cae8f85b5450 /share | |
parent | 0e698ff5c4c6a420bb9d2515672116c8de56585e (diff) | |
download | spack-c1af62783a06ea897485c49f40c483ba3c419563.tar.gz spack-c1af62783a06ea897485c49f40c483ba3c419563.tar.bz2 spack-c1af62783a06ea897485c49f40c483ba3c419563.tar.xz spack-c1af62783a06ea897485c49f40c483ba3c419563.zip |
Gitlab pipelines: check load avg also before running script (#41962)
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml | 6 | ||||
-rw-r--r-- | share/spack/gitlab/cloud_pipelines/configs/ci.yaml | 3 | ||||
-rw-r--r-- | share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml index 0c770ee872..61a7a14762 100644 --- a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml +++ b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml @@ -136,6 +136,8 @@ default: - uname -a || true - grep -E 'vendor|model name' /proc/cpuinfo 2>/dev/null | sort -u || head -n10 /proc/cpuinfo 2>/dev/null || true - nproc || true + - cat /proc/loadavg || true + - cat /proc/meminfo | grep 'MemTotal\|MemFree' || true - . "./share/spack/setup-env.sh" - spack --version - cd share/spack/gitlab/cloud_pipelines/stacks/${SPACK_CI_STACK_NAME} @@ -167,6 +169,7 @@ default: --output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/cloud-ci-pipeline.yml" after_script: - cat /proc/loadavg || true + - cat /proc/meminfo | grep 'MemTotal\|MemFree' || true artifacts: paths: - "${CI_PROJECT_DIR}/jobs_scratch_dir" @@ -206,6 +209,8 @@ default: - uname -a || true - grep -E 'vendor|model name' /proc/cpuinfo 2>/dev/null | sort -u || head -n10 /proc/cpuinfo 2>/dev/null || true - nproc || true + - cat /proc/loadavg || true + - cat /proc/meminfo | grep 'MemTotal\|MemFree' || true - . "./share/spack/setup-env.sh" - spack --version - cd share/spack/gitlab/cloud_pipelines/stacks/${SPACK_CI_STACK_NAME} @@ -217,6 +222,7 @@ default: --output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/cloud-ci-pipeline.yml" after_script: - cat /proc/loadavg || true + - cat /proc/meminfo | grep 'MemTotal\|MemFree' || true artifacts: paths: - "${CI_PROJECT_DIR}/jobs_scratch_dir" diff --git a/share/spack/gitlab/cloud_pipelines/configs/ci.yaml b/share/spack/gitlab/cloud_pipelines/configs/ci.yaml index c27065b3be..c8c8af6edb 100644 --- a/share/spack/gitlab/cloud_pipelines/configs/ci.yaml +++ b/share/spack/gitlab/cloud_pipelines/configs/ci.yaml @@ -11,6 +11,8 @@ ci: pipeline-gen: - build-job: before_script-: + - - cat /proc/loadavg || true + - cat /proc/meminfo | grep 'MemTotal\|MemFree' || true - - spack list --count # ensure that spack's cache is populated - - spack env activate --without-view ${SPACK_CONCRETE_ENV_DIR} - spack compiler list @@ -30,6 +32,7 @@ ci: ${SPACK_ARTIFACTS_ROOT}/user_data/install_times.json after_script: - - cat /proc/loadavg || true + - cat /proc/meminfo | grep 'MemTotal\|MemFree' || true variables: CI_JOB_SIZE: "default" CI_GPG_KEY_ROOT: /mnt/key diff --git a/share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml b/share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml index 0c6bf0b05b..17d5447c4d 100644 --- a/share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml +++ b/share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml @@ -35,6 +35,8 @@ spack: - . "./share/spack/setup-env.sh" - spack --version - spack arch + - cat /proc/loadavg || true + - cat /proc/meminfo | grep 'MemTotal\|MemFree' || true script: - spack compiler find - cd ${SPACK_CONCRETE_ENV_DIR} @@ -54,6 +56,7 @@ spack: 2> >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_err.txt >&2) after_script: - cat /proc/loadavg || true + - cat /proc/meminfo | grep 'MemTotal\|MemFree' || true match_behavior: first mappings: - match: |