grunt-saucelabs icon indicating copy to clipboard operation
grunt-saucelabs copied to clipboard

Error reporting is sometimes vague

Open cvrebert opened this issue 11 years ago • 11 comments

Example: https://travis-ci.org/twbs/bootstrap/jobs/18113236

Tested http://127.0.0.1:3000/js/tests/index.html
Platform: undefined
>> Test Error
Url undefined

(I had to use process of elimination to determine that this error was from OS X Chrome.)

cvrebert avatar Feb 03 '14 07:02 cvrebert

Hmm. Thanks. No matter what fails we should always have the test params available, so should be an easy fix. It's on my list.

Jonahss avatar Feb 03 '14 17:02 Jonahss

Any news on this? I've been bit by this in my Sauce Labs localForage branch. I'm looking to run tests on Sauce Labs, but the errors (that might be config-related, but I can't tell) aren't helpful at all.

tofumatt avatar May 17 '14 15:05 tofumatt

Yup, I've got the Sauce Api reporting job errors a little better now. I'll see how to add better error reporting on tasks.

You're just asking for better reporting through the terminal output?

Jonahss avatar May 19 '14 21:05 Jonahss

Yeah, that’d be great. Right now I get errors like this, and they’re hard to debug (especially on Travis). It’d be great to get more info, at least as an option.

https://www.dropbox.com/s/itiz1cktm6ow0e6/Screenshot%202014-05-20%2011.56.05.png

tofumatt avatar May 20 '14 15:05 tofumatt

Any update on this? In my case, 24/32 tests showed that log and in tests page they are marked as 'Finished'. More than that, what's the reason?

flowersinthesand avatar May 31 '14 06:05 flowersinthesand

This Finished status may also indicate that the test result exceeds 64KB, see #123. Does the error still persist if you remove some of your tests? Anyway, I'm currently working on a fix for this bug, will create a pull request in a couple of hours.

gvas avatar May 31 '14 06:05 gvas

Thanks for response. How can I check the test result's size? I'll try it out by removing some tests.

flowersinthesand avatar May 31 '14 06:05 flowersinthesand

Log into Sauce Labs then you can access the job's log file in the url https://saucelabs.com/jobs/ <jobid>/log.json. It consists of an array of log entries, you have to select the one in which your tests' descriptions appear. Then you have to check the size of the entry's result property.

gvas avatar May 31 '14 07:05 gvas

I tried by removing some tests but got no better. So 64KB applies to each entry's result property not log.json? My log.json's size is about 23KB or so. Hmm...

flowersinthesand avatar May 31 '14 07:05 flowersinthesand

Thanks @gvas. With 8.0.1 grouping tests per browser It seems that the issue is solved.

flowersinthesand avatar Jun 01 '14 05:06 flowersinthesand

Well, without grouping, the issue still occurs but the log in the first content doesn't appear. Anyway I'll group tests.

flowersinthesand avatar Jun 01 '14 06:06 flowersinthesand