gitlab: capture filesystem, CPU, memory and kernel info in logs
PATCH 1/1 gitlab: capture filesystem, CPU, memory and kernel info in logs
For tests we have often had wierd failures that are related to the runner environment. For example, tests that fail only with specific filesystem setups.
Since we don't control the runners directly, it is important to capture info about the environment to aid in failure diagnosis.
--- .gitlab-ci.d/buildtest-template.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+)
.gitlab-ci.d/buildtest-template.yml +12 -0
@@ -27,6 +27,10 @@ - section_start setup "Pre-script setup" - JOBS=$(expr $(nproc) + 1) - cat /packages.txt + - cat /proc/mounts + - cat /proc/cpuinfo + - cat /proc/meminfo + - uname -a - section_end setup script: - export CCACHE_BASEDIR="$(pwd)"
@@ -102,6 +106,10 @@ # Prevent logs from the build job that run earlier # from being duplicated in the test job artifacts - rm -f build/meson-logs/* + - cat /proc/mounts + - cat /proc/cpuinfo + - cat /proc/meminfo + - uname -a .functional_test_job_template:
@@ -126,6 +134,10 @@ # Prevent logs from the build job that run earlier # from being duplicated in the test job artifacts - rm -f build/meson-logs/* + - cat /proc/mounts + - cat /proc/cpuinfo + - cat /proc/meminfo + - uname -a after_script: - cd build - du -chs ${CI_PROJECT_DIR}/*-cache
Signature · 1 line
2.54.0
Quoted 4 lines · Daniel P. Berrangé
For tests we have often had wierd failures that are related to the runner environment. For example, tests that fail only with specific filesystem setups.
Quoted 8 lines
Since we don't control the runners directly, it is important to capture info about the environment to aid in failure diagnosis.
Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/buildtest-template.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Good idea,
Maybe add a ls -al /dev and id -a, to sort out potential right issues to access devices?
Regards,
Pierrick
Quoted 14 lines · Pierrick Bouvier
Quoted 4 lines · Daniel P. Berrangé
For tests we have often had wierd failures that are related to the runner environment. For example, tests that fail only with specific filesystem setups.
Quoted 8 lines
Since we don't control the runners directly, it is important to capture info about the environment to aid in failure diagnosis.
Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/buildtest-template.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Quoted 5 lines
Good idea,
Reviewed-by Pierrick Bouvier <[email protected]>Maybe add a ls -al /dev and id -a, to sort out potential right issues to access devices?
Yes, revisiting this, I'm adding those and doing many other changes to improve consistency & maintainability. v2 incoming...
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|