1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

Add service logs to CI build (#2730)

* Add service logs to CI build

* Run logs.sh in drone

* write to core dir

* Proper dir and better script

* Fix typo

* load logs.sh in regr
This commit is contained in:
Andrey Piskunov
2023-02-14 15:11:58 +02:00
committed by GitHub
parent 929f7b3922
commit a0893a57db
2 changed files with 35 additions and 0 deletions

22
core_dumps/logs.sh Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env sh
set -x
SCRIPT_LOCATION=$(dirname "$0")
STEP_NAME=$1
DIR_NAME="unit_logs"
mkdir "$DIR_NAME"
dump_log ()
{
name=$1
journalctl -u "$name".service > "$DIR_NAME"/"${name}_${STEP_NAME}".log
}
dump_log "mcs-ddlproc"
dump_log "mcs-dmlproc"
dump_log "mcs-loadbrm"
dump_log "mcs-primproc"
dump_log "mcs-workernode@1"
dump_log "mcs-writeengineserver"