[已抛弃] Gaps from backend in job log traces
## 上游Issue
[gitlab#341769](https://gitlab.com/gitlab-org/gitlab/-/issues/341769): Collapsible sections are not being closed by the backend, also certain lines that belong to collapsible sections are returned way after a section was closed.
## 工作进展
MR[gitlab-runner!3375](https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3375)已提交,但是因为上游自己又开始[纠结如何修复这个问题](https://gitlab.com/gitlab-org/gitlab/-/issues/341769#note_901813503),难以推进,关闭作罢。
## 问题背景
* 问题相关于[epic&6570](https://gitlab.com/groups/gitlab-org/-/epics/6570)。
* 这个Issue是为了补全[gitlab-runner!3051](https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3051)的不足之处。
* 可用于测试的仓库:https://gitlab.com/nanmu42/ci-playground
* 这个问题阻挡了[`infinitely_collapsible_sections`](https://gitlab.com/gitlab-org/gitlab/-/issues/337408#note_700748867)的发布,这里面提到了[一些bash颜色控制符方面的问题](https://gitlab.com/gitlab-org/gitlab/-/issues/337408#note_780761130)需要验证,验证的`.gitlab-ci.yml`脚本在[这里](https://gitlab.com/jivanvl/jivanvl-job-tests/-/commit/33b6a6cde071a37e7afd7cc254ddf4edfa26e183).
* [`infinitely_collapsible_sections`的实现在这里](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65496)
* [`infinitely_collapsible_sections`](https://docs.gitlab.com/ee/ci/jobs/#custom-collapsible-sections)这个特性和script line section都使用了section这个特性,他们之间是干涉的。
issue