There's something strange going with:
https://pt.m.wikipedia.org/wiki/Brasil
https://pt.m.wikipedia.org/wiki/Brasil?mobileaction=beta
that I pushed today to Jenkins. I checked locally first but I was sloppy, I only checked the result in our WebPageTest instance, I didn't verify the result in the API. What happens now is that we get errors like this:
Failing test: [TypeError: Cannot read property 'summary' of undefined]
I debugged it and the problem is that the WebPageTest API gives us an empty JSON object instead of the WebPageTest JSON. It only happens for these URLs. I added a catch also for errors (missed that before) but the API actually returns an empty JSON. When I look at the result pages on http://wpt.wmftest.org/ the runs looks perfectly fine.
I'll just do a test test with a unwrapped version of the WPT API just to verify that's not wrong in our code. I'll also add some cleaners checks in our code so we handle this better. Plus try to find out the root cause.