Test Platform is working on the following: If we optimize the runtime of the three gate-and-submit jobs that most often finish last for mediawiki/core, the p75 gate-and-submit feedback time for mediawiki/core drops below 10 minutes.
Background
Fast CI feedback loop matters because it directly affects how developers work. When results take too long, developers context-switch to other tasks, lose track of what they were doing. The longer the wait, the more costly a failure becomes.
Status before the initiative
The "Feedback time per patch run by month" table and the "Gate feedback time per patch run" (critical path) table on the MediaWiki core dashboard, https://releng-data.wmcloud.org/-/dashboards/core. Feedback time = first job start to last job finish for one gate-and-submit run.
Lets look at the number for the last months:
| Month | Runs | p50 | p75 | p95 | Last to finish |
| 2026-05 | 437 | 14:51 | 17:06 | 25:26 | core postgres (52 %) |
| 2026-06 | 454 | 12:42 | 14:20 | 20:17 | core sqlite (45 %) |
| 2026-07 | 410 | 12:32 | 14:57 | 20:04 | core sqlite (66 %) |
| 2026-08 | 275 | 12:17 | 13:32 | 17:48 | core sqlite (61 %) |
Which jobs finish last (30 days back from the 9:th of September )
The plan
We can see we need to focus on quibble-for-mediawiki-core-vendor-sqlite-php83 and quibble-with-gated-extensions-selenium-php83. But we can also see that quibble-with-gated-extensions-vendor-mysql-php83 is close so we may need to focus on getting that job faster too.
quibble-with-gated-extensions-selenium-php83
We want to try out running the npm install in different phases. Either by running all the installs first (throttling by X threads) or run npm install for the next time at the same time we run the browser tests. T436376
quibble-for-mediawiki-core-vendor-sqlite-php83
There are two things we plan to do: Remove the non database tests for that job T437134 and try to run the SQLite tests in parallel T426684
quibble-with-gated-extensions-vendor-mysql-php83
We are working in the plans on how to make that job faster. One of the problem is that this job will ends last and that time there is already a queue for saving the cache to Castor. And we can also see that there are some agents that slow us down https://phabricator.wikimedia.org/T437407#12311917
Risks and mitigations
The gated pipeline includes Castor saves and Castor is single threaded, meaning if many jobs ends at the same time, all of them are queuing. Making more jobs faster, will increase the queue. We are also looking into speeding up Castor and/or replacing Castor.
