Last modified: 2013-11-19 14:22:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58483, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56483 - reasoning about javascript loading and test failures
reasoning about javascript loading and test failures
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: browser-test-bug
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-01 19:22 UTC by Chris McMahon
Modified: 2013-11-19 14:22 UTC (History)
5 users (show)

See Also:
Web browser: Google Chrome
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
normal operation (94.37 KB, image/png)
2013-11-01 19:23 UTC, Chris McMahon
Details
too many calls to load.php (168.14 KB, image/png)
2013-11-01 19:23 UTC, Chris McMahon
Details

Description Chris McMahon 2013-11-01 19:22:29 UTC
WIP: 

I am seeing a number of failures in the Selenium tests when running for Chrome. The failures seem to be caused by many calls to ResourceLoader, many repeated, many seemingly unnecessary, and some of these calls fail.  Other calls to other unexpected sources are also evident, this is just a single example.  

Each failed test shows a different set of calls to load.php.  Here is one example:

A normal load of UW on beta commons has 2 calls for two jquery things, one for the spinner and one for ULS. See screen shot. 

But a failed automated test shows multiple repeated calls for jquery.ui.button. See screen shot. https://saucelabs.com/jobs/8fd3f6a483db46da9c4cfbbdcf7d2449

A reference to jquery.ui.button is found only one place in all of the UploadWizard source code, line 473 of UploadWizardHooks.php.  It seem to be a dependency for ext.uploadWizard.campaign

What causes UploadWizard to make multiple calls for a jquery feature jquery.ui.button that it would not normally need?

Under what circumstances would this happen to a normal user?

When UW makes these multiple calls, it seems that what is returned from some of those calls is corrupt, possibly truncated, since the errors tend to be 'Uncaught SyntaxError: Unexpected token ILLEGAL' and similar. 

I think VisualEditor has a similar problem, possibly indicated in https://bugzilla.wikimedia.org/show_bug.cgi?id=55801 (see screen shot there)
Comment 1 Chris McMahon 2013-11-01 19:23:12 UTC
Created attachment 13658 [details]
normal operation
Comment 2 Chris McMahon 2013-11-01 19:23:43 UTC
Created attachment 13659 [details]
too many calls to load.php
Comment 3 Chris McMahon 2013-11-19 14:22:44 UTC
no longer happening as of about Nov 15

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links