Page MenuHomePhabricator

WikimediaDebugComponent
ActivePublic

Members

  • This project does not have any members.
  • View All

Watchers (1)

Details

Description

WikimediaDebug is a set of tools for debugging and profiling MediaWiki web requests in a production environment. WikimediaDebug can be used through the accompanying browser extension, or from the command-line. Internally, it uses the X-Wikimedia-Debug header (also known as XWD).

Use this tag for issues about:

  • browser extension, the WikimediaDebug extension for Firefox and Chromium,
  • XHGui service at https://performance.wikimedia.org/xhgui/, including its Puppet provisioning and the xhgui database in the m2 database cluster.
  • Excimer UI service at https://performance.wikimedia.org/excimer/speedscope/, including its excimer database in the m2 database cluster.
  • configuration and profiling client for the above in operations/mediawiki-config.git: (e.g. src/XWikimediaDebug, src/Profiler, and src/PhpAutoPrepend.php).

Maintained by: SRE observability Team and Release-Engineering-Team

Documentation: https://wikitech.wikimedia.org/wiki/WikimediaDebug


For tasks about daily production flame graphs, use Arc-Lamp.
For tasks about Varnish/ATS routing of the X-Wikimedia-Debug header, see Traffic.
For tasks about the mwdebug servers, see ServiceOps new.

Recent Activity

Wed, Jul 15

aaron triaged T292382: Add support for xhgui for jobs as Low priority.
Wed, Jul 15, 6:17 AM · MediaWiki-API-Platform-Team, WMF-JobQueue, MediaWiki-Core-Platform-Team (Radar), Developer Productivity, WikimediaDebug, Wikidata Change Dispatching & Watchlists, serviceops-deprecated, Wikibase change dispatching scripts to jobs
aaron moved T292382: Add support for xhgui for jobs from Incoming (Needs Triage) to Needs Further Discussion on the MediaWiki-API-Platform-Team board.
Wed, Jul 15, 6:17 AM · MediaWiki-API-Platform-Team, WMF-JobQueue, MediaWiki-Core-Platform-Team (Radar), Developer Productivity, WikimediaDebug, Wikidata Change Dispatching & Watchlists, serviceops-deprecated, Wikibase change dispatching scripts to jobs

Mon, Jul 13

Maintenance_bot added a project to T292382: Add support for xhgui for jobs: MediaWiki-API-Platform-Team.
Mon, Jul 13, 1:31 AM · MediaWiki-API-Platform-Team, WMF-JobQueue, MediaWiki-Core-Platform-Team (Radar), Developer Productivity, WikimediaDebug, Wikidata Change Dispatching & Watchlists, serviceops-deprecated, Wikibase change dispatching scripts to jobs
Krinkle added a project to T292382: Add support for xhgui for jobs: WMF-JobQueue.
Mon, Jul 13, 1:13 AM · MediaWiki-API-Platform-Team, WMF-JobQueue, MediaWiki-Core-Platform-Team (Radar), Developer Productivity, WikimediaDebug, Wikidata Change Dispatching & Watchlists, serviceops-deprecated, Wikibase change dispatching scripts to jobs
Krinkle added projects to T292382: Add support for xhgui for jobs: Developer Productivity, MediaWiki-Core-Platform-Team (Radar).
Mon, Jul 13, 1:13 AM · MediaWiki-API-Platform-Team, WMF-JobQueue, MediaWiki-Core-Platform-Team (Radar), Developer Productivity, WikimediaDebug, Wikidata Change Dispatching & Watchlists, serviceops-deprecated, Wikibase change dispatching scripts to jobs
Krinkle edited projects for T292382: Add support for xhgui for jobs, added: WikimediaDebug; removed Platform Engineering.

See also T354042: WikimediaDebug features (e.g. logging and profiling) for MediaWiki JobQueue jobs which is related but subtly different. That task is about profiling one job, which may be easier.

Mon, Jul 13, 1:13 AM · MediaWiki-API-Platform-Team, WMF-JobQueue, MediaWiki-Core-Platform-Team (Radar), Developer Productivity, WikimediaDebug, Wikidata Change Dispatching & Watchlists, serviceops-deprecated, Wikibase change dispatching scripts to jobs

Mon, Jul 6

Krinkle edited projects for T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect, added: MediaWiki-API-Platform-Team; removed API Platform.
Mon, Jul 6, 8:45 PM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug

Tue, Jun 30

Clement_Goubert closed T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect as Resolved.

This should now be fixed for this use case, general discussion continues in parent. Feel free to reopen if issues persist.

Tue, Jun 30, 12:23 PM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug
Maintenance_bot removed a project from T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect: Patch-For-Review.
Tue, Jun 30, 11:32 AM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug
gerritbot added a comment to T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect.

Change #1306643 merged by Clément Goubert:

[operations/puppet@production] trafficserver::backend: Remove X-W-D for api.w.o

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

Tue, Jun 30, 10:50 AM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug
gerritbot added a project to T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect: Patch-For-Review.
Tue, Jun 30, 9:59 AM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug
gerritbot added a comment to T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect.

Change #1306643 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/puppet@production] trafficserver::backend: Remove X-W-D for api.w.o

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

Tue, Jun 30, 9:58 AM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug
Clement_Goubert added a parent task for T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect: T428909: Investigate X-Wikimedia-Debug routing for api.wikimedia.org.
Tue, Jun 30, 9:43 AM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug
Clement_Goubert moved T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect from Inbox to In Progress on the ServiceOps new board.
Tue, Jun 30, 9:38 AM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug
Clement_Goubert triaged T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect as Medium priority.

The reason that happens is the X-Wikimedia-Debug header (or the extension which just sets that header) bypasses ATS at the edge where the routing to the rest gateway for api.wikimedia.org API endpoints is done. It forces you to the mw-debug MediaWiki-On-Kubernetes deployment, which redirects everything under api.wikimedia.org to the API Doc page.

Tue, Jun 30, 9:38 AM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug

Mon, Jun 29

DLynch added a comment to T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect.

I discovered this while backporting a change to a EditCheck that had to access an API hosted on api.wikimedia.org, which seems to be fundamentally untestable on the testservers as a result of this behavior.

Mon, Jun 29, 10:17 PM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug
DLynch created T430600: WikimediaDebug makes api.wikimedia.org always 301 redirect.
Mon, Jun 29, 10:15 PM · MediaWiki-API-Platform-Team, ServiceOps new, ServiceOps-Mediawiki, ServiceOps-SharedInfra, WikimediaDebug

Jun 10 2026

hnowlan moved T426368: Upgrade XHGui from 0.21.3 to latest (0.23.6) from Inbox to Backlog on the Observability-Metrics board.
Jun 10 2026, 10:48 AM · Observability-Metrics, WikimediaDebug

May 21 2026

colewhite claimed T426368: Upgrade XHGui from 0.21.3 to latest (0.23.6).
May 21 2026, 2:00 PM · Observability-Metrics, WikimediaDebug

May 15 2026

Krinkle renamed T426368: Upgrade XHGui from 0.21.3 to latest (0.23.6) from Upgrade XHGui from 0.21 (Jan 2023) to 0.23 (Jul 2025) to Upgrade XHGui from 0.21.3 to latest (0.23.6).
May 15 2026, 2:03 AM · Observability-Metrics, WikimediaDebug
Krinkle renamed T426368: Upgrade XHGui from 0.21.3 to latest (0.23.6) from Upgrade XHGui to Upgrade XHGui from 0.21 (Jan 2023) to 0.23 (Jul 2025).
May 15 2026, 2:03 AM · Observability-Metrics, WikimediaDebug
Krinkle created T426368: Upgrade XHGui from 0.21.3 to latest (0.23.6).
May 15 2026, 2:02 AM · Observability-Metrics, WikimediaDebug

Feb 27 2026

Scott_French moved T395682: Enable WikimediaDebug support for noc.wikimedia.org from Needs Info / Blocked to Backlog on the ServiceOps new board.

Thanks, @Krinkle - That helps clarify. For noc.wikimedia.org, presence of the x-wikimedia-debug header affects caching behavior and response header cleanup, but has no role in backend selection at ATS. Instead, requests always route to mw-misc, which also happens to be updated in the testservers stage, so the "feedback loop" for testing merged code is sort of equivalent.

Feb 27 2026, 12:05 AM · MW-on-K8s, ServiceOps-Mediawiki, ServiceOps new, WikimediaDebug, MediaWiki-Core-Platform-Team (Radar), noc.wikimedia.org

Feb 26 2026

Krinkle added a comment to T395682: Enable WikimediaDebug support for noc.wikimedia.org.

@Scott_French If I understand correctly, this means that:

Feb 26 2026, 6:01 PM · MW-on-K8s, ServiceOps-Mediawiki, ServiceOps new, WikimediaDebug, MediaWiki-Core-Platform-Team (Radar), noc.wikimedia.org
Scott_French moved T395682: Enable WikimediaDebug support for noc.wikimedia.org from Inbox to Needs Info / Blocked on the ServiceOps new board.

So, the way this currently works is that mw-misc (home of noc.wikimedia.org) is updated during the testservers deployment stage, just like mw-debug. Meaning, hitting noc during that stage should observe the new changes immediately.

Feb 26 2026, 5:36 PM · MW-on-K8s, ServiceOps-Mediawiki, ServiceOps new, WikimediaDebug, MediaWiki-Core-Platform-Team (Radar), noc.wikimedia.org
Scott_French triaged T395682: Enable WikimediaDebug support for noc.wikimedia.org as Low priority.
Feb 26 2026, 5:27 PM · MW-on-K8s, ServiceOps-Mediawiki, ServiceOps new, WikimediaDebug, MediaWiki-Core-Platform-Team (Radar), noc.wikimedia.org

Jan 27 2026

Krinkle reassigned T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025 from Krinkle to ori.
Jan 27 2026, 2:07 PM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug
Krinkle closed T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025 as Resolved.
From the task description:
Jan 27 2026, 2:07 PM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug
Krinkle updated the task description for T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025.
Jan 27 2026, 2:05 PM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug
Maintenance_bot removed a project from T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025: Patch-For-Review.
Jan 27 2026, 9:32 AM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug
Stashbot added a comment to T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025.

Mentioned in SAL (#wikimedia-operations) [2026-01-27T09:13:12Z] <cwhite@deploy2002> Finished deploy [performance/arc-lamp@03c538c]: T391517 (duration: 00m 08s)

Jan 27 2026, 9:13 AM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug
Stashbot added a comment to T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025.

Mentioned in SAL (#wikimedia-operations) [2026-01-27T09:13:04Z] <cwhite@deploy2002> Started deploy [performance/arc-lamp@03c538c]: T391517

Jan 27 2026, 9:13 AM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug
gerritbot added a comment to T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025.

Change #1231219 merged by jenkins-bot:

[performance/arc-lamp@master] Fix matching of MediaWiki EditAction stack frames

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

Jan 27 2026, 9:10 AM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug

Jan 24 2026

gerritbot added a project to T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025: Patch-For-Review.
Jan 24 2026, 4:51 AM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug
gerritbot added a comment to T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025.

Change #1231219 had a related patch set uploaded (by Ori; author: Ori):

[performance/arc-lamp@master] Fix matching of MediaWiki EditAction stack frames

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

Jan 24 2026, 4:51 AM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug

Jan 23 2026

Krinkle moved T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025 from Radar to Inbox on the observability board.
Jan 23 2026, 2:33 AM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug
Krinkle added a comment to T391517: Daily flame graph for "fn-EditAction" missing since 28 March 2025.

This is still broken and makes various performance analysis and improvements hard or impossible.

Jan 23 2026, 2:33 AM · Wikimedia-Performance-recommendation, Regression, observability, Arc-Lamp, WikimediaDebug

Nov 16 2025

Pppery edited projects for T256039: Prometheus exporter for XHGui, added: Patch-Needs-Improvement; removed Patch-For-Review.
Nov 16 2025, 3:04 AM · Patch-Needs-Improvement, WikimediaDebug, observability

Oct 30 2025

MSantos closed T182827: Support X-Wikimedia-Debug header for services as Declined.

@A_smart_kitten thanks for tagging us.

Oct 30 2025, 2:24 PM · Content-Transform-Team, WikimediaDebug, Mobile-Content-Service

Oct 26 2025

A_smart_kitten reopened T182827: Support X-Wikimedia-Debug header for services as "Open".

CTT: tagging you as per decline note. This seems like a more general request than one that's specific to the now-decommissioned Mobile-Content-Service?

Oct 26 2025, 11:34 AM · Content-Transform-Team, WikimediaDebug, Mobile-Content-Service

Sep 20 2025

ori closed T391516: https://performance.wikimedia.org/php-profiling/ leads to 404 for all listed sources as Resolved.

I cleaned up the residual instances manually on arclamp1001 and arclamp2001.

Sep 20 2025, 4:09 PM · SRE Observability (FY2025/2026-Q1), Regression, observability, Arc-Lamp, WikimediaDebug

Sep 10 2025

aaron moved T354042: WikimediaDebug features (e.g. logging and profiling) for MediaWiki JobQueue jobs from Incoming (Needs Triage) to Needs Further Discussion on the MediaWiki-API-Platform-Team board.
Sep 10 2025, 5:44 AM · WikimediaDebug, MediaWiki-API-Platform-Team, WMF-JobQueue

Sep 9 2025

Seddon moved T403824: Add WikimediaDebug functionality to the Wikimedia Android app from Needs Triage to Up Next on the Wikipedia-Android-App board.
Sep 9 2025, 4:12 PM · Wikipedia-Android-App, WikimediaDebug
Seddon triaged T403824: Add WikimediaDebug functionality to the Wikimedia Android app as Medium priority.
Sep 9 2025, 4:12 PM · Wikipedia-Android-App, WikimediaDebug

Sep 7 2025

A_smart_kitten added a project to T354042: WikimediaDebug features (e.g. logging and profiling) for MediaWiki JobQueue jobs: WikimediaDebug.
Sep 7 2025, 7:43 AM · WikimediaDebug, MediaWiki-API-Platform-Team, WMF-JobQueue

Sep 5 2025

Tgr updated the task description for T403824: Add WikimediaDebug functionality to the Wikimedia Android app.
Sep 5 2025, 1:43 PM · Wikipedia-Android-App, WikimediaDebug
Tgr created T403824: Add WikimediaDebug functionality to the Wikimedia Android app.
Sep 5 2025, 1:42 PM · Wikipedia-Android-App, WikimediaDebug

Sep 2 2025

Maintenance_bot removed a project from T267248: create mwdebug1003 - ganeti VM with buster and appserver role: Patch-For-Review.
Sep 2 2025, 6:30 PM · Performance-Team, WikimediaDebug, serviceops-deprecated

Aug 25 2025

Aklapper closed T182827: Support X-Wikimedia-Debug header for services as Declined.

As part of the decommission of Mobile-Content-Service, this task is no longer valid. See T328036 for reference.
If you believe this is reproducible as part of Page Content Service nowadays used, please reach out to Content-Transform-Team. Thanks.

Aug 25 2025, 11:47 AM · Content-Transform-Team, WikimediaDebug, Mobile-Content-Service

Aug 20 2025

Reedy added a comment to T315111: Make WikimediaDebug status more sticky.

With the rollout of PHP 8.3... Especially in these very early stages, I'd love to be able to stick my activity onto the PHP 8.3 hosts, and frankly leave it there for the near term future.

Aug 20 2025, 9:27 PM · WikimediaDebug