Page MenuHomePhabricator

Output of npm Jenkins tests is garbled
Closed, DuplicatePublic

Description

E.g. https://integration.wikimedia.org/ci/job/mwgate-node10-docker/71325/console :

22:00:51 Running "eslint:all" (eslint) task
22:00:55 
22:00:55 /src/modules/help/ext.growthExperiments.HelpPanelSearchWidget.js
22:00:55   31warning  jQuery collection names must match the variablePattern  no-jquery/variable-pat
22:00:55 
22:00:55 /src/modules/homepage/ext.growthExperiments.Homepage.Mentorship.js
22:00:55   9warning  jQuery collection names must match the variablePattern  no-jquery/variable-pat
22:00:55 
22:00:55 /src/modules/homepage/ext.growthExperiments.Homepage.Mobile.js
22:00:55   34warning  jQuery collection names must match the variablePattern  no-jquery/variable-pat
22:00:55 
22:00:55 /src/modules/homepage/suggestededits/ext.growthExperiments.Homepage.SuggestedEdits.js
22:00:55   204warning  This line has a length of 106. Maximum allowed is 100  max
22:00:55 
22:00:55 ✖ 4 problems (0 errors, 4 warnings)

There are color escape codes in the output, and the lines are cut off. Both can be very annoying, the first because it makes line numbers hard to read, the second because it hides the error name, which is needed for adding manual overrides in code.

Event Timeline

hashar added a subscriber: hashar.

At the time we had issues with the Jenkins ansicolor plugin apparently cause it did not recognizes the dim ANSI sequence. That got addressed by T254408