mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:56:38 +00:00
gitlab: greatly expand captured info about CI runner environment
To aid in debugging wierd CI failures we need greater information about the CI runner environment. It is usually container based and can have some unexpected characteristics that significantly differ from a developer's local environment. This captures the mount list, CPU model, memory information, device node lists, kernel info, user identity and all environment variables. Since this information can get quite large it is not emitted directly in the logs, rather it is exposed in job artifacts under the "ci-runner-env" directory. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> Link: https://lore.kernel.org/qemu-devel/20260624124657.2725376-7-berrange@redhat.com Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
This commit is contained in:
committed by
Pierrick Bouvier
parent
3fbac8fc83
commit
94809d5d9b
@@ -146,6 +146,7 @@ variables:
|
||||
expire_in: 7 days
|
||||
paths:
|
||||
- build/meson-logs
|
||||
- ci-runner-env
|
||||
reports:
|
||||
junit: build/meson-logs/*.junit.xml
|
||||
before_script:
|
||||
@@ -155,7 +156,15 @@ variables:
|
||||
# Prevent logs (if any) from prior build job artifacts
|
||||
# from being duplicated in the new job artifacts
|
||||
- rm -f build/meson-logs/*
|
||||
- test -f /packages.txt && cat /packages.txt
|
||||
- mkdir -p ci-runner-env
|
||||
- test -f /packages.txt && cp /packages.txt ci-runner-env/packages.txt
|
||||
- cp /proc/mounts ci-runner-env/mounts.txt
|
||||
- cp /proc/cpuinfo ci-runner-env/cpuinfo.txt
|
||||
- cp /proc/meminfo ci-runner-env/meminfo.txt
|
||||
- ls -l /dev > ci-runner-env/devices.txt
|
||||
- uname -a > ci-runner-env/kernel.txt
|
||||
- id -a > ci-runner-env/user.txt
|
||||
- printenv | sort > ci-runner-env/environ.txt
|
||||
- section_end setup
|
||||
|
||||
.base_meson_ccache_job_template:
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
paths:
|
||||
- build
|
||||
- .git-submodule-status
|
||||
- ci-runner-env
|
||||
exclude:
|
||||
- build/**/*.p
|
||||
- build/**/*.a.p
|
||||
@@ -83,6 +84,7 @@
|
||||
paths:
|
||||
- build/meson-logs
|
||||
- build/tests/functional/*/*/*.log
|
||||
- ci-runner-env
|
||||
reports:
|
||||
junit: build/meson-logs/*.junit.xml
|
||||
after_script:
|
||||
|
||||
Reference in New Issue
Block a user