-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Possible issue with launcher, color formatting, Jenkins, and Sauce Connect #1131
Comments
I think you're right about the culprit line. The launcher doesn't respect turning off colors in the reporter - it might be difficult to do this since how to turn off colors depends on which framework is being used. I'm curious why this actually crashes things, as opposed to just outputting some ugly characters in your logs. Looks like a special reporter is blowing up? |
Good question @juliemr, I'm using a Jenkins module that parses jUnit tests results into Jenkins job data. The module uses regex to parse the xml. The extra characters cause the To clarify, the protractor tests run fine. The test fails because Jenkins chokes parsing the resulting xml. Maybe this is a bug for jasmine junit reporter? |
@hankduan can you take a look at this and see if we can turn off the color reset in some intelligent way if the reporter is not using colors? |
@facultymatt Can you verify this fix works for your issue? |
This was fixed a while ago - I'm closing this issue. Please open a new one if problems persist. |
Overview
This issue could be caused by many things but starting here. I am attempting to run protractor on Jenkins with Sauce Connect. I am outputting the sauce id and job name like so:
All tests pass, but Jenkins has trouble parsing the test results. The log is below, but specifically the line in question is:
Although you can't see it, the Regex parsing is failing because of symbols added for coloring the console output. Specially
[0m
is causing the error.Previously this Jenkins job worked fine. You can see the job name being parsed before and after below:
It's worth noting the last successful test ran on June 13th. This would have been using protractor version 0.24.1. I pulled a diff for all changes since: 24248d6...master
Possible Cause
I think this line is the culprit. It's new since version 0.24.1 and does appear in the above diff: 24248d6...master#diff-ff5050d3c7f51fca90c4691a4599e852R317
Full Stack For Reference
The text was updated successfully, but these errors were encountered: