CI: don't store kernel log, only check for coredumps.

The kernel log is uploaded automatically by the custom executor, no need
to upload it from inside the VM (and /mnt/artifacts is not mounted in
the new CI scripts).
This commit is contained in:
Daniel Zatovic
2024-01-24 13:43:11 +01:00
committed by Milan Broz
parent 193f8ff595
commit af35c93332
9 changed files with 10 additions and 12 deletions

View File

@@ -1,10 +1,8 @@
stages:
- test
.dump_kernel_log:
.fail_if_coredump_generated:
after_script:
- sudo dmesg > /mnt/artifacts/dmesg.log
- sudo journalctl > /mnt/artifacts/journalctl.log
- '[ "$(ls -A /var/coredumps)" ] && exit 1 || true'
include:

View File

@@ -1,8 +1,8 @@
.alpinelinux-dependencies:
variables:
DISTRO: cryptsetup-alpine-edge
after_script:
- '[ "$(ls -A /var/coredumps)" ] && exit 1 || true'
extends:
- .fail_if_coredump_generated
before_script:
- >
sudo apk add

View File

@@ -1,6 +1,6 @@
test-main-commit-job-annocheck:
extends:
- .dump_kernel_log
- .fail_if_coredump_generated
tags:
- libvirt
- cryptsetup-rhel-9

View File

@@ -2,7 +2,7 @@
variables:
DISTRO: cryptsetup-centos-stream-9
extends:
- .dump_kernel_log
- .fail_if_coredump_generated
before_script:
- >
sudo dnf -y -q install

View File

@@ -1,6 +1,6 @@
test-commit-job-csmock:
extends:
- .dump_kernel_log
- .fail_if_coredump_generated
tags:
- libvirt
- cryptsetup-rhel-9

View File

@@ -1,6 +1,6 @@
.debian-prep:
extends:
- .dump_kernel_log
- .fail_if_coredump_generated
variables:
DISTRO: cryptsetup-debian-12
before_script:

View File

@@ -2,7 +2,7 @@
variables:
DISTRO: cryptsetup-fedora-rawhide
extends:
- .dump_kernel_log
- .fail_if_coredump_generated
before_script:
- >
[ -z "$RUN_SYSTEMD_PLUGIN_TEST" ] ||

View File

@@ -2,7 +2,7 @@
variables:
DISTRO: cryptsetup-fedora-rawhide
extends:
- .dump_kernel_log
- .fail_if_coredump_generated
before_script:
- >
[ -z "$RUN_SYSTEMD_PLUGIN_TEST" ] ||

View File

@@ -1,6 +1,6 @@
.rhel-openssl-backend:
extends:
- .dump_kernel_log
- .fail_if_coredump_generated
before_script:
- >
sudo yum -y -q install