Clarify documentation and investigate breaking changes in FF_SCRIPT_SECTIONS
# Original Issue: ## **Summary** The current behavior of the feature flag `FF_SCRIPT_SECTIONS` does not align with its official documentation, and it is unclear if this is a regression in functionality or outdated documentation. ## Current documentation > "When enabled, each script line from the .gitlab-ci.yml file is in a collapsible section in the job output, and shows the duration of each line. When the command spans multiple lines, the complete command is displayed within the job log output terminal." ## **Observed Behavior** 1\. **Missing Durations:** The duration for each script line is not displayed. (This might have been intentionally deprecated or superseded by FF_TIMESTAMPS, but the documentation was never updated). 2\. **Collapsible Sections Issue:** Only multi-line commands appear to generate a collapsible section. * Even when these sections appear, the output does not actually collapse as expected in the UI. ## **Expected Behavior** The job output should either match the documentation (showing durations and providing functional collapsible sections for all script lines) or the documentation should be updated to reflect the current intended behavior. ## **Steps to Reproduce** 1. Enable FF_SCRIPT_SECTIONS: true in a `.gitlab-ci.yml` file. 2. Run a job with both single-line and multi-line script commands. 3. Observe the job log output and the lack of line-by-line durations/collapsible sections. # Update: we've decided to update the documentation for now to reflect the current behavior of this feature flag (for more information, see !6519). This issue will remain open until we determine the intended behavior for this feature flag and implement it.
issue