Skip to content

Fix style reset in job log

Fabio Pitino requested to merge fix-job-log-style-reset into master

What does this MR do?

This fixes the color reset in the job log that were missed when parsing the ANSI sequence \e[m which was considered empty and nothing was happening.

Instead we should treat \e[m same as \e[0m which is explicit style reset.

Related issue: #36335 (closed)

Screenshots

See related issue for screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Fabio Pitino

Merge request reports