Page MenuHomePhabricator

No javascript loaded on test.wikidata
Closed, ResolvedPublic

Description

no javascript is being loaded on test.wikidata, including pages like Special:Search and Special:Preferences that have nothing wikidata specific.

I tried logging in with my bot account instead of my normal account, tried firefox + chrome, debug=true, disabling all gadgets, clearing local storage, double-checked my settings that javascript is indeed enabled in my browser, etc. and still no javascript.

I don't see the problem on test2

I notice js in the header is now wrapped like:

<script>var _mwq = _mwq || []; _mwq.push( function ( mw ) { mw.loader.implement("user.options",function($,jQuery){mw.user.options.set({"variant":"en"});},{},{},{});mw.loader.implement("user.tokens",function($,jQuery){mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\"});},{},{},{});
/* cache key: testwikidatawiki:resourceloader:filter:minify-js:7:94007ea073e20ad4a3cdce36b2f2e369 */ } );</script>

mediawiki.org and wikidata.org have like:

<script>if(window.mw){
mw.loader.implement("user.options",function($,jQuery){mw.user.options.set({"variant":"en"});},{},{},{});mw.loader.implement("user.tokens",function($,jQuery){mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\"});},{},{},{});
/* cache key: mediawikiwiki:resourceloader:filter:minify-js:7:94007ea073e20ad4a3cdce36b2f2e369 */
}</script>

i don't know if this is the issue or what.

Event Timeline

aude raised the priority of this task from to High.
aude updated the task description. (Show Details)
aude added a project: Wikidata.
aude subscribed.

this only happens if a page is served by mw1017 (where test.wikidata is being served). https://gerrit.wikimedia.org/r/#/c/196989/ is being tested there.

the issue shouldn't happen on wikidata but still need to watch out for this, and also not good to have test.wikidata broken since folks rely on it for testing purposes.

Change 197381 had a related patch set uploaded (by Aude):
Don't use bits for test.wikidata

https://gerrit.wikimedia.org/r/197381

because javascript works again on test.wikidata?

Ok, cool. I suppose the linked change is fixing the underlying issue?

yes it does. just need to deploy the patch now, maybe today...

Change 197381 merged by jenkins-bot:
Don't use bits for test.wikidata

https://gerrit.wikimedia.org/r/197381

aude removed a project: Patch-For-Review.