Page MenuHomePhabricator

Quibble api-testing stage no more run (npm ci): GrowthExperiments CI fails with sh: 1: mocha: not found
Closed, ResolvedPublic

Description

From https://integration.wikimedia.org/ci/job/quibble-apitests-only-vendor-php83/17923/console:

17:10:55 > api-testing
17:10:55 > mocha --timeout 20000 --require tests/api-testing/fixtures.cjs --parallel --recursive tests/api-testing
17:10:55 
17:10:55 sh: 1: mocha: not found

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

From wikimedia-operations on IRC:

17:14 <hashar> urbanecm: those GrowthExperiments patches are going to fail api-testing because we broke Quibble (I am rolling back the upgrade)
17:15 <urbanecm> hashar: just noticed :)
17:15 <urbanecm> managed to phabricatorize too, T422843
17:15 <+stashbot> T422843: GrowthExperiments CI fails with sh: 1: mocha: not found - https://phabricator.wikimedia.org/T422843
17:15 <hashar> AWESOME
17:15 <hashar> I'll reuse that task to fix Quibble
hashar subscribed.

This has been caused by Quibble being upgraded to 1.17.0. Specially due to T418743 Skip extra npm install for browser test only jobs. That is an optimization to prevent running needless npm ci and save building time so that is now only run for qunit.

The thing we missed is that the api testing is run from the root of mediawiki/core and triggers for extensions. So we do need to keep npm ci when using api tests :]

hashar renamed this task from GrowthExperiments CI fails with sh: 1: mocha: not found to Quibble api-testing stage no more run (npm ci): GrowthExperiments CI fails with sh: 1: mocha: not found.Apr 9 2026, 3:19 PM

Change #1269500 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] Revert "jjb: Upgrade Quibble jobs to 1.17.0"

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

Change #1269500 merged by jenkins-bot:

[integration/config@master] Revert "jjb: Upgrade Quibble jobs to 1.17.0"

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

Change #1269507 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[integration/quibble@master] api-testing: Make sure npm install runs for api-testing

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

Change #1269508 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[integration/quibble@master] api-testing: Add test plan for api testing

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

Change #1269508 abandoned by Phedenskog:

[integration/quibble@master] api-testing: Add test plan for api testing

Reason:

Lets change the order and first introduce a test plan.

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

Change #1269513 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[integration/quibble@master] api-testing: Add test plan for api testing

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

hashar changed the task status from Open to In Progress.Apr 10 2026, 7:36 AM
hashar triaged this task as High priority.

Change #1269513 merged by jenkins-bot:

[integration/quibble@master] api-testing: Add test plan for api testing

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

Change #1269507 merged by jenkins-bot:

[integration/quibble@master] api-testing: Make sure npm install runs for api-testing

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

Change #1269990 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: Upgrade Quibble to 1.17.1

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

hashar claimed this task.

We have confirmed the job is now running the npm install in mediawiki/core which makes mocha available. It is solved!!!

Change #1269990 merged by jenkins-bot:

[integration/config@master] jjb: Upgrade Quibble to 1.17.1

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