Skip to content

Add feature flag to pre-collapse job log sections

What does this MR do?

The executor and environment setup and teardown sections in job logs, although important, often make it harder to find the script output.

This change adds a new feature flag, FF_COLLAPSE_SETUP_LOG_SECTIONS, that when enabled, pre-collapses most of the sections in the job outputs to highlight the script output over the setup and teardown logs by using the pre-collapsed sections in job logs.

Why was this MR needed?

To improve experience of people who look at job logs.

What's the best way to test this MR?

Use the FF_COLLAPSE_SETUP_LOG_SECTIONS variable in a job or a runner and check the job log. The 'Preparing the "shell" executor', 'Preparing the environment', etc. sections are pre-collapsed, but 'Executing "step_script" stage of the job script' and "Running after_script" outputs are visible.

What are the relevant issue numbers?

gitlab#332342

gitlab#280771

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading