Page MenuHomePhabricator

Run only the PHPUnit Database tests in the sqlite and postgres core jobs to speed up the gated pipeline
Closed, ResolvedPublic

Description

Today the quibble-for-mediawiki-core-vendor-sqlite-php83 and quibble-for-mediawiki-core-vendor-postgres-php83 run the full PHP test suite event though that the reason for this tests is to test different database backends. We could remove running the PHPUnit tests suite that do not use the database, the QUnit tests (and then also the npm install phase). Those tests already runs in the quibble-for-mediawiki-core-vendor-mysql-php83 job.

If we do this change this will make the jobs 2-3 minutes faster (depending on how much load that are on the server when they run).

Acceptance Criteria:

  • Remove the PHPUnit without database tests from the SQLite and Postgres job
  • Remove the QUnit tests and make sure we don't run npm install for those jobs
  • When this is released, clear the Castor cache for the jobs to get rid of the node dependencies

Event Timeline

Peter edited projects, added: Test Platform (Arusha 30); removed: Test Platform.

T436448 should also be fixed.

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

[integration/quibble@master] Allow running only the PHPUnit tests that need a database

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

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

[integration/config@master] jjb: Run only database tests in the sqlite and postgres core jobs

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

Change #1337436 merged by jenkins-bot:

[integration/quibble@master] Allow running only the PHPUnit tests that need a database

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

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

[integration/quibble@master] release: Quibble 1.21.0

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

Change #1337943 merged by jenkins-bot:

[integration/quibble@master] release: Quibble 1.21.0

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

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

[integration/config@master] jjb: update Quibble jobs for 1.21.0

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

Change #1337949 merged by jenkins-bot:

[integration/config@master] jjb: update Quibble jobs for 1.21.0

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

Change #1337437 merged by jenkins-bot:

[integration/config@master] jjb: Run only database tests in the sqlite and postgres core jobs

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

Mentioned in SAL (#wikimedia-releng) [2026-09-10T05:49:05Z] <phedenskog> Updated quibble-for-mediawiki-core postgres and sqlite jobs to run only the phpunit-database stage T437134

This is what the data looks like before the change:

Screenshot 2026-09-10 at 08.11.45.png (3,080×908 px, 342 KB)

A quick question on this: does it make sense to eventually move these tests to a completely separate job? Because, based on this task, these non-database tests are running in the MySQL job, which is also supposed to only run database tests and not QUnit and other unit tests.

Because, based on this task, these non-database tests are running in the MySQL

Yep I agree that makes sense.

Peter moved this task from Finishing Touches to Done on the Test Platform (Arusha 30) board.

We need to run this for a longer time but for one day the p75 went from 13:16 to 10:08.