Page MenuHomePhabricator

ContentTranslation template adaptation tests fail
Closed, ResolvedPublic

Description

In recent commits, such as https://gerrit.wikimedia.org/r/#/c/248517/ , the QUnit tests fail. They cannot load data files.

It works in my laptop. I suspect that it has to do something with the way Jenkins runs QUnit tests.

Unbreak Now because it blocks our development work.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 26 2015, 9:02 AM
Amire80 renamed this task from Template adaptation tests to ContentTranslation template adaptation tests fail.Oct 26 2015, 9:02 AM
Amire80 set Security to None.
Amire80 moved this task from Needs Triage to CX7 on the ContentTranslation board.
Amire80 updated the task description. (Show Details)Oct 26 2015, 11:15 AM
hashar claimed this task.Oct 26 2015, 11:20 AM

I am investigating. The mwext-ContentTranslation-qunit started falling today on unrelated changes and ran on different slaves (trusty 1012, 1014 and 1016).

Note this specific job mwext-ContentTranslation-qunit uses the extensions:

  • ContentTranslation
  • EventLogging
  • UniversalLanguageSelector

I will try to migrate it to the job mediawiki-extensions-qunit which is shared by multiple extensions as listed at: https://github.com/wikimedia/integration-config/blob/1a11b149a06759bcccf30f3ab63b523c1e8eef3d/jjb/mediawiki.yaml#L323-L353 Ie:

AbuseFilter
Babel
Cards
CheckUser
Cite
cldr
ConfirmEdit
Echo
Elastica
EventLogging
Flow
Gather
GlobalCssJs
GuidedTour
JsonConfig
MobileApp
MobileFrontend
MwEmbedSupport
ParserFunctions
SandboxLink
SpamBlacklist
Thanks
TimedMediaHandler
UniversalLanguageSelector
VisualEditor
ZeroBanner
ZeroPortal

I have sent a dummy test change https://gerrit.wikimedia.org/r/#/c/248855/ as for the other failures, chromium reports:

WARN [web-server]: 404: /wiki/extensions/ContentTranslation/tests/qunit/data/template-lang-ml.html
WARN [web-server]: 404: /wiki/extensions/ContentTranslation/tests/qunit/data/template-lang-ml.html
WARN [web-server]: 404: /wiki/extensions/ContentTranslation/tests/qunit/data/template-es-taxocaixa.html
WARN [web-server]: 404: /wiki/extensions/ContentTranslation/tests/qunit/data/template-cita-noticia-es.html

Which are indeed files the extension directory /tests/qunit/data/.

I triggered a build of the job that is shared by multiple extensions (mediawiki-extensions-qunit mentioned above) by commenting in Gerrit: check experimental. It fails with the same 404.

Looking at the last successful build at 23 oct. 2015 21:51:41 UTC those 404 are not showing up. Rerunning that successful job fails the build with the above 404 errors.

So something probably changed either in:

  • the way we setup MediaWiki / apache
  • MediaWiki core and how it exposes material from extensions
  • Maybe /wiki/ used to be something different

The build attach the LocalSettings.php which has roughly:

$wgScriptPath = "/wiki";
$wgResourceBasePath = $wgScriptPath;

### Loading of extensions

$wgServer = 'http://localhost:9412';
$wgScriptPath = '/jenkins-mwext-ContentTranslation-qunit-3612';
$wgScript = $wgStylePath = $wgLogo = false;
$wgEnableJavaScriptTest = true;

The last four lines are appended by the QUnit job and happen AFTER extensions have been loaded. Note how wgScriptPath is different:

- $wgScriptPath = "/wiki";
+ $wgScriptPath = '/jenkins-mwext-ContentTranslation-qunit-3612';

I suspect that is why the extensions request /wiki/extensions/ContentTranslation/tests/qunit/data/template-lang-ml.html instead of /jenkins-mwext-ContentTranslation-qunit-3612/extensions/ContentTranslation/tests/qunit/data/template-lang-ml.html.

In tests/qunit/tools/ext.cx.tools.template.test.js we have:

var testDataPath = mw.config.get( 'wgExtensionAssetsPath' ) +
        '/ContentTranslation/tests/qunit/data/';
$fixture.load( testDataPath + 'template-lang-ml.html', function () { ... }

$wgExtensionAssetsPaths defaults to "{$wgResourceBasePath}/extensions".

Amire80 moved this task from Backlog to In Progress on the LE-CX7-Sprint 2 board.Oct 26 2015, 11:59 AM

Mmm... is there anything that we can do? Or is it in CI configuration or infrastructure?

In the shared job mediawiki-extensions-qunit I noticed a similar error:

404: /wiki/extensions/Thanks/WhiteSmiley.png

The first occurrence is Oct 23th 12:42 UTC which has been triggered by the first patchset of https://gerrit.wikimedia.org/r/#/c/248321/ for mediawiki/core

installer: Define $wgResourceBasePath in LocalSettings.php

Bug: T116374
Bug: T75031
Change-Id: I459c1097ed7048c3fe24e636e9ea22ec2e3b2675

Builds that matches that 404 error:

hashar@gallium:/var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds$ grep -l WhiteSmiley.png /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/*/log |xargs -n1 ls -l
-rw-rw-r-- 1 jenkins jenkins 609223 Oct 23 12:42 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17299/log
-rw-rw-r-- 1 jenkins jenkins 609224 Oct 23 18:47 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17342/log
-rw-rw-r-- 1 jenkins jenkins 609708 Oct 23 21:43 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17382/log
-rw-rw-r-- 1 jenkins jenkins 607989 Oct 23 22:09 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17389/log
-rw-rw-r-- 1 jenkins jenkins 609257 Oct 23 22:18 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17393/log
-rw-rw-r-- 1 jenkins jenkins 609389 Oct 23 22:21 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17394/log
-rw-rw-r-- 1 jenkins jenkins 609092 Oct 23 22:24 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17395/log
-rw-rw-r-- 1 jenkins jenkins 608577 Oct 23 22:26 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17396/log
-rw-rw-r-- 1 jenkins jenkins 609059 Oct 23 22:30 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17398/log
-rw-rw-r-- 1 jenkins jenkins 609240 Oct 23 22:31 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17399/log
-rw-rw-r-- 1 jenkins jenkins 609207 Oct 23 22:34 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17400/log
-rw-rw-r-- 1 jenkins jenkins 609316 Oct 23 22:35 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17401/log
-rw-rw-r-- 1 jenkins jenkins 609097 Oct 23 22:44 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17402/log
-rw-rw-r-- 1 jenkins jenkins 608573 Oct 23 22:46 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17403/log
-rw-rw-r-- 1 jenkins jenkins 609198 Oct 23 22:47 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17404/log
-rw-rw-r-- 1 jenkins jenkins 607024 Oct 23 23:17 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17405/log
-rw-rw-r-- 1 jenkins jenkins 609278 Oct 23 23:19 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17406/log
-rw-rw-r-- 1 jenkins jenkins 609227 Oct 23 23:22 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17407/log
-rw-rw-r-- 1 jenkins jenkins 609148 Oct 23 23:24 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17408/log
-rw-rw-r-- 1 jenkins jenkins 609250 Oct 23 23:24 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17409/log
-rw-rw-r-- 1 jenkins jenkins 609195 Oct 23 23:23 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17410/log
-rw-rw-r-- 1 jenkins jenkins 608456 Oct 23 23:25 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17411/log
-rw-rw-r-- 1 jenkins jenkins 609133 Oct 23 23:28 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17412/log
-rw-rw-r-- 1 jenkins jenkins 607892 Oct 23 23:40 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17414/log
-rw-rw-r-- 1 jenkins jenkins 609082 Oct 23 23:43 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17415/log
-rw-rw-r-- 1 jenkins jenkins 608546 Oct 23 23:49 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17417/log
-rw-rw-r-- 1 jenkins jenkins 608497 Oct 23 23:52 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17418/log
-rw-rw-r-- 1 jenkins jenkins 609184 Oct 23 23:54 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17419/log
-rw-rw-r-- 1 jenkins jenkins 609230 Oct 23 23:54 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17420/log
-rw-rw-r-- 1 jenkins jenkins 609159 Oct 24 00:02 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17421/log
-rw-rw-r-- 1 jenkins jenkins 607799 Oct 24 00:12 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17424/log
-rw-rw-r-- 1 jenkins jenkins 609226 Oct 24 00:21 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17425/log
-rw-rw-r-- 1 jenkins jenkins 609706 Oct 24 00:35 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17426/log
-rw-rw-r-- 1 jenkins jenkins 608552 Oct 24 01:00 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17427/log
-rw-rw-r-- 1 jenkins jenkins 607976 Oct 24 01:08 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17428/log
-rw-rw-r-- 1 jenkins jenkins 609188 Oct 24 01:15 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17429/log
-rw-rw-r-- 1 jenkins jenkins 609176 Oct 24 01:36 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17430/log
-rw-rw-r-- 1 jenkins jenkins 609644 Oct 24 01:48 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17431/log
-rw-rw-r-- 1 jenkins jenkins 607808 Oct 24 01:51 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17432/log
-rw-rw-r-- 1 jenkins jenkins 609253 Oct 24 02:28 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17433/log
-rw-rw-r-- 1 jenkins jenkins 609212 Oct 24 03:18 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17434/log
-rw-rw-r-- 1 jenkins jenkins 609211 Oct 24 03:28 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17435/log
-rw-rw-r-- 1 jenkins jenkins 609735 Oct 24 04:05 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17437/log
-rw-rw-r-- 1 jenkins jenkins 609188 Oct 24 04:08 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17439/log
-rw-rw-r-- 1 jenkins jenkins 609195 Oct 24 04:09 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17440/log
-rw-rw-r-- 1 jenkins jenkins 610410 Oct 24 04:12 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17441/log
-rw-rw-r-- 1 jenkins jenkins 609213 Oct 24 04:16 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17442/log
-rw-rw-r-- 1 jenkins jenkins 609162 Oct 24 04:31 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17443/log
-rw-rw-r-- 1 jenkins jenkins 609212 Oct 24 04:53 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17445/log
-rw-rw-r-- 1 jenkins jenkins 609158 Oct 24 04:55 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17447/log
-rw-rw-r-- 1 jenkins jenkins 640109 Oct 24 05:26 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17449/log
-rw-rw-r-- 1 jenkins jenkins 609139 Oct 24 05:29 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17450/log
-rw-rw-r-- 1 jenkins jenkins 609106 Oct 24 05:31 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17451/log
-rw-rw-r-- 1 jenkins jenkins 609048 Oct 24 07:05 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17456/log
-rw-rw-r-- 1 jenkins jenkins 609060 Oct 24 07:19 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17457/log
-rw-rw-r-- 1 jenkins jenkins 609216 Oct 24 07:20 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17458/log
-rw-rw-r-- 1 jenkins jenkins 609801 Oct 24 07:33 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17459/log
-rw-rw-r-- 1 jenkins jenkins 609907 Oct 24 07:36 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17460/log
-rw-rw-r-- 1 jenkins jenkins 609128 Oct 24 07:51 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17461/log
-rw-rw-r-- 1 jenkins jenkins 606690 Oct 24 08:12 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17462/log
-rw-rw-r-- 1 jenkins jenkins 609128 Oct 24 08:13 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17463/log
-rw-rw-r-- 1 jenkins jenkins 609185 Oct 24 10:44 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17465/log
-rw-rw-r-- 1 jenkins jenkins 609872 Oct 24 14:55 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17467/log
-rw-rw-r-- 1 jenkins jenkins 609179 Oct 24 14:58 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17468/log
-rw-rw-r-- 1 jenkins jenkins 609067 Oct 24 15:13 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17469/log
-rw-rw-r-- 1 jenkins jenkins 609765 Oct 24 17:26 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17471/log
-rw-rw-r-- 1 jenkins jenkins 610341 Oct 24 17:33 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17472/log
-rw-rw-r-- 1 jenkins jenkins 609176 Oct 24 17:32 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17473/log
-rw-rw-r-- 1 jenkins jenkins 607297 Oct 24 18:40 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17476/log
-rw-rw-r-- 1 jenkins jenkins 609180 Oct 24 18:53 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17477/log
-rw-rw-r-- 1 jenkins jenkins 609786 Oct 24 19:18 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17479/log
-rw-rw-r-- 1 jenkins jenkins 609142 Oct 24 19:21 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17480/log
-rw-rw-r-- 1 jenkins jenkins 608364 Oct 24 19:58 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17481/log
-rw-rw-r-- 1 jenkins jenkins 606671 Oct 24 20:14 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17482/log
-rw-rw-r-- 1 jenkins jenkins 609704 Oct 24 20:14 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17483/log
-rw-rw-r-- 1 jenkins jenkins 606621 Oct 24 20:16 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17484/log
-rw-rw-r-- 1 jenkins jenkins 609080 Oct 24 20:37 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17485/log
-rw-rw-r-- 1 jenkins jenkins 608161 Oct 24 21:24 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17486/log
-rw-rw-r-- 1 jenkins jenkins 609186 Oct 24 21:30 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17487/log
-rw-rw-r-- 1 jenkins jenkins 609042 Oct 24 21:56 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17488/log
-rw-rw-r-- 1 jenkins jenkins 606448 Oct 24 21:57 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17489/log
-rw-rw-r-- 1 jenkins jenkins 609242 Oct 24 22:08 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17490/log
-rw-rw-r-- 1 jenkins jenkins 607948 Oct 24 22:11 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17491/log
-rw-rw-r-- 1 jenkins jenkins 607290 Oct 24 22:14 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17492/log
-rw-rw-r-- 1 jenkins jenkins 609277 Oct 24 22:16 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17493/log
-rw-rw-r-- 1 jenkins jenkins 607911 Oct 24 22:17 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17494/log
-rw-rw-r-- 1 jenkins jenkins 608621 Oct 24 22:27 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17495/log
-rw-rw-r-- 1 jenkins jenkins 610238 Oct 24 22:28 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17496/log
-rw-rw-r-- 1 jenkins jenkins 609842 Oct 24 22:30 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17497/log
-rw-rw-r-- 1 jenkins jenkins 609544 Oct 24 22:30 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17498/log
-rw-rw-r-- 1 jenkins jenkins 609116 Oct 24 22:45 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17499/log
-rw-rw-r-- 1 jenkins jenkins 609656 Oct 24 23:05 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17500/log
-rw-rw-r-- 1 jenkins jenkins 608602 Oct 24 23:06 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17501/log
-rw-rw-r-- 1 jenkins jenkins 609045 Oct 24 23:29 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17502/log
-rw-rw-r-- 1 jenkins jenkins 609212 Oct 24 23:31 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17503/log
-rw-rw-r-- 1 jenkins jenkins 607254 Oct 24 23:35 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17504/log
-rw-rw-r-- 1 jenkins jenkins 609191 Oct 24 23:45 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17505/log
-rw-rw-r-- 1 jenkins jenkins 609067 Oct 25 00:15 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17506/log
-rw-rw-r-- 1 jenkins jenkins 609195 Oct 25 00:15 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17507/log
-rw-rw-r-- 1 jenkins jenkins 609091 Oct 25 00:23 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17508/log
-rw-rw-r-- 1 jenkins jenkins 607214 Oct 25 04:01 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17509/log
-rw-rw-r-- 1 jenkins jenkins 609264 Oct 25 06:48 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17510/log
-rw-rw-r-- 1 jenkins jenkins 620828 Oct 25 06:49 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17511/log
-rw-rw-r-- 1 jenkins jenkins 609207 Oct 25 06:53 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17512/log
-rw-rw-r-- 1 jenkins jenkins 607264 Oct 25 07:00 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17513/log
-rw-rw-r-- 1 jenkins jenkins 609950 Oct 25 07:02 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17514/log
-rw-rw-r-- 1 jenkins jenkins 622627 Oct 25 07:15 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17515/log
-rw-rw-r-- 1 jenkins jenkins 620810 Oct 25 07:14 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17516/log
-rw-rw-r-- 1 jenkins jenkins 620858 Oct 25 07:17 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17517/log
-rw-rw-r-- 1 jenkins jenkins 623119 Oct 25 07:17 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17518/log
-rw-rw-r-- 1 jenkins jenkins 620327 Oct 25 07:18 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17519/log
-rw-rw-r-- 1 jenkins jenkins 609194 Oct 25 10:42 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17520/log
-rw-rw-r-- 1 jenkins jenkins 609092 Oct 25 11:16 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17521/log
-rw-rw-r-- 1 jenkins jenkins 609766 Oct 25 11:35 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17522/log
-rw-rw-r-- 1 jenkins jenkins 607226 Oct 25 11:42 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17523/log
-rw-rw-r-- 1 jenkins jenkins 609653 Oct 25 13:25 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17524/log
-rw-rw-r-- 1 jenkins jenkins 620220 Oct 25 14:22 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17525/log
-rw-rw-r-- 1 jenkins jenkins 620357 Oct 25 14:24 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17526/log
-rw-rw-r-- 1 jenkins jenkins 619593 Oct 25 14:26 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17527/log
-rw-rw-r-- 1 jenkins jenkins 619653 Oct 25 14:28 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17528/log
-rw-rw-r-- 1 jenkins jenkins 620160 Oct 25 14:36 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17529/log
-rw-rw-r-- 1 jenkins jenkins 608317 Oct 25 15:37 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17530/log
-rw-rw-r-- 1 jenkins jenkins 620304 Oct 25 16:41 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17531/log
-rw-rw-r-- 1 jenkins jenkins 609568 Oct 25 18:27 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17533/log
-rw-rw-r-- 1 jenkins jenkins 607271 Oct 25 18:29 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17534/log
-rw-rw-r-- 1 jenkins jenkins 609767 Oct 25 18:30 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17535/log
-rw-rw-r-- 1 jenkins jenkins 609197 Oct 25 18:30 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17536/log
-rw-rw-r-- 1 jenkins jenkins 609225 Oct 25 18:33 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17537/log
-rw-rw-r-- 1 jenkins jenkins 609196 Oct 25 18:38 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17538/log
-rw-rw-r-- 1 jenkins jenkins 607804 Oct 25 18:55 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17539/log
-rw-rw-r-- 1 jenkins jenkins 607777 Oct 25 19:16 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17540/log
-rw-rw-r-- 1 jenkins jenkins 609112 Oct 25 19:19 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17542/log
-rw-rw-r-- 1 jenkins jenkins 609214 Oct 25 19:28 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17543/log
-rw-rw-r-- 1 jenkins jenkins 607325 Oct 25 19:29 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17544/log
-rw-rw-r-- 1 jenkins jenkins 609146 Oct 25 19:30 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17545/log
-rw-rw-r-- 1 jenkins jenkins 609533 Oct 25 19:40 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17546/log
-rw-rw-r-- 1 jenkins jenkins 607880 Oct 25 20:06 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17547/log
-rw-rw-r-- 1 jenkins jenkins 609577 Oct 25 20:24 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17548/log
-rw-rw-r-- 1 jenkins jenkins 609309 Oct 25 20:24 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17549/log
-rw-rw-r-- 1 jenkins jenkins 609172 Oct 25 21:04 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17551/log
-rw-rw-r-- 1 jenkins jenkins 609300 Oct 25 21:12 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17552/log
-rw-rw-r-- 1 jenkins jenkins 609274 Oct 25 21:20 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17553/log
-rw-rw-r-- 1 jenkins jenkins 609288 Oct 25 21:21 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17554/log
-rw-rw-r-- 1 jenkins jenkins 606605 Oct 25 21:24 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17555/log
-rw-rw-r-- 1 jenkins jenkins 609821 Oct 25 22:09 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17556/log
-rw-rw-r-- 1 jenkins jenkins 609162 Oct 25 22:10 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17557/log
-rw-rw-r-- 1 jenkins jenkins 609209 Oct 25 23:08 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17559/log
-rw-rw-r-- 1 jenkins jenkins 609128 Oct 25 23:08 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17560/log
-rw-rw-r-- 1 jenkins jenkins 610444 Oct 25 23:11 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17561/log
-rw-rw-r-- 1 jenkins jenkins 607996 Oct 25 23:10 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17562/log
-rw-rw-r-- 1 jenkins jenkins 609180 Oct 26 02:07 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17563/log
-rw-rw-r-- 1 jenkins jenkins 607895 Oct 26 02:09 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17564/log
-rw-rw-r-- 1 jenkins jenkins 609196 Oct 26 02:32 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17565/log
-rw-rw-r-- 1 jenkins jenkins 609198 Oct 26 03:07 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17567/log
-rw-rw-r-- 1 jenkins jenkins 609252 Oct 26 06:52 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17568/log
-rw-rw-r-- 1 jenkins jenkins 608318 Oct 26 07:08 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17569/log
-rw-rw-r-- 1 jenkins jenkins 609332 Oct 26 07:22 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17570/log
-rw-rw-r-- 1 jenkins jenkins 609171 Oct 26 07:28 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17571/log
-rw-rw-r-- 1 jenkins jenkins 609110 Oct 26 07:55 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17572/log
-rw-rw-r-- 1 jenkins jenkins 608528 Oct 26 08:02 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17573/log
-rw-rw-r-- 1 jenkins jenkins 607905 Oct 26 08:08 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17574/log
-rw-rw-r-- 1 jenkins jenkins 609179 Oct 26 08:09 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17575/log
-rw-rw-r-- 1 jenkins jenkins 608935 Oct 26 08:17 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17576/log
-rw-rw-r-- 1 jenkins jenkins 607935 Oct 26 09:34 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17577/log
-rw-rw-r-- 1 jenkins jenkins 609134 Oct 26 10:21 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17578/log
-rw-rw-r-- 1 jenkins jenkins 609136 Oct 26 10:26 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17579/log
-rw-rw-r-- 1 jenkins jenkins 606557 Oct 26 10:32 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17580/log
-rw-rw-r-- 1 jenkins jenkins 607257 Oct 26 10:40 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17581/log
-rw-rw-r-- 1 jenkins jenkins 609173 Oct 26 10:48 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17583/log
-rw-rw-r-- 1 jenkins jenkins 655401 Oct 26 11:26 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17584/log
-rw-rw-r-- 1 jenkins jenkins 609209 Oct 26 12:25 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17585/log
-rw-rw-r-- 1 jenkins jenkins 609745 Oct 26 13:23 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/17589/log
-rw-rw-r-- 1 jenkins jenkins 655401 Oct 26 11:26 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/lastFailedBuild/log
-rw-rw-r-- 1 jenkins jenkins 609745 Oct 26 13:23 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/lastStableBuild/log
-rw-rw-r-- 1 jenkins jenkins 609745 Oct 26 13:23 /var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds/lastSuccessfulBuild/log
hashar@gallium:/var/lib/jenkins/jobs/mediawiki-extensions-qunit/builds$

What https://gerrit.wikimedia.org/r/#/c/248321/ does is that in LocalSettings.php we now have:

## The relative URL path to downloadable resources (images, scripts, etc.)
$wgResourceBasePath = "$wgScriptPath";

Which is set before the extensions are loaded. But Jenkins does not overload it:

$wgServer = 'http://localhost:9412';
$wgScriptPath = '/jenkins-mwext-ContentTranslation-qunit-3612';
$wgScript = $wgStylePath = $wgLogo = false;
$wgEnableJavaScriptTest = true;

I am not sure why $wgResourceBasePath has to be set explicitly by the installer. Gotta dig in T75031 and T116374.

One sure thing, the LocalSettings crafted by Jenkins needs to override it as well.

Change 248883 had a related patch set uploaded (by Hashar):
Install mw with scriptpath for qunit jobs

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

Change 248883 abandoned by Hashar:
Install mw with scriptpath for qunit jobs

Reason:
Does not fix the selenium test and this introduce an infinite loop :-/

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

Change 248894 had a related patch set uploaded (by Hashar):
QUnit job autodetect wgResourceBasePath again

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

Change 248894 merged by jenkins-bot:
QUnit job autodetect wgResourceBasePath again

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

Amire80 moved this task from In Progress to Done on the LE-CX7-Sprint 2 board.Oct 26 2015, 6:29 PM
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptAug 24 2018, 7:18 AM