Page MenuHomePhabricator

DAlangi_WMF
Senior Software Engineer

Today

  • No visible events.

Tomorrow

  • No visible events.

Wednesday

  • No visible events.

User Details

User Since
Jan 7 2020, 11:30 AM (308 w, 6 d)
Availability
Available
IRC Nick
xSavitar
LDAP User
Unknown
MediaWiki User
DAlangi (WMF) [ Global Accounts ]

Official WMF Phabricator work account. @xSavitar is my volunteer account. Use that for non-WMF related things.

Recent Activity

Today

DAlangi_WMF added a comment to T411952: Special:CreateLocalAccount doesn't create accounts for other users due to IP blocks, even when I am a sysop.

@HideonRosie, an attempted fix was deployed. Could you check to see if the issue is resolved on your side? Thanks!

Mon, Dec 8, 2:57 PM · MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.5; 2025-12-02), MediaWiki-extensions-CentralAuth

Fri, Dec 5

DAlangi_WMF added a comment to T411822: Bogus "Your central login session has expired." message when trying to switch accounts.

I observed that during testing locally, when the user is logged in locally and logged out centrally, visiting Special:CreateAccount or Special:UserLogin from the local wiki redirects to Special:UserLogin regardless.

Fri, Dec 5, 11:18 AM · MediaWiki-extensions-CentralAuth, MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-login-and-signup
DAlangi_WMF changed the status of T411822: Bogus "Your central login session has expired." message when trying to switch accounts from Open to In Progress.
Fri, Dec 5, 9:40 AM · MediaWiki-extensions-CentralAuth, MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-login-and-signup
DAlangi_WMF moved T411822: Bogus "Your central login session has expired." message when trying to switch accounts from Inbox, needs triage to Kanban Board on the MediaWiki-Platform-Team board.
Fri, Dec 5, 9:39 AM · MediaWiki-extensions-CentralAuth, MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-login-and-signup
DAlangi_WMF added a comment to T411822: Bogus "Your central login session has expired." message when trying to switch accounts.

Oops, I missed this during code review and local testing of 56126683a56. Fixed now:

Fri, Dec 5, 9:39 AM · MediaWiki-extensions-CentralAuth, MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-login-and-signup

Thu, Dec 4

DAlangi_WMF added a comment to T411804: [SpecialConfirmEmail] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..

Potentially related: T411799: E-mail doesn't get confirmed and gets unlinked constantly

Thu, Dec 4, 5:28 PM · Patch-For-Review, MediaWiki-Platform-Team (Kanban Board), MediaWiki-Email, Wikimedia-production-error
DAlangi_WMF added a comment to T411804: [SpecialConfirmEmail] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..

Another trace coming from SessionBackend:

Thu, Dec 4, 5:24 PM · Patch-For-Review, MediaWiki-Platform-Team (Kanban Board), MediaWiki-Email, Wikimedia-production-error
DAlangi_WMF moved T411804: [SpecialConfirmEmail] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version. from Next to In Progress on the MediaWiki-Platform-Team (Kanban Board) board.
Thu, Dec 4, 5:01 PM · Patch-For-Review, MediaWiki-Platform-Team (Kanban Board), MediaWiki-Email, Wikimedia-production-error
DAlangi_WMF moved T411804: [SpecialConfirmEmail] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version. from Inbox, needs triage to Kanban Board on the MediaWiki-Platform-Team board.
Thu, Dec 4, 5:01 PM · Patch-For-Review, MediaWiki-Platform-Team (Kanban Board), MediaWiki-Email, Wikimedia-production-error
DAlangi_WMF claimed T411804: [SpecialConfirmEmail] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..
Thu, Dec 4, 5:01 PM · Patch-For-Review, MediaWiki-Platform-Team (Kanban Board), MediaWiki-Email, Wikimedia-production-error
DAlangi_WMF added a comment to T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..

File T411804: [SpecialConfirmEmail] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version. separately. The trace is different and I think it should be easy to fix.

Thu, Dec 4, 5:00 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error
DAlangi_WMF created T411804: [SpecialConfirmEmail] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..
Thu, Dec 4, 4:59 PM · Patch-For-Review, MediaWiki-Platform-Team (Kanban Board), MediaWiki-Email, Wikimedia-production-error
DAlangi_WMF renamed T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version. from RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version. to [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..
Thu, Dec 4, 4:56 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error
DAlangi_WMF moved T411397: Fix "ord(): Providing an empty string is deprecated" PHP 8.5 warning in Less_Parser from Next to In Progress on the MediaWiki-Platform-Team (Kanban Board) board.
Thu, Dec 4, 4:00 PM · MediaWiki-Platform-Team (Kanban Board), PHP 8.5 support, Less.php
DAlangi_WMF moved T411397: Fix "ord(): Providing an empty string is deprecated" PHP 8.5 warning in Less_Parser from Inbox, needs triage to Kanban Board on the MediaWiki-Platform-Team board.
Thu, Dec 4, 3:59 PM · MediaWiki-Platform-Team (Kanban Board), PHP 8.5 support, Less.php
DAlangi_WMF moved T411400: Fix "Using null as an array offset is deprecated" PHP 8.5 warning in Less_ImportVisitor from Next to In Progress on the MediaWiki-Platform-Team (Kanban Board) board.
Thu, Dec 4, 3:43 PM · MediaWiki-Platform-Team (Kanban Board), PHP 8.5 support, Less.php
DAlangi_WMF moved T411400: Fix "Using null as an array offset is deprecated" PHP 8.5 warning in Less_ImportVisitor from Inbox, needs triage to Kanban Board on the MediaWiki-Platform-Team board.
Thu, Dec 4, 3:42 PM · MediaWiki-Platform-Team (Kanban Board), PHP 8.5 support, Less.php
DAlangi_WMF closed T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version. as Resolved.
Thu, Dec 4, 2:56 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error
DAlangi_WMF added a comment to T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..

After deploying the backport of I49fcec68427b70f (f674fc54418b9b2de5a) and monitoring the logs, the issue is no longer occurring after 14:35:30 (last occurrence): https://logstash.wikimedia.org/goto/0343934111dcac6d80b17f749494aa1b

Thu, Dec 4, 2:55 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error
DAlangi_WMF added a comment to T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..

Hm. I thought AuthManager makes sure it is a primary user but I must have misread the code because for login it acutally doesn't. I suppose there isn't really a strong reason to, most authentication providers wouldn't change user data on login.

Thu, Dec 4, 8:59 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error

Wed, Dec 3

DAlangi_WMF added a comment to T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..

Logs after deployment shows:

Wed, Dec 3, 9:47 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error
DAlangi_WMF added a comment to T410764: MediaWiki periodic job startupregistrystats-mediawikiwiki failed.

@matmarex, this one: T411654: MediaWiki periodic job startupregistrystats failed just showed up on our board (not long ago), and I left a comment there.

Wed, Dec 3, 6:37 PM · SRE Observability, serviceops, MediaWiki-Platform-Team (Kanban Board)
DAlangi_WMF added a comment to T411654: MediaWiki periodic job startupregistrystats failed.

Per https://logstash.wikimedia.org/goto/d830f3d25c48f8fa7e38e8bd8ae17895, this appears to be a service-mesh issue, as the logs suggest.

Wed, Dec 3, 6:36 PM · MediaWiki-Platform-Team
DAlangi_WMF updated subscribers of T410764: MediaWiki periodic job startupregistrystats-mediawikiwiki failed.

We've had several past instances of issues like:

Wed, Dec 3, 6:31 PM · SRE Observability, serviceops, MediaWiki-Platform-Team (Kanban Board)
DAlangi_WMF added a comment to T410878: wmfGetPrivilegedGroups is slow.

We've just added a cache, so it's still slow the first time, then fast after. I think this is good enough? It should minimize the impact of using this data in any additional logging.

Wed, Dec 3, 11:01 AM · Performance Issue, MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Platform-Team (Kanban Board), MediaWiki-extensions-CentralAuth
DAlangi_WMF closed T408724: Clean up $performer parameter of AuthManager::autoCreateUser() as Resolved.

Thanks for landing the final piece @matmarex. This can be resolved now!

Wed, Dec 3, 10:51 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-Core-AuthManager

Tue, Dec 2

DAlangi_WMF added a comment to T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..

I've monitored Logstash since the deployment, but it hasn't gone down. These lines up accurately with https://logstash.wikimedia.org/goto/71373cec585746d63094e22d911053b4 (CAS update failed on user_touched for user ID '{user_id}' ({db_flag} read)), which are all coming from replica DBs.

Tue, Dec 2, 6:22 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error

Mon, Dec 1

DAlangi_WMF assigned T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version. to Tgr.
Mon, Dec 1, 2:04 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error
DAlangi_WMF added a comment to T411278: Broken / flaky Selenium / WebdriverIO test: Page should be protectable: mw.loader.using is not available / WebDriverError: element click intercepted.

Affects https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1213109 as well. 2 times in a row.

Mon, Dec 1, 1:00 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Core-Tests, ci-test-error (WMF-deployed Build Failure)

Fri, Nov 28

DAlangi_WMF added a comment to T385310: Could not find local user data for {username}@{wikiId} (2025).

Just adding that we've also been working on T408724: Clean up $performer parameter of AuthManager::autoCreateUser() for some time now, which may affect this task as well.

Fri, Nov 28, 2:13 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, MediaWiki-extensions-CentralAuth, Wikimedia-production-error

Wed, Nov 26

DAlangi_WMF moved T410518: Some OAuth special pages give an unhelpful error when not on a central wiki from Next to In Progress on the MediaWiki-Platform-Team (Kanban Board) board.
Wed, Nov 26, 7:00 PM · MW-1.46-notes (1.46.0-wmf.5; 2025-12-02), MediaWiki-Platform-Team (Kanban Board), MediaWiki-extensions-OAuth
DAlangi_WMF moved T410878: wmfGetPrivilegedGroups is slow from Next to In Progress on the MediaWiki-Platform-Team (Kanban Board) board.
Wed, Nov 26, 7:00 PM · Performance Issue, MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Platform-Team (Kanban Board), MediaWiki-extensions-CentralAuth
DAlangi_WMF added a comment to T410878: wmfGetPrivilegedGroups is slow.

Looking at the flame graph, I wanted to understand why CentralAuth::localUserData() triggers so many SQB::fetchRow() calls, and quickly realized this was influenced by edge-login (to other wikis). So, for a given request (after a user successfully logs in on the shared domain and the local wiki for that request), edge-login occurs in the same request (for all wikis in LocalDatabases / parent-domains), and I was able to observe this locally as well.

Wed, Nov 26, 11:58 AM · Performance Issue, MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Platform-Team (Kanban Board), MediaWiki-extensions-CentralAuth
DAlangi_WMF moved T385310: Could not find local user data for {username}@{wikiId} (2025) from Inbox, needs triage to Kanban Board on the MediaWiki-Platform-Team board.
Wed, Nov 26, 11:26 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, MediaWiki-extensions-CentralAuth, Wikimedia-production-error
DAlangi_WMF added a comment to T385310: Could not find local user data for {username}@{wikiId} (2025).

AuthManager::autoCreateUser() invokes the GetSecurityLogContext hook which on this line will trigger a call to wmfGetPrivilegedGroups().

Wed, Nov 26, 11:25 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, MediaWiki-extensions-CentralAuth, Wikimedia-production-error
DAlangi_WMF updated subscribers of T385310: Could not find local user data for {username}@{wikiId} (2025).

Did some digging and found something probably useful. The increase aligns with the train deployment on Nov 18 (ref. https://www.mediawiki.org/wiki/MediaWiki_1.46/wmf.3). So I'm thinking the culprit is https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1202566 Cc @kostajh

Wed, Nov 26, 10:50 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, MediaWiki-extensions-CentralAuth, Wikimedia-production-error

Tue, Nov 25

DAlangi_WMF closed T405450: RequestContext::importScopedSession fails in JobQueue when using --procs as Resolved.

Seems to work now. Thanks!

Tue, Nov 25, 9:43 AM · MW-1.45-notes, affects-translatewiki.net, MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Core-AuthManager
DAlangi_WMF closed T405450: RequestContext::importScopedSession fails in JobQueue when using --procs, a subtask of T404691: RenderTranslationPageJob: Sessions can only be imported when none is active., as Resolved.
Tue, Nov 25, 9:43 AM · LPL Essential (FY2025-26 Q2), LPL Projects (Other), Unplanned-Sprint-Work, affects-translatewiki.net

Mon, Nov 24

DAlangi_WMF moved T405450: RequestContext::importScopedSession fails in JobQueue when using --procs from In Progress to Blocked on the MediaWiki-Platform-Team (Kanban Board) board.
Mon, Nov 24, 3:41 PM · MW-1.45-notes, affects-translatewiki.net, MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Core-AuthManager

Sat, Nov 22

DAlangi_WMF added a comment to T385310: Could not find local user data for {username}@{wikiId} (2025).

This seems to be happening a lot recently: https://logstash.wikimedia.org/goto/687a23ae924b1a76ac8da97c479dcec6, although the stack trace (see below) differs from the original one in the task description.

Sat, Nov 22, 7:42 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, MediaWiki-extensions-CentralAuth, Wikimedia-production-error

Fri, Nov 21

DAlangi_WMF added a subtask for T332865: PHPUnit data providers should be simple static functions that return plain data: T410731: Make production extensions PHPUnit tests data providers real providers (and use static methods).
Fri, Nov 21, 12:51 PM · MW-1.45-notes (1.45.0-wmf.3; 2025-05-27), MW-1.44-notes (1.44.0-wmf.28; 2025-05-06), MediaWiki-extensions-General, MediaWiki-Core-Tests, MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.41-notes (1.41.0-wmf.20; 2023-08-01)
DAlangi_WMF added a parent task for T410731: Make production extensions PHPUnit tests data providers real providers (and use static methods): T332865: PHPUnit data providers should be simple static functions that return plain data.
Fri, Nov 21, 12:50 PM · MediaWiki-extensions-General, MW-1.46-notes (1.46.0-wmf.4; 2025-11-25)
DAlangi_WMF updated the task description for T410731: Make production extensions PHPUnit tests data providers real providers (and use static methods).
Fri, Nov 21, 12:50 PM · MediaWiki-extensions-General, MW-1.46-notes (1.46.0-wmf.4; 2025-11-25)
DAlangi_WMF created T410731: Make production extensions PHPUnit tests data providers real providers (and use static methods).
Fri, Nov 21, 12:49 PM · MediaWiki-extensions-General, MW-1.46-notes (1.46.0-wmf.4; 2025-11-25)
DAlangi_WMF updated subscribers of T410652: [EmailAuth] RuntimeException: CAS update failed on user_touched. The version of the user to be saved is older than the current version..

@brennen, seems like this is also similar to T383050: CAS update failed on gu_cas_token for user ID '{globalId}' (read from {from}); the version of the user to be saved is older than the current version. that was declined? Cc @Tgr

Fri, Nov 21, 9:27 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-User-management, MediaWiki-Core-AuthManager, User-brennen, Wikimedia-production-error
DAlangi_WMF moved T410273: api rate limiting: Assign ratelimit class based on IP range from Needs refinement to In progress (DO NOT USE) on the MediaWiki-Platform-Team board.
Fri, Nov 21, 9:11 AM · MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, serviceops, OKR-Work
DAlangi_WMF changed the status of T409901: TypeError: array_keys(): Argument #1 ($array) must be of type array, null given by $resourceServer->getScopes() from In Progress to Open.

Thanks @Tgr for merging.

Fri, Nov 21, 9:05 AM · MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-extensions-OAuth, Wikimedia-production-error
DAlangi_WMF moved T410596: PHP 8.5 deprecation error on wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php:242 Using null as key parameter for array_key_exists() from Inbox, needs triage to In progress (DO NOT USE) on the MediaWiki-Platform-Team board.
Fri, Nov 21, 9:01 AM · MediaWiki-Platform-Team (Kanban Board), PHP 8.5 support, Less.php

Thu, Nov 20

DAlangi_WMF added a project to T410596: PHP 8.5 deprecation error on wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php:242 Using null as key parameter for array_key_exists(): PHP 8.5 support.
Thu, Nov 20, 6:37 AM · MediaWiki-Platform-Team (Kanban Board), PHP 8.5 support, Less.php
DAlangi_WMF added a subtask for T410514: Using null as array offset or as the key parameter for array_key_exists() is deprecated in PHP 8.5: T410596: PHP 8.5 deprecation error on wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php:242 Using null as key parameter for array_key_exists().
Thu, Nov 20, 6:31 AM · MW-1.44-notes, MW-1.45-notes, MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-General, PHP 8.5 support
DAlangi_WMF added a parent task for T410596: PHP 8.5 deprecation error on wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php:242 Using null as key parameter for array_key_exists(): T410514: Using null as array offset or as the key parameter for array_key_exists() is deprecated in PHP 8.5.
Thu, Nov 20, 6:31 AM · MediaWiki-Platform-Team (Kanban Board), PHP 8.5 support, Less.php
DAlangi_WMF created T410596: PHP 8.5 deprecation error on wikimedia/less.php/lib/Less/Tree/Mixin/Definition.php:242 Using null as key parameter for array_key_exists().
Thu, Nov 20, 6:28 AM · MediaWiki-Platform-Team (Kanban Board), PHP 8.5 support, Less.php
DAlangi_WMF added a comment to T410514: Using null as array offset or as the key parameter for array_key_exists() is deprecated in PHP 8.5.

Reflects https://github.com/wikimedia/less.php/issues/134. Thanks for filing, @Reedy.

Thu, Nov 20, 6:22 AM · MW-1.44-notes, MW-1.45-notes, MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-General, PHP 8.5 support

Wed, Nov 19

DAlangi_WMF claimed T410129: OAuth tests are failing when no other extension is loaded.
Wed, Nov 19, 7:31 AM · MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Platform-Team, MediaWiki-extensions-OAuth
DAlangi_WMF closed T410129: OAuth tests are failing when no other extension is loaded, a subtask of T407797: Create a CI job to enforce tests to pass with solely required extensions, as Resolved.
Wed, Nov 19, 7:30 AM · Patch-For-Review, Continuous-Integration-Config
DAlangi_WMF closed T410129: OAuth tests are failing when no other extension is loaded as Resolved.
Wed, Nov 19, 7:30 AM · MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Platform-Team, MediaWiki-extensions-OAuth

Tue, Nov 18

DAlangi_WMF added a comment to T405450: RequestContext::importScopedSession fails in JobQueue when using --procs.

@Nikerabbit, let me know if the issue persists for you. Thanks!

Tue, Nov 18, 1:54 PM · MW-1.45-notes, affects-translatewiki.net, MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Core-AuthManager
DAlangi_WMF added a comment to T405450: RequestContext::importScopedSession fails in JobQueue when using --procs.

I suspected that. So it seems like there are more consumers of the SessionManager in this way, in addition to PHPSessionHandler::read(). We also have PHPSessionHandler::write() and PHPSessionHandler::destroy(). I'll centralize the logic for getting a new session manager object so that callers can use it. Thanks for posting the trace.

Tue, Nov 18, 9:03 AM · MW-1.45-notes, affects-translatewiki.net, MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Core-AuthManager
DAlangi_WMF moved T410203: lcobucci/jwt 4.1.5 is not compatible with newer PHP versions from Next (DO NOT USE) to In progress (DO NOT USE) on the MediaWiki-Platform-Team board.
Tue, Nov 18, 6:36 AM · MW-1.46-notes (1.46.0-wmf.3; 2025-11-19), MW-1.45-release, MW-1.44-release, MW-1.43-release, PHP 8.5 support, PHP 8.4 support, PHP 8.3 support, MediaWiki-Platform-Team, MediaWiki-extensions-OAuth
DAlangi_WMF assigned T410129: OAuth tests are failing when no other extension is loaded to hashar.
Tue, Nov 18, 6:31 AM · MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Platform-Team, MediaWiki-extensions-OAuth
DAlangi_WMF changed the status of T409901: TypeError: array_keys(): Argument #1 ($array) must be of type array, null given by $resourceServer->getScopes() from Open to In Progress.
Tue, Nov 18, 6:30 AM · MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-extensions-OAuth, Wikimedia-production-error

Mon, Nov 17

DAlangi_WMF added a comment to T405450: RequestContext::importScopedSession fails in JobQueue when using --procs.

Reported too early, unfortunately the issue persists.

Mon, Nov 17, 3:35 PM · MW-1.45-notes, affects-translatewiki.net, MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Core-AuthManager
DAlangi_WMF claimed T409984: Special:PasswordReset loops through Special:Userlogin when it shouldn't.
Mon, Nov 17, 3:17 PM · MW-1.46-notes (1.46.0-wmf.5; 2025-12-02), MediaWiki-Platform-Team (Kanban Board), Regression, MediaWiki-extensions-CentralAuth, MediaWiki-User-login-and-signup
DAlangi_WMF changed the status of T409984: Special:PasswordReset loops through Special:Userlogin when it shouldn't from Open to In Progress.
Mon, Nov 17, 3:16 PM · MW-1.46-notes (1.46.0-wmf.5; 2025-12-02), MediaWiki-Platform-Team (Kanban Board), Regression, MediaWiki-extensions-CentralAuth, MediaWiki-User-login-and-signup
DAlangi_WMF added a comment to T409984: Special:PasswordReset loops through Special:Userlogin when it shouldn't.

Special:PasswordReset shouldn't require reauthentication, as it is available unauthenticated

Mon, Nov 17, 3:04 PM · MW-1.46-notes (1.46.0-wmf.5; 2025-12-02), MediaWiki-Platform-Team (Kanban Board), Regression, MediaWiki-extensions-CentralAuth, MediaWiki-User-login-and-signup
DAlangi_WMF added a comment to T405231: Deprecate User::getInstanceForUpdate().

I forgot to rename a bunch of getInstanceForUpdate mocks in EmailNotificationSecondaryAuthenticationProviderTest, and it's passing anyway, so maybe it's not actually testing what it's supposed to.

Mon, Nov 17, 11:51 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), Moderator-Tools-Team (Kanban), MediaWiki-Platform-Team (Kanban Board), MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), MediaWiki-User-management
DAlangi_WMF added a comment to T409984: Special:PasswordReset loops through Special:Userlogin when it shouldn't.

This was added in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/1128044. Also, note that credentials change may require security re-authentication (and PasswordReset could be one of them). So I'm not sure removing it from central special pages would work nicely.

Mon, Nov 17, 11:39 AM · MW-1.46-notes (1.46.0-wmf.5; 2025-12-02), MediaWiki-Platform-Team (Kanban Board), Regression, MediaWiki-extensions-CentralAuth, MediaWiki-User-login-and-signup
DAlangi_WMF moved T406402: Use relative URL for local redirects in OutputPage from Next (DO NOT USE) to In progress (DO NOT USE) on the MediaWiki-Platform-Team board.
Mon, Nov 17, 11:25 AM · MediaWiki-Platform-Team (Kanban Board), MW-1.45-notes (1.45.0-wmf.25; 2025-10-28), Patch-For-Review, MediaWiki-General
DAlangi_WMF moved T410129: OAuth tests are failing when no other extension is loaded from Inbox, needs triage to In progress (DO NOT USE) on the MediaWiki-Platform-Team board.
Mon, Nov 17, 10:58 AM · MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Platform-Team, MediaWiki-extensions-OAuth
DAlangi_WMF added a comment to T406566: BadMethodCallException: MediaWiki\Session\SessionProvider::preventSessionsForUser must be implemented when canChangeUser() is false.
Mon, Nov 17, 10:50 AM · MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), Discovery-Search (2025.10.20 - 2025.12.31), MediaWiki-Platform-Team (Radar), NetworkSession, MW-1.45-notes (1.45.0-wmf.22; 2025-10-07), MediaWiki-Core-AuthManager, Wikimedia-production-error

Nov 5 2025

DAlangi_WMF closed T353180: Flaky test WANObjectCacheTest::testPreemptiveRefresh (at least under php8.2 and php8.3) as Resolved.

All patches merged and tests fixed. Thanks, @Krinkle, for working on this.

Nov 5 2025, 1:47 PM · MW-1.46-notes (1.46.0-wmf.2; 2025-11-12), MediaWiki-Platform-Team, PHP 8.3 support, PHP 8.2 support, ci-test-error, MediaWiki-libs-BagOStuff
DAlangi_WMF created T409283: Parsoid fails PHP 8.4 during MW installation with 'Error: Class "Wikimedia\Parsoid\DOM\HTMLDocument" not found'.
Nov 5 2025, 12:52 PM · Essential-Work, Content-Transform-Team (Work In Progress), ci-test-error (WMF-deployed Build Failure), PHP 8.4 support, Parsoid

Nov 4 2025

DAlangi_WMF changed the status of T409184: OAuth extension's Utils::getCentralDB() is used both for OAuth DB handle and central wiki DB handle from Open to In Progress.
Nov 4 2025, 4:17 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-extensions-OAuth
DAlangi_WMF added a comment to T409184: OAuth extension's Utils::getCentralDB() is used both for OAuth DB handle and central wiki DB handle.

Ah, apologies about that @Tgr, I was supposed to remove that migration code after the migration. Made a fix, thanks for filing the issue.

Nov 4 2025, 4:16 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-extensions-OAuth
DAlangi_WMF added a comment to T408724: Clean up $performer parameter of AuthManager::autoCreateUser().

Per CodeSearch search, luckily not so many places in WMF deployed repos: https://codesearch.wmcloud.org/deployed/?q=%3EautoCreateUser%5C%28

Nov 4 2025, 12:19 PM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-Core-AuthManager
DAlangi_WMF changed the status of T408724: Clean up $performer parameter of AuthManager::autoCreateUser() from Open to In Progress.
Nov 4 2025, 11:56 AM · MW-1.46-notes (1.46.0-wmf.7; 2025-12-16), MediaWiki-Platform-Team (Kanban Board), MediaWiki-Core-AuthManager

Oct 31 2025

DAlangi_WMF changed the status of T405450: RequestContext::importScopedSession fails in JobQueue when using --procs, a subtask of T404691: RenderTranslationPageJob: Sessions can only be imported when none is active., from Open to In Progress.
Oct 31 2025, 2:08 PM · LPL Essential (FY2025-26 Q2), LPL Projects (Other), Unplanned-Sprint-Work, affects-translatewiki.net
DAlangi_WMF changed the status of T405450: RequestContext::importScopedSession fails in JobQueue when using --procs from Open to In Progress.
Oct 31 2025, 2:08 PM · MW-1.45-notes, affects-translatewiki.net, MediaWiki-Platform-Team (Kanban Board), MW-1.46-notes (1.46.0-wmf.4; 2025-11-25), MediaWiki-Core-AuthManager

Oct 30 2025

DAlangi_WMF closed T406170: Metric anomaly in resourceloader_build_seconds after 26 June 2025 as Resolved.

Backports were deployed in https://wikitech.wikimedia.org/wiki/Deployments#deploycal-item-20251030T2000, but something interesting happened, and I filed T408868: Log deployment activities on auto-detected changes during deployment.

Oct 30 2025, 8:50 PM · MW-1.46-notes (1.46.0-wmf.1; 2025-11-05), MW-1.45-notes (1.45.0-wmf.25; 2025-10-28), MediaWiki-libs-Stats, MediaWiki-Platform-Team, Regression, MediaWiki-ResourceLoader
DAlangi_WMF created T408868: Log deployment activities on auto-detected changes during deployment.
Oct 30 2025, 8:46 PM · Scap
DAlangi_WMF added a comment to T408781: PHP Deprecated: Asking for a replica from groups except dump/vslow is deprecated: watchlist.

Found T408540: PHP Deprecated: Asking for a replica from groups except dump/vslow is deprecated: watchlist [Called from Wikimedia\Rdbms\LoadBalancer::getConnectionInternal] and it looks like that has been resolved.

Oct 30 2025, 11:56 AM · StructuredDiscussions, Wikimedia-production-error
DAlangi_WMF created T408781: PHP Deprecated: Asking for a replica from groups except dump/vslow is deprecated: watchlist.
Oct 30 2025, 9:01 AM · StructuredDiscussions, Wikimedia-production-error

Oct 24 2025

DAlangi_WMF changed the status of T406170: Metric anomaly in resourceloader_build_seconds after 26 June 2025 from Open to In Progress.
Oct 24 2025, 5:12 PM · MW-1.46-notes (1.46.0-wmf.1; 2025-11-05), MW-1.45-notes (1.45.0-wmf.25; 2025-10-28), MediaWiki-libs-Stats, MediaWiki-Platform-Team, Regression, MediaWiki-ResourceLoader
DAlangi_WMF added a comment to T408221: Codesearch seems to be out of disk space (Oct 2025).

used disk space was 100% and is now 37%

Oct 24 2025, 4:53 PM · collaboration-services, VPS-project-Codesearch
DAlangi_WMF created T408221: Codesearch seems to be out of disk space (Oct 2025).
Oct 24 2025, 3:33 PM · collaboration-services, VPS-project-Codesearch

Oct 23 2025

DAlangi_WMF closed T407114: "Account on central wiki is not attached (this shouldn't happen)" as Resolved.
Oct 23 2025, 4:18 PM · MW-1.45-notes (1.45.0-wmf.25; 2025-10-28), MediaWiki-Platform-Team, MediaWiki-Core-AuthManager

Oct 22 2025

DAlangi_WMF closed T383354: Migrate OAuthRateLimiter to use virtual domains, a subtask of T348573: All Wikimedia extensions that store their data outside the main database should use a virtual database domain, as Resolved.
Oct 22 2025, 5:41 PM · MediaWiki-extensions-General, Patch-For-Review, Epic
DAlangi_WMF closed T383354: Migrate OAuthRateLimiter to use virtual domains as Resolved.
Oct 22 2025, 5:41 PM · MW-1.45-notes (1.45.0-wmf.25; 2025-10-28), MediaWiki-Platform-Team, MediaWiki-extensions-OAuthRateLimiter

Oct 21 2025

DAlangi_WMF added a comment to T406433: Warning "User::loadFromSession called before the end of Setup.php" (2025 October).

As suspected, the onSaveUserOptions() (ref) hook handler in BetaFeatures doesn't short-circuit on anonymous and temporary users. Examining new logs with user ID and username, I can already identify requests with user IDs of 0 and usernames of false or an IP address.

Oct 21 2025, 8:27 PM · MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), MediaWiki-Core-AuthManager
DAlangi_WMF moved T406433: Warning "User::loadFromSession called before the end of Setup.php" (2025 October) from Needs refinement to Next (DO NOT USE) on the MediaWiki-Platform-Team board.
Oct 21 2025, 2:12 PM · MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), MediaWiki-Core-AuthManager
DAlangi_WMF added a comment to T406433: Warning "User::loadFromSession called before the end of Setup.php" (2025 October).

I've looked at various request IDs on Logstash, and the stacktraces all look the same. Was hoping I'll see a different stacktrace, but I've not spotted a single one different from the one below:

Oct 21 2025, 1:40 PM · MediaWiki-Platform-Team (Kanban Board), Patch-For-Review, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), MediaWiki-Core-AuthManager

Oct 20 2025

DAlangi_WMF moved T384442: Create OAuth 2 Hello World app from Needs refinement to In progress (DO NOT USE) on the MediaWiki-Platform-Team board.
Oct 20 2025, 6:50 AM · MediaWiki-Platform-Team (Kanban Board), MediaWiki-extensions-OAuth

Oct 19 2025

DAlangi_WMF updated the task description for T113938: GlobalRenameRequest: Allow to suppress rename requests.
Oct 19 2025, 9:02 PM · MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth, GlobalRename

Oct 17 2025

DAlangi_WMF closed T407145: Monitor read-only MultiBackend session store (post-deployment to all wikis), a subtask of T398814: WE5.1.1 Session storage protection, as Resolved.
Oct 17 2025, 7:45 PM · FY2025-26 KR 5.1, OKR-Work, Goal
DAlangi_WMF closed T407145: Monitor read-only MultiBackend session store (post-deployment to all wikis) as Resolved.

Closing this as resolved. Everything looks stable after the deployment, and we haven't had any reports of issues.

Oct 17 2025, 7:45 PM · MediaWiki-Platform-Team, FY2025-26 KR 5.1, OKR-Work, Goal
DAlangi_WMF updated the task description for T407145: Monitor read-only MultiBackend session store (post-deployment to all wikis).
Oct 17 2025, 7:44 PM · MediaWiki-Platform-Team, FY2025-26 KR 5.1, OKR-Work, Goal
DAlangi_WMF renamed T407145: Monitor read-only MultiBackend session store (post-deployment to all wikis) from Monitor read-only of MultiBackend session store (post-deployment to all wikis) to Monitor read-only MultiBackend session store (post-deployment to all wikis).
Oct 17 2025, 12:37 PM · MediaWiki-Platform-Team, FY2025-26 KR 5.1, OKR-Work, Goal
DAlangi_WMF updated the task description for T407145: Monitor read-only MultiBackend session store (post-deployment to all wikis).
Oct 17 2025, 12:36 PM · MediaWiki-Platform-Team, FY2025-26 KR 5.1, OKR-Work, Goal

Oct 16 2025

DAlangi_WMF changed the status of T383354: Migrate OAuthRateLimiter to use virtual domains, a subtask of T348573: All Wikimedia extensions that store their data outside the main database should use a virtual database domain, from Open to In Progress.
Oct 16 2025, 10:59 AM · MediaWiki-extensions-General, Patch-For-Review, Epic
DAlangi_WMF changed the status of T383354: Migrate OAuthRateLimiter to use virtual domains from Open to In Progress.
Oct 16 2025, 10:59 AM · MW-1.45-notes (1.45.0-wmf.25; 2025-10-28), MediaWiki-Platform-Team, MediaWiki-extensions-OAuthRateLimiter