RFE: Consider using "collapsible sections" in tests.sh steps
tests.sh currently runs in 5 steps, each taking considerable amount of time and generating long logs. E.g. One place a collapsible section might make sense is in this area of a job log:
https://gitlab.com/cki-project/pipeline-definition/-/jobs/5676295555#L1032
Just a thought. And feel free to just close if not interested.
GitLab has the ability to collapse sections of the job logs. Which can help to hide unimportant things if desired.
https://docs.gitlab.com/ee/ci/jobs/#custom-collapsible-sectionsExample code that can do it:
function fold_start {
local id=${1}; shift; echo -e "\e[0Ksection_start:`date +%s`:${id}[collapsed=true]\r\e[0K${@}"
}
function fold_end {
echo -e "\e[0Ksection_end:`date +%s`:$1\r\e[0K"
}
function fold_job {
local timestamp="$(date +%s)"
fold_start "folded_${timestamp}" "${@}"
"${@}"
result=$?
fold_end "folded_${timestamp}"
return $result
}
So can call for example: fold_job dnf install -y git
Edited by Tales da Aparecida