From c1af62783a06ea897485c49f40c483ba3c419563 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Fri, 5 Jan 2024 17:31:59 +0100 Subject: Gitlab pipelines: check load avg also before running script (#41962) --- share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml | 6 ++++++ share/spack/gitlab/cloud_pipelines/configs/ci.yaml | 3 +++ share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml | 3 +++ 3 files changed, 12 insertions(+) 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: -- cgit v1.2.3-70-g09d2