Last modified: 2013-11-19 14:21:52 UTC
Created attachment 13690 [details] abnormal load.php requests this is essentially the same problem as shown with UploadWizard in https://bugzilla.wikimedia.org/show_bug.cgi?id=56483 When run in the Sauce Labs environment, tests for VisualEditor for Chrome display many many calls to ResourceLoader that are not shown in normal operation, nor in a browser test in a local environment. At least some of these calls to load.php fail with javascript errors, thus causing VE to fail and the test to fail. One recent example is shown at https://wmf.ci.cloudbees.com/job/VisualEditor-en.wikipedia.beta.wmflabs.org-linux-chrome/117/testReport/junit/(root)/VisualEditor%20Links/Enter_non_existing_link/ Here we see two distinct calls for the same code at ext.echo.alert, the second of which fails, see screen shot. In detail, the first call succeeds, the second fails: [200 OK] GET http://bits.beta.wmflabs.org/en.wikipedia.beta.wmflabs.org/load.php?debug=false&lang=en&modules=ext.echo.alert%2Cbase%2Cdesktop%2Coverlay&skin=vector&version=20131021T193233Z&* [200 OK] GET http://bits.beta.wmflabs.org/en.wikipedia.beta.wmflabs.org/load.php?debug=false&lang=en&modules=ext.echo.alert%2Cbase%2Cdesktop%2Coverlay&skin=vector&version=20131021T193233Z&* Uncaught SyntaxError: Unexpected token ILLEGAL Also in this particular run of the test find VE loading up code for ArticleFeedback and for Gadget code for DelAutoDropdown. VE loading gadget code in normal operation has been documented, see screen shot for invisible_iframe
Created attachment 13691 [details] gadget code in VE in normal operation
here is an example of a test for Flow on Chrome that repeats the same GET twice for VE code. the first succeeds, the second gives an error: [200 OK] GET http://bits.beta.wmflabs.org/en.wikipedia.beta.wmflabs.org/load.php?debug=false&lang=en&modules=ext.visualEditor.base%2Ccore%2Cdata%2Cicons-vector%2Cstandalone%7Cext.visualEditor.viewPageTarget.icons-vector%7Coojs%2Coojs-ui%2Crangy%7Cunicodejs.wordbreak&skin=vector&version=20131102T010844Z&* [200 OK] GET http://bits.beta.wmflabs.org/en.wikipedia.beta.wmflabs.org/load.php?debug=false&lang=en&modules=ext.visualEditor.base%2Ccore%2Cdata%2Cicons-vector%2Cstandalone%7Cext.visualEditor.viewPageTarget.icons-vector%7Coojs%2Coojs-ui%2Crangy%7Cunicodejs.wordbreak&skin=vector&version=20131102T010844Z&* Uncaught SyntaxError: Unexpected end of input Ref: https://saucelabs.com/jobs/e0b3ed7901a14cfdb56b745c6938c12d
Unless you can reproduce this outside of SauceLabs, I'm inclined to believe this is simply Chrome in SauceLabs being broken.
This is no longer happening.