Page MenuHomePhabricator
Feed Advanced Search

Today

hashar awarded T351807: Vector2022 Do not call SkinMustache::getTemplateData twice a Love token.
Mon, Dec 4, 12:08 PM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation

Sat, Dec 2

Jdlrobson awarded T351807: Vector2022 Do not call SkinMustache::getTemplateData twice a Love token.
Sat, Dec 2, 12:59 AM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation

Fri, Dec 1

pmiazga added projects to T352548: The login intersite mechanism is broken: MediaWiki-extensions-CentralAuth, MediaWiki-Platform-Team.

Looks like a CentralAuth-related issue - tagging accordingly.

Fri, Dec 1, 4:19 PM · MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth, Regression, MediaWiki-User-login-and-signup

Wed, Nov 29

pmiazga added a comment to T351831: Optimize how many times `SkinTemplate::getPortletsTemplateData` is called.

::getTemplateData was called twice and we already fixed that. That previous bug fixed - now this code is not as prominent (previously it was 4 times and bigger "All instances" time).

Wed, Nov 29, 1:32 PM · Patch-For-Review, MediaWiki-Core-Skin-Architecture, Wikimedia-Performance-recommendation
pmiazga added a comment to T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved.

Links to profiler/flamegrapsh:
Special:BlankPage - https://performance.wikimedia.org/excimer/profile/dd2f547999078ddb
Featured Article - Interstate_40_in_Tennnessee - https://performance.wikimedia.org/excimer/profile/17c43b402fb432bb
Special:History for featured article - https://performance.wikimedia.org/excimer/profile/e4eb9b4ac30c4654.
Special:Login with Excimer only - https://performance.wikimedia.org/excimer/profile/33bd9baa56e1ddbe
Special:Login with xhprof data: https://performance.wikimedia.org/excimer/profile/eeba2c8d7eb63c29

Wed, Nov 29, 12:58 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team

Tue, Nov 28

pmiazga updated subscribers of T350893: PHP Warning: A non-numeric value encountered.

I did a quick research here and looks like the root cause is the uploaded PNG file. The error happens when the FormatMetadata::makeFormattedData() tries to process the Flash property from metadata. It fails because in DB we stored an empty string instead of a numeric value and PHP doesn't know how to perform a bit operation between string and int.

Tue, Nov 28, 7:55 PM · Patch-For-Review, Commons, MediaWiki-File-management, Unstewarded-production-error, Wikimedia-production-error

Mon, Nov 27

pmiazga closed T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved as Resolved.
Mon, Nov 27, 1:04 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team
pmiazga closed T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved, a subtask of T302623: FY2022-2023: Improve Backend Pageview Timing, as Resolved.
Mon, Nov 27, 1:04 PM · MediaWiki-Platform-Team (Radar), Wikimedia-Performance-recommendation, Patch-For-Review
pmiazga added a comment to T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved.

Profiler files for possible future analysis:

Mon, Nov 27, 1:03 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team
pmiazga created T352024: Spike: Analyze/review the `UserGetDefaultOptions` hook and propose improvements.
Mon, Nov 27, 12:58 PM · MediaWiki-Core-Preferences, Wikimedia-Performance-recommendation
pmiazga added a comment to T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved.

I reviewed multiple flame graphs where the entry point is index.php and I found one low-hanging fruit which we already solved and most likely improved the overall execution by ~5%. But it's difficult to spot thigs that could be improved with small fixes. The execution overall is pretty slow to the amount of running parts in our system and to improve the overall time most likely we should simplify things, and reduce the amount of extensions/hooks we use for common requests.

Mon, Nov 27, 12:21 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team
pmiazga created T352019: Cache SkinAfterBottomScriptsHandler::createSchemaElement .
Mon, Nov 27, 12:08 PM · Wikidata, MediaWiki-extensions-WikibaseClient, Wikimedia-Performance-recommendation

Wed, Nov 22

pmiazga closed T327082: Fix tech debt around Less_Tree->value property checks as Resolved.

A follow-up ticket was created - closing this one. @Krinkle thank you for your help on this one.

Wed, Nov 22, 5:42 PM · MediaWiki-Platform-Team, MediaWiki-Engineering-Group-onboarding, Less.php, Technical-Debt
pmiazga created T351833: Remove the dependency upon Less_Tree_HasValue interface.
Wed, Nov 22, 5:41 PM · MediaWiki-Platform-Team, MediaWiki-Engineering-Group-onboarding, Less.php, Technical-Debt
pmiazga removed a project from T327082: Fix tech debt around Less_Tree->value property checks : Patch-For-Review.
Wed, Nov 22, 5:26 PM · MediaWiki-Platform-Team, MediaWiki-Engineering-Group-onboarding, Less.php, Technical-Debt
pmiazga closed T351807: Vector2022 Do not call SkinMustache::getTemplateData twice as Resolved.
Wed, Nov 22, 5:09 PM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation
pmiazga closed T351807: Vector2022 Do not call SkinMustache::getTemplateData twice, a subtask of T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved, as Resolved.
Wed, Nov 22, 5:09 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team
pmiazga removed a subtask for T302623: FY2022-2023: Improve Backend Pageview Timing: T351807: Vector2022 Do not call SkinMustache::getTemplateData twice.
Wed, Nov 22, 5:08 PM · MediaWiki-Platform-Team (Radar), Wikimedia-Performance-recommendation, Patch-For-Review
pmiazga edited parent tasks for T351807: Vector2022 Do not call SkinMustache::getTemplateData twice, added: T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved; removed: T302623: FY2022-2023: Improve Backend Pageview Timing.
Wed, Nov 22, 5:08 PM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation
pmiazga added a subtask for T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved: T351807: Vector2022 Do not call SkinMustache::getTemplateData twice.
Wed, Nov 22, 5:08 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team
pmiazga created T351831: Optimize how many times `SkinTemplate::getPortletsTemplateData` is called.
Wed, Nov 22, 4:59 PM · Patch-For-Review, MediaWiki-Core-Skin-Architecture, Wikimedia-Performance-recommendation
pmiazga updated the task description for T351807: Vector2022 Do not call SkinMustache::getTemplateData twice.
Wed, Nov 22, 2:48 PM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation
pmiazga updated the task description for T351807: Vector2022 Do not call SkinMustache::getTemplateData twice.
Wed, Nov 22, 2:48 PM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation
pmiazga updated the task description for T351807: Vector2022 Do not call SkinMustache::getTemplateData twice.
Wed, Nov 22, 1:15 PM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation
larissagaulia awarded T351807: Vector2022 Do not call SkinMustache::getTemplateData twice a Like token.
Wed, Nov 22, 1:09 PM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation
pmiazga created T351807: Vector2022 Do not call SkinMustache::getTemplateData twice.
Wed, Nov 22, 12:58 PM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MediaWiki-Platform-Team, Performance Issue, MediaWiki-Core-Skin-Architecture, Desktop Improvements (Vector 2022), Wikimedia-Performance-recommendation

Mon, Nov 20

pmiazga edited projects for T330332: PHP Warning: Invalid argument supplied for foreach(), added: MediaWiki-Platform-Team; removed Unstewarded-production-error.

It comes from CentralAuth - I'm going to assign MediaWiki-Platform-Team as we're currently working on this extension.

Mon, Nov 20, 4:32 PM · MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth, Wikimedia-production-error
pmiazga updated the task description for T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved.
Mon, Nov 20, 3:25 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team
pmiazga added a comment to T327082: Fix tech debt around Less_Tree->value property checks .

for length we would have Less_Tree_Expression and Less_Tree_Value at least. Those are the ones that are passed via our testing suite. I applied the change, checked the logic and looks ok. I'll push the PR for it.

Mon, Nov 20, 1:00 PM · MediaWiki-Platform-Team, MediaWiki-Engineering-Group-onboarding, Less.php, Technical-Debt

Mon, Nov 6

pmiazga moved T302623: FY2022-2023: Improve Backend Pageview Timing from Current Sprint to Radar on the MediaWiki-Platform-Team board.
Mon, Nov 6, 3:51 PM · MediaWiki-Platform-Team (Radar), Wikimedia-Performance-recommendation, Patch-For-Review
pmiazga moved T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved from Inbox, needs triage to Current Sprint on the MediaWiki-Platform-Team board.
Mon, Nov 6, 3:33 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team
pmiazga created T350593: Analyze flamegraphs and identify which parts of MediaWiki execution could be improved.
Mon, Nov 6, 3:30 PM · Wikimedia-Performance-recommendation, MediaWiki-Platform-Team

Oct 30 2023

pmiazga added a comment to T340573: Add support for request tracing to WikimediaDebug browser extension.

Let me move this to "Blocked/waiting" on the Platform Team Board. We need the prod/beta URL template to allow links to generated traces.

Oct 30 2023, 12:00 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing
pmiazga moved T340573: Add support for request tracing to WikimediaDebug browser extension from Soon to Blocked/waiting on the MediaWiki-Platform-Team board.
Oct 30 2023, 11:56 AM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing

Oct 27 2023

pmiazga added a comment to T327082: Fix tech debt around Less_Tree->value property checks .

I analysed the possibility of dropping the new interface by using specific types instead. I found a couple of places we can easily fix. But I also found some methods that return type can be anything of Less_Tree, or one of multiple return types.

Oct 27 2023, 3:07 PM · MediaWiki-Platform-Team, MediaWiki-Engineering-Group-onboarding, Less.php, Technical-Debt

Oct 25 2023

pmiazga added a comment to T148290: Create repo for File_Ogg.

Nice @hashar! Thanks for cleaning it up.

Oct 25 2023, 12:29 PM · Librarization, TimedMediaHandler

Oct 23 2023

pmiazga updated subscribers of T348235: Deadlock in SqlBagOStuff::modifyTableSpecificBlobsForSet.

@Ladsgroup - I'd like to ask for your help here - We have another ticket where we need to investigate the DB deadlocks - those happen from time to time in different parts of the MediaWiki. Do you know any possible solution (maybe the pt-deadlock-logger) that could help us debug those problems? It's not possible (most of cases) to reproduce those locally and trying to find out what caused those on prod is very tricky and usually fruitless.

Oct 23 2023, 2:58 PM · MediaWiki-Platform-Team (Radar), MediaWiki-libs-BagOStuff, MediaWiki-ResourceLoader
pmiazga placed T348235: Deadlock in SqlBagOStuff::modifyTableSpecificBlobsForSet up for grabs.
Oct 23 2023, 2:52 PM · MediaWiki-Platform-Team (Radar), MediaWiki-libs-BagOStuff, MediaWiki-ResourceLoader

Oct 20 2023

pmiazga updated the task description for T340573: Add support for request tracing to WikimediaDebug browser extension.
Oct 20 2023, 2:58 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing
pmiazga updated the task description for T340573: Add support for request tracing to WikimediaDebug browser extension.
Oct 20 2023, 2:30 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing
pmiazga triaged T340573: Add support for request tracing to WikimediaDebug browser extension as Medium priority.
Oct 20 2023, 2:27 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing
pmiazga updated subscribers of T340573: Add support for request tracing to WikimediaDebug browser extension.

@CDanis FYI: when the extension is enabled for the current request - it adds the header X-Wikimedia-Debug. This header value is a list of attributes concatenated with ;.

Oct 20 2023, 2:26 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing
pmiazga updated the task description for T340573: Add support for request tracing to WikimediaDebug browser extension.
Oct 20 2023, 2:16 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing
pmiazga added a comment to T340573: Add support for request tracing to WikimediaDebug browser extension.

After a conversation with @CDanis, we clarified that this ticket is about modifying the WikimediaDebug extension to add a new checkbox to trigger the tracing on the edge. I'll update the ticket description and fill in all necessary information.

Oct 20 2023, 2:07 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing

Oct 19 2023

pmiazga updated subscribers of T349317: PHP Warning: DOMNode::insertBefore(): Not Found Error.
Oct 19 2023, 3:47 PM · Web-Team-Backlog, User-brennen, MobileFrontend, Wikimedia-production-error
pmiazga created T349290: ResourceLoader\Context::encodeJson partially failed: Malformed UTF-8 characters, possibly incorrectly encoded.
Oct 19 2023, 11:38 AM · Growth-Team, StructuredDiscussions, MediaWiki-Platform-Team (Radar), Wikimedia-production-error

Oct 16 2023

pmiazga added a comment to T283456: OAuth identfy endpoint should not expose unconfirmed email address.

@Tgr Most likely we can resolve this ticket as the gerrit patch is merged. What do you think about the proposed follow-up to add the email_verified field?.

Oct 16 2023, 2:39 PM · MW-1.42-notes (1.42.0-wmf.2; 2023-10-24), Security, MediaWiki-extensions-OAuth

Oct 10 2023

pmiazga added a comment to T283456: OAuth identfy endpoint should not expose unconfirmed email address.

I'm trying to find some good specifications on what we can expect from profile information and it looks like openid in StandardClaims specifies both email and email_verified (https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims)
I tried to find such specifications for OAuth1.0/OAuth2.0 too - but I didn't have much luck - I found references to OpenId Connect in "OAuth 2.0 Rich Authorization Requests" which specifies email and email_verified too https://www.rfc-editor.org/rfc/rfc9396#fig26 (because it follows the OpenId Standard Claim rules).

Oct 10 2023, 2:21 PM · MW-1.42-notes (1.42.0-wmf.2; 2023-10-24), Security, MediaWiki-extensions-OAuth

Sep 20 2023

pmiazga updated Other Assignee for T327046: Improve (or identify) monitoring for CentralAuth autologins on Wikimedia wikis, removed: pmiazga.
Sep 20 2023, 2:42 PM · MW-1.42-notes (1.42.0-wmf.3; 2023-10-31), MediaWiki-Platform-Team, Temporary accounts, MediaWiki-extensions-CentralAuth
pmiazga closed T346209: Send tracing headers from Shellbox client as Resolved.
Sep 20 2023, 10:07 AM · MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Shellbox, MediaWiki-Platform-Team, MediaWiki-libs-HTTP, Observability-Tracing
pmiazga closed T346209: Send tracing headers from Shellbox client, a subtask of T320556: Micro-specification for how service owners should propagate tracing headers, as Resolved.
Sep 20 2023, 10:07 AM · Observability-Tracing

Sep 18 2023

pmiazga closed T344149: Proof of Concept: OpenTelemetry in MediaWiki as Resolved.
Sep 18 2023, 12:38 PM · Patch-For-Review, Spike, MediaWiki-Platform-Team, MediaWiki-libs-HTTP, Observability-Tracing
pmiazga closed T344149: Proof of Concept: OpenTelemetry in MediaWiki, a subtask of T340552: MediaWiki imports OpenTelemetry client instrumentation library for enhanced trace metadata, as Resolved.
Sep 18 2023, 12:38 PM · MediaWiki-Platform-Team (Radar), MediaWiki-libs-HTTP, Observability-Tracing

Sep 14 2023

pmiazga added a comment to T343983: Error: Call to a member function getTimestamp() on null.

I pushed the proposed change marked as DNM - @Dreamy_Jazz please let me know if this is what we're looking for. I haven't tested it yet, other than just running tests locally.

Sep 14 2023, 6:30 PM · MediaWiki-Platform-Team (Radar), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Anti-Harassment (AHaT Sprint 32 - Baseball Cap), MediaWiki-User-rename, MediaWiki-extensions-CentralAuth, CheckUser, Wikimedia-production-error
pmiazga added a comment to T343983: Error: Call to a member function getTimestamp() on null.

In c) I meant to skip adding this row entirely, and not add anything other. Yes, sorry, I messed up when copying/pasting. I didn't know is it safe to insert data to other table in such case as I don't know the big picture of what CheckUser is doing.

Sep 14 2023, 4:08 PM · MediaWiki-Platform-Team (Radar), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Anti-Harassment (AHaT Sprint 32 - Baseball Cap), MediaWiki-User-rename, MediaWiki-extensions-CentralAuth, CheckUser, Wikimedia-production-error
pmiazga added a comment to T343983: Error: Call to a member function getTimestamp() on null.

I see four possible solutions here:

Sep 14 2023, 11:00 AM · MediaWiki-Platform-Team (Radar), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Anti-Harassment (AHaT Sprint 32 - Baseball Cap), MediaWiki-User-rename, MediaWiki-extensions-CentralAuth, CheckUser, Wikimedia-production-error
pmiazga added a comment to T343983: Error: Call to a member function getTimestamp() on null.

So after investigating the code - We have a RecentChange entry, that contains information about the change in our system. RecentChange has an attribute rc_logid -> which is the log entry associated with given change. It can be 0 -> no log entry set, or a integer -> then it's a foreign_key to logging table.

Sep 14 2023, 10:21 AM · MediaWiki-Platform-Team (Radar), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Anti-Harassment (AHaT Sprint 32 - Baseball Cap), MediaWiki-User-rename, MediaWiki-extensions-CentralAuth, CheckUser, Wikimedia-production-error

Sep 13 2023

pmiazga added a comment to T340573: Add support for request tracing to WikimediaDebug browser extension.

@CDanis could you elaborate a little bit on this one? What do you mean "force a distributed tracing" ?

Sep 13 2023, 1:32 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-Platform-Team, WikimediaDebug, Observability-Tracing
pmiazga triaged T346211: Deprecate WebRequest::getRequestId() as Low priority.
Sep 13 2023, 8:58 AM · MW-1.42-release, good first task, MediaWiki-Platform-Team, MediaWiki-libs-HTTP
pmiazga created T346211: Deprecate WebRequest::getRequestId().
Sep 13 2023, 8:58 AM · MW-1.42-release, good first task, MediaWiki-Platform-Team, MediaWiki-libs-HTTP
pmiazga created T346209: Send tracing headers from Shellbox client.
Sep 13 2023, 8:34 AM · MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Shellbox, MediaWiki-Platform-Team, MediaWiki-libs-HTTP, Observability-Tracing
pmiazga closed T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore), a subtask of T320559: Trace header propagation for MediaWiki, as Resolved.
Sep 13 2023, 8:23 AM · MW-1.41-notes (1.41.0-wmf.22; 2023-08-15), MediaWiki-Platform-Team, Observability-Tracing
pmiazga closed T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore) as Resolved.
Sep 13 2023, 8:23 AM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga added a comment to T343983: Error: Call to a member function getTimestamp() on null.
Sep 13 2023, 7:40 AM · MediaWiki-Platform-Team (Radar), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Anti-Harassment (AHaT Sprint 32 - Baseball Cap), MediaWiki-User-rename, MediaWiki-extensions-CentralAuth, CheckUser, Wikimedia-production-error

Sep 12 2023

DAlangi_WMF awarded T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore) a Party Time token.
Sep 12 2023, 9:31 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga updated subscribers of T343983: Error: Call to a member function getTimestamp() on null.

I found another log statement exactly from the same line. The previous error comes from fixStuckGlobalRename but the one I found comes from SpamBlacklist: https://logstash.wikimedia.org/app/dashboards#/view/c7013c90-a487-11ec-be91-b3435f0c0c49?_g=h@53fc073&_a=h@8974712 and was triggered on EditPage.

Sep 12 2023, 5:25 PM · MediaWiki-Platform-Team (Radar), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Anti-Harassment (AHaT Sprint 32 - Baseball Cap), MediaWiki-User-rename, MediaWiki-extensions-CentralAuth, CheckUser, Wikimedia-production-error
pmiazga triaged T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore) as Medium priority.
Sep 12 2023, 5:19 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga added a comment to T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore).

We went through a set of reviews and I'm expecting this work to be merged and this ticket to be closed this week.

Sep 12 2023, 5:19 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team

Sep 11 2023

pmiazga moved T105626: AntiSpoof extension gives incorrect results when a requested username contains some special characters from Inbox, needs triage to Current Sprint on the MediaWiki-Platform-Team board.
Sep 11 2023, 1:55 PM · MW-1.41-notes (1.41.0-wmf.26; 2023-09-12), MediaWiki-Platform-Team, GlobalRename, MediaWiki-extensions-CentralAuth, AntiSpoof
pmiazga moved T345632: AbuseFilter "global_user_editcount" field can't be used during (auto)createaccount action (Introduce global_account_editcount) from Inbox, needs triage to Current Sprint on the MediaWiki-Platform-Team board.
Sep 11 2023, 1:55 PM · User-notice-archive, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth, AbuseFilter
pmiazga moved T345777: Consider making RevisionArchiveRecord::userCan() also check the page deletion permissions from Inbox, needs triage to Current Sprint on the MediaWiki-Platform-Team board.
Sep 11 2023, 1:54 PM · MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), MediaWiki-Platform-Team, Security, MediaWiki-General
pmiazga moved T343499: Add minification support for async-await (ES2017) from Soon to Blocked/waiting on the MediaWiki-Platform-Team board.
Sep 11 2023, 1:52 PM · Wikimedia-Minify, MediaWiki-Platform-Team, MediaWiki-ResourceLoader
pmiazga moved T345190: Update RL alerts from performance-team-alerts@ to mediawiki-platform-team@ from Soon to Current Sprint on the MediaWiki-Platform-Team board.
Sep 11 2023, 1:51 PM · MediaWiki-Engineering-Group-onboarding, MediaWiki-Platform-Team, MediaWiki-ResourceLoader
pmiazga moved T341244: ParserOptions and Title::getPageViewLanguage may disagree on the lang/dir from Current Sprint to Blocked/waiting on the MediaWiki-Platform-Team board.
Sep 11 2023, 1:50 PM · MW-1.42-notes (1.42.0-wmf.3; 2023-10-31), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Content-Transform-Team, MediaWiki-Platform-Team, MediaWiki-ContentHandler
pmiazga reassigned T335851: Investigate the Federated Credential Management browser API from Tgr to DAlangi_WMF.
Sep 11 2023, 1:30 PM · MediaWiki-Platform-Team, affects-Miraheze, User-Tgr, MediaWiki-extensions-CentralAuth, MediaWiki-Core-AuthManager

Sep 8 2023

pmiazga closed T345295: MultiHttpClient should handle headers from __construct, a subtask of T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore), as Resolved.
Sep 8 2023, 10:54 AM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga closed T345295: MultiHttpClient should handle headers from __construct as Resolved.
Sep 8 2023, 10:54 AM · MW-1.41-notes (1.41.0-wmf.26; 2023-09-12), Patch-For-Review, MediaWiki-libs-HTTP, MediaWiki-Platform-Team

Sep 7 2023

pmiazga added a comment to T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore).

Today on codemob we decided to move Telemetry class to includes/libs folder and make it generic. But when doing that, I found that the Telemetry cannot be global singleton, as it uses the MediaWiki config: https://github.com/wikimedia/mediawiki/blob/5405fdccfcb7fec8c0fd9b9c9c2a73ee18d98127/includes/http/Telemetry.php#L60

Sep 7 2023, 3:49 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team

Sep 1 2023

pmiazga added a comment to T343983: Error: Call to a member function getTimestamp() on null.

I cannot reproduce it anymore nor I don't see any similar logs. This error happened twice on on 2023-08-10 after each command:

Sep 1 2023, 4:41 PM · MediaWiki-Platform-Team (Radar), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Anti-Harassment (AHaT Sprint 32 - Baseball Cap), MediaWiki-User-rename, MediaWiki-extensions-CentralAuth, CheckUser, Wikimedia-production-error

Aug 31 2023

pmiazga added a comment to T344149: Proof of Concept: OpenTelemetry in MediaWiki.

Sorry for a bit of silence in this ticket, Recently I focused a little bit more on the T344926 issue which caused us lots of trouble due to layering issues (RESTBagOStuff and MultiHttpClient are part of general libs but Telemetry is MediaWiki specific).

Aug 31 2023, 5:56 PM · Patch-For-Review, Spike, MediaWiki-Platform-Team, MediaWiki-libs-HTTP, Observability-Tracing
pmiazga changed the status of T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore) from Open to In Progress.
Aug 31 2023, 5:16 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga changed the status of T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore), a subtask of T320559: Trace header propagation for MediaWiki, from Open to In Progress.
Aug 31 2023, 5:16 PM · MW-1.41-notes (1.41.0-wmf.22; 2023-08-15), MediaWiki-Platform-Team, Observability-Tracing
pmiazga added a comment to T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore).

We spoke about those changes today on Codemob and we agreed on:

Aug 31 2023, 5:16 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team

Aug 30 2023

pmiazga added a comment to T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore).

Unless CDanis says there's urgency, I vote for skipping the temporary fix, as I'm not convinced the temporary fix is as simple as we'd hoped.

It's pretty straightforward: https://gerrit.wikimedia.org/r/953689 but I agree - I don't like it as it introduces the layering issue - the RESTBagOStuff shouldn't know anything about Telemetry/Tracing - it's the HTTPClient (whatever client we use) responsibility, not the RESTBagOStuff.

Aug 30 2023, 8:32 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga renamed T345295: MultiHttpClient should handle headers from __construct from MultiHttpClient should handle headers from __constructor to MultiHttpClient should handle headers from __construct.
Aug 30 2023, 8:01 PM · MW-1.41-notes (1.41.0-wmf.26; 2023-09-12), Patch-For-Review, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga created T345295: MultiHttpClient should handle headers from __construct.
Aug 30 2023, 8:01 PM · MW-1.41-notes (1.41.0-wmf.26; 2023-09-12), Patch-For-Review, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga added a comment to T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore).

After a pairing session with @DAlangi_WMF we decided that the best way to tackle this :

Aug 30 2023, 12:07 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team

Aug 29 2023

pmiazga updated subscribers of T344926: Propagate x-request-id header from MultiHttpClient in MediaWiki (e.g. SessionStore).

This is caused by MultiHttpClient using raw curl_*() calls instead HttpRequestFactory to get the HTTP client. On Prod env sessions use kask-session object cache, which uses RESTBagOStuff. The RESTBagOStuff could use a specific HTTP client - but we do not specify one via config (https://github.com/wikimedia/operations-mediawiki-config/blob/811b3dad11ea1cb629e06f71d94ab4e7208ccdfd/wmf-config/CommonSettings.php#L596C18-L596C3), therefore it fallback to default MultiHttpClient library to send requests (https://github.com/wikimedia/mediawiki/blob/f071c22a9a3e7e399dcf3256c96a952f15291a69/includes/libs/objectcache/RESTBagOStuff.php#L149). I also noticed it can support only MultiHttpClient and we cannot pass anything that extends MWHttpRequest which supports telemetry headers.

Aug 29 2023, 5:54 PM · MW-1.41-notes (1.41.0-wmf.27; 2023-09-19), MediaWiki-libs-BagOStuff, MediaWiki-libs-HTTP, MediaWiki-Platform-Team
pmiazga created T345181: No branch cut label applied to phab ticket after +2 on CheckUser extension.
Aug 29 2023, 4:17 PM · ReleaseTaggerBot

Aug 28 2023

pmiazga added a comment to T320559: Trace header propagation for MediaWiki.

T344926 is a standalone ticket as it's an existing issue. From a quick check, sessions can use RESTBagOStuff to store/retrieve session data. When setting up a RESTBagOStuff we can specify a custom HTTP client, or it will use MultiHttpClient by default.

Aug 28 2023, 1:02 PM · MW-1.41-notes (1.41.0-wmf.22; 2023-08-15), MediaWiki-Platform-Team, Observability-Tracing

Aug 22 2023

pmiazga changed the status of T344149: Proof of Concept: OpenTelemetry in MediaWiki from Open to In Progress.
Aug 22 2023, 3:49 PM · Patch-For-Review, Spike, MediaWiki-Platform-Team, MediaWiki-libs-HTTP, Observability-Tracing
pmiazga changed the status of T344149: Proof of Concept: OpenTelemetry in MediaWiki, a subtask of T340552: MediaWiki imports OpenTelemetry client instrumentation library for enhanced trace metadata, from Open to In Progress.
Aug 22 2023, 3:49 PM · MediaWiki-Platform-Team (Radar), MediaWiki-libs-HTTP, Observability-Tracing
pmiazga added a comment to T344149: Proof of Concept: OpenTelemetry in MediaWiki.

For quick hacking I'm going to use the OpenTelemetry monorepo - https://github.com/open-telemetry/opentelemetry-php as the one from mszabo (https://github.com/mszabo-wikia/opentelemetry-php) seems a bit outdated.

Aug 22 2023, 10:57 AM · Patch-For-Review, Spike, MediaWiki-Platform-Team, MediaWiki-libs-HTTP, Observability-Tracing

Aug 21 2023

pmiazga added a comment to T343983: Error: Call to a member function getTimestamp() on null.

@Dreamy_Jazz - I quickly checked this code and I found that this is caused by this line

Aug 21 2023, 3:47 PM · MediaWiki-Platform-Team (Radar), MW-1.41-notes (1.41.0-wmf.30; 2023-10-10), Anti-Harassment (AHaT Sprint 32 - Baseball Cap), MediaWiki-User-rename, MediaWiki-extensions-CentralAuth, CheckUser, Wikimedia-production-error
pmiazga reopened T344149: Proof of Concept: OpenTelemetry in MediaWiki, a subtask of T320549: distributed tracing v0 [minimum viable], as Open.
Aug 21 2023, 1:53 PM · Epic, Observability-Tracing
pmiazga reopened T344149: Proof of Concept: OpenTelemetry in MediaWiki as "Open".
Aug 21 2023, 1:53 PM · Patch-For-Review, Spike, MediaWiki-Platform-Team, MediaWiki-libs-HTTP, Observability-Tracing
pmiazga added a project to T344149: Proof of Concept: OpenTelemetry in MediaWiki: MediaWiki-Platform-Team.
Aug 21 2023, 1:49 PM · Patch-For-Review, Spike, MediaWiki-Platform-Team, MediaWiki-libs-HTTP, Observability-Tracing
pmiazga assigned T335515: Error: Call to a member function getId() on bool to matmarex.
Aug 21 2023, 1:48 PM · MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth, MediaWiki-Core-AuthManager, Wikimedia-production-error
pmiazga moved T328699: Consider including a JS runtime as part of MediaWiki from Inbox, needs triage to Radar on the MediaWiki-Platform-Team board.
Aug 21 2023, 1:41 PM · MediaWiki-Platform-Team (Radar), Design-Systems-Team, Front-end Modernization, MediaWiki-ResourceLoader
pmiazga moved T321394: Investigate possible sticky module cache poisoning bug from Inbox, needs triage to Current Sprint on the MediaWiki-Platform-Team board.
Aug 21 2023, 1:38 PM · MW-1.41-notes (1.41.0-wmf.25; 2023-09-05), MediaWiki-Platform-Team, Patch-For-Review, MediaWiki-ResourceLoader