Page MenuHomePhabricator

Get the gate-and-submit pipeline feedback loop p75 for core below 10 minute
Open, Needs TriagePublic

Description

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:

MonthRunsp50p75p95Last to finish
2026-0543714:5117:0625:26core postgres (52 %)
2026-0645412:4214:2020:17core sqlite (45 %)
2026-0741012:3214:5720:04core sqlite (66 %)
2026-0827512:1713:3217:48core sqlite (61 %)

Which jobs finish last (30 days back from the 9:th of September )

Screenshot 2026-09-09 at 16.39.52.png (2,810×880 px, 278 KB)

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.

Related Objects

Event Timeline

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

[integration/config@master] Skip core npm install for GrowthExperiments browser tests

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