To Reproduce

Steps to reproduce the behavior:

  1. Go to https://firefox-ci-tc.services.mozilla.com/tasks/create
  2. Create a docker-worker task with the payload:
payload:
  image: debian:latest
  command:
    - tput
    - sgr0
  maxRunTime: 7200
  1. Once the task is completed, open its log.
  2. See below

Actual output

[taskcluster 2022-11-23 01:11:46.795Z] === Task Starting ===
(B[taskcluster 2022-11-23 01:11:47.669Z] === Task Finished ===

Expected output

[taskcluster 2022-11-23 01:11:46.795Z] === Task Starting ===
[taskcluster 2022-11-23 01:11:47.669Z] === Task Finished ===

Taskcluster version 44.23.4

Additional context The sgr0 escape sequence essentially resets things that have been done by other escape sequences, like colors (which the log viewer supports just fine, BTW), bold, etc. Being an escape sequence, it also shouldn't result in characters being displayed, but it currently does. It does seem to (at least) reset the color, though.

The terminal emulator in interactive tasks (shell.html) does not have this problem.

0

Hi! Thanks for reporting this. View log is using this react-lazylog component to render logs. I checked it, and it is not using external libraries for parsing, so we'd have to patch that component to add support for additional sequences.

At the moment we don't have access to that project, and I think it is no longer maintained.

0
© 2022 pullanswer.com - All rights reserved.