Ideas of things to scan for:
- Any request resulting in an error response (404 Not Found, 500 Internal Error, etc.).
- Network requests made to third-party domains (images, stylesheets, scripts, xhr, etc.)
However it would be great to have automated tests running after changes in common.js and gadgets. Such general tests can at least validate no external resource is loaded, or no invalid syntax is added.
The simplest option is to run it outside MW (such as a script in labs that runs X times a day), but an extension to do it while editing would be even better...
I just runned a simple phantomjs script on all wikipedia languages to catch simple errors:
ERROR: ReferenceError: Can't find variable: ta
ERROR: TypeError: 'null' is not an object (evaluating 'document.getElementById('mw-vector-current-variant').innerHTML=wgULS("Кирил","Latın","توتە")')
-> https://bits.wikimedia.org/kk.wikipedia.org/load.php?debug=false&lang=kk&modules=site&only=scripts&skin=vector&*: 9
anyone wants to fix them? :)
From comment 14 at T71445:
Example for errors across wikis
Maybe it is a bit off-topic but here are some cases of errors across wikis in simple read/edit transaction using phantomJS