Add feature flag to pre-collapse job log sections
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
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?
Edited by 🤖 GitLab Bot 🤖