Page MenuHomePhabricator

MediaWiki-libs-RequestTimeoutComponent
ActivePublic

Members

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

Watchers

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

Details

Description

This project covers the wikimedia/request-timeout PHP library and its configuration/ServiceWiring in MediaWiki core.

Recent Activity

Sep 11 2025

Waddie96 created T404317: mw UI widgets HTTP 502 and request timeouts.
Sep 11 2025, 10:15 AM · Wikimedia-production-error

Aug 21 2025

Lucas_Werkmeister_WMDE added a comment to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled.

I've found another example of Xdebug's object retention causing tests to fail. As of late, I can't get composer phpunit tests/phpunit/includes/language/MessageTest.php to pass locally.

Aug 21 2025, 1:05 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms

Mar 24 2025

Tgr added a project to T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated: MediaWiki-Debug-Logger.
Mar 24 2025, 3:00 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout
Tgr added a comment to T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated.

This can happen with non-exceptions as well (e.g. T389801: [error/html2wt] Input DOM is not well-formed. Top-level <li> found that is not nested in <ol>/<ul>\n LI-node). I think it should be handled by LogstashFormatter.

Mar 24 2025, 3:00 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout

Mar 14 2025

Polygnotus added a project to T388935: HTTP 500 Timeout trying to reach page with >50000 links: MediaWiki-libs-RequestTimeout.
Mar 14 2025, 9:03 PM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), Essential-Work, Content-Transform-Team (Work In Progress), Performance Issue, MassMessage

Mar 9 2025

Krinkle added a comment to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled.

I've found another example of Xdebug's object retention causing tests to fail. As of late, I can't get composer phpunit tests/phpunit/includes/language/MessageTest.php to pass locally.

Mar 9 2025, 8:54 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms

Feb 17 2025

larissagaulia moved T385965: Allow MediaWiki to run with ini_set and putenv disabled from Inbox, needs triage to Radar on the MediaWiki-Platform-Team board.
Feb 17 2025, 2:17 PM · MediaWiki-Platform-Team (Radar), Security, MediaWiki-libs-RequestTimeout, MediaWiki-libs-BagOStuff, MediaWiki-General
Tgr added a comment to T385965: Allow MediaWiki to run with ini_set and putenv disabled.

a temporary workaround for this bug is to add the following to the top of your LocalSettings.php file (before any require() or include()s)

Feb 17 2025, 1:46 PM · MediaWiki-Platform-Team (Radar), Security, MediaWiki-libs-RequestTimeout, MediaWiki-libs-BagOStuff, MediaWiki-General
Tgr added a project to T385965: Allow MediaWiki to run with ini_set and putenv disabled: Security.
Feb 17 2025, 1:25 PM · MediaWiki-Platform-Team (Radar), Security, MediaWiki-libs-RequestTimeout, MediaWiki-libs-BagOStuff, MediaWiki-General

Feb 15 2025

Pppery added a project to T385965: Allow MediaWiki to run with ini_set and putenv disabled: MediaWiki-libs-RequestTimeout.
Feb 15 2025, 4:12 PM · MediaWiki-Platform-Team (Radar), Security, MediaWiki-libs-RequestTimeout, MediaWiki-libs-BagOStuff, MediaWiki-General

Jan 28 2025

Reedy closed T384917: Declaration of Wikimedia\RequestTimeout\TimeoutException::__construct should be compatible with Wikimedia\NormalizedException\NormalizedException::normalizedConstructor, a subtask of T384918: RequestTimeout not actually running PHPUnit in CI, as Resolved.
Jan 28 2025, 8:45 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
Reedy closed T384917: Declaration of Wikimedia\RequestTimeout\TimeoutException::__construct should be compatible with Wikimedia\NormalizedException\NormalizedException::normalizedConstructor as Resolved.

76f36c1bbcafeeb26876f71106715d55d19e7323 against T384905: Class Flow\Exception\InvalidDataException does not exist / Declaration of Flow\Exception\FlowException::__construct should be compatible with Wikimedia\NormalizedException\NormalizedException::normalizedConstructor; part of v2.0.2

Jan 28 2025, 8:45 PM · MediaWiki-libs-RequestTimeout
Reedy closed T384918: RequestTimeout not actually running PHPUnit in CI as Resolved.
Jan 28 2025, 3:34 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
gerritbot added a comment to T384918: RequestTimeout not actually running PHPUnit in CI.

Change #1114692 merged by jenkins-bot:

[mediawiki/libs/RequestTimeout@master] composer.json: Run phpunit as part of 'composer test'

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

Jan 28 2025, 3:01 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
Reedy added a subtask for T384918: RequestTimeout not actually running PHPUnit in CI: T384917: Declaration of Wikimedia\RequestTimeout\TimeoutException::__construct should be compatible with Wikimedia\NormalizedException\NormalizedException::normalizedConstructor.
Jan 28 2025, 12:13 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
Reedy added a parent task for T384917: Declaration of Wikimedia\RequestTimeout\TimeoutException::__construct should be compatible with Wikimedia\NormalizedException\NormalizedException::normalizedConstructor: T384918: RequestTimeout not actually running PHPUnit in CI.
Jan 28 2025, 12:13 PM · MediaWiki-libs-RequestTimeout
Reedy updated the task description for T384918: RequestTimeout not actually running PHPUnit in CI.
Jan 28 2025, 12:11 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
gerritbot added a project to T384918: RequestTimeout not actually running PHPUnit in CI: Patch-For-Review.
Jan 28 2025, 12:11 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
gerritbot added a comment to T384918: RequestTimeout not actually running PHPUnit in CI.

Change #1114692 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/libs/RequestTimeout@master] composer.json: Run phpunit as part of 'composer test'

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

Jan 28 2025, 12:11 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
Reedy triaged T384918: RequestTimeout not actually running PHPUnit in CI as High priority.
Jan 28 2025, 12:11 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
Reedy created T384918: RequestTimeout not actually running PHPUnit in CI.
Jan 28 2025, 12:10 PM · Patch-For-Review, MediaWiki-libs-RequestTimeout
Reedy created T384917: Declaration of Wikimedia\RequestTimeout\TimeoutException::__construct should be compatible with Wikimedia\NormalizedException\NormalizedException::normalizedConstructor.
Jan 28 2025, 12:10 PM · MediaWiki-libs-RequestTimeout

Oct 25 2024

Krinkle edited Description on MediaWiki-libs-RequestTimeout.
Oct 25 2024, 3:13 PM

Oct 1 2024

tstarling updated subscribers of T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated.
Oct 1 2024, 5:48 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout

Sep 23 2024

Jdforrester-WMF edited projects for T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated, added: Abstract Wikipedia team; removed Abstract Wikipedia team (25Q1 (Jul–Sep)).

Sorry for the confusion, this isn't a feature, and isn't our code that's at fault.

Sep 23 2024, 8:41 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout
Jdforrester-WMF moved T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated from To Triage to No current plans / External on the Abstract Wikipedia team board.
Sep 23 2024, 8:41 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout

Sep 18 2024

Sharvaniharan moved T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated from Incoming to Ready, Features on the Abstract Wikipedia team (25Q1 (Jul–Sep)) board.
Sep 18 2024, 4:48 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout
Sharvaniharan moved T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated from To Triage to 25Q1 (Jul–Sep) on the Abstract Wikipedia team board.
Sep 18 2024, 4:43 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout
Sharvaniharan triaged T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated as Medium priority.
Sep 18 2024, 4:43 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout

Sep 12 2024

Jdforrester-WMF created T374618: Trim exceptions (?in wikimedia/normalized-exception) before they get to syslog, so that they aren't jsonTruncated.
Sep 12 2024, 1:09 PM · MediaWiki-Debug-Logger, Abstract Wikipedia team, Observability-Logging, NormalizedException, MediaWiki-libs-RequestTimeout

Aug 30 2024

Krinkle moved T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled from Untriaged to Wiring for MediaWiki on the MediaWiki-libs-Rdbms board.
Aug 30 2024, 1:06 AM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms

May 7 2024

TK-999 added a project to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled: Upstream.
May 7 2024, 12:34 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms
TK-999 added a comment to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled.

Looks like this already got reported as https://bugs.xdebug.org/view.php?id=2222. The author does not seem to be particularly swayed by it though...

May 7 2024, 12:34 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms
Aklapper moved T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled from Backlog to Hacking projects on the Wikimedia-Hackathon-2024 board.
May 7 2024, 10:57 AM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms

May 4 2024

TK-999 added a comment to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled.

Minimal reproducer:

php
<?php
May 4 2024, 10:27 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms
TK-999 added a project to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled: Wikimedia-Hackathon-2024.
May 4 2024, 10:26 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms
TK-999 added a comment to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled.

We investigated further with @Krinkle today. Our results are follows:

May 4 2024, 10:26 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms

Apr 5 2024

tstarling added a comment to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled.

I couldn't reproduce this, with PHP 8.2.15, xdebug disabled, and excimer locally compiled from the current git master.

Apr 5 2024, 5:44 AM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms

Apr 4 2024

tstarling added a comment to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled.

CriticalSectionScope is not meant to be alive until the end of the process. That's the whole point of it, to have scope lifetime.

Apr 4 2024, 10:50 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms
daniel moved T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled from Incoming (Needs Triage) to Radar (other teams work) on the MW-Interfaces-Team board.
Apr 4 2024, 3:08 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms
daniel updated subscribers of T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled.

Pinging @tstarling , because Eximer

Apr 4 2024, 3:08 PM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms

Mar 30 2024

Krinkle added a project to T361419: DatabaseTest::testCriticalSectionErrorSelect fails locally, yet passes with php-xdebug enabled: MediaWiki-libs-RequestTimeout.

Given that php-xdebug, by definition, cannot be used to debug this problem, time to sprinkle some print, wfBacktrace, and var_dump:

Mar 30 2024, 3:49 AM · Upstream, Wikimedia-Hackathon-2024, MediaWiki-libs-RequestTimeout, MW-Interfaces-Team, MediaWiki-libs-Rdbms

Mar 6 2024

Xqt added a parent task for T359425: API:alllinks and API:alltransclusions query fails with RequestTimeout for several wikis: T359427: site_generators_tests -v TestSiteGenerators.test_all_links fails on several wikis.
Mar 6 2024, 5:18 PM · MW-Interfaces-Team, MediaWiki-Page-derived-data, Regression, MW-1.42-notes (1.42.0-wmf.24; 2024-03-26), MediaWiki-Action-API, Wikimedia-production-error, Wikimedia-Slow-DB-Query, WME-API-Usability
Xqt created T359425: API:alllinks and API:alltransclusions query fails with RequestTimeout for several wikis.
Mar 6 2024, 5:13 PM · MW-Interfaces-Team, MediaWiki-Page-derived-data, Regression, MW-1.42-notes (1.42.0-wmf.24; 2024-03-26), MediaWiki-Action-API, Wikimedia-production-error, Wikimedia-Slow-DB-Query, WME-API-Usability

Jul 12 2023

Aklapper changed the edit policy for MediaWiki-libs-RequestTimeout.
Jul 12 2023, 8:45 AM

May 1 2023

Krinkle closed T330378: Error: Class 'Wikimedia\RequestTimeout\RequestTimeoutException' not found as Resolved.

The exception doesn't quite make sense as the class obviously exists. Perhaps an opcache fluke or something that corrupts/prevents the autoloader from working correctly? In any event, it's an downstream exception from another exception that's the main cause so less urgent in that regard as it would fatal either way, it's a failure to report the failure in one way and instead gets reported another way.

May 1 2023, 7:35 PM · Performance-Team, MediaWiki-libs-RequestTimeout, Wikimedia-production-error

Mar 9 2023

thcipriani moved T330378: Error: Class 'Wikimedia\RequestTimeout\RequestTimeoutException' not found from Untriaged to Feb 2023 on the Wikimedia-production-error board.
Mar 9 2023, 4:53 PM · Performance-Team, MediaWiki-libs-RequestTimeout, Wikimedia-production-error

Feb 27 2023

larissagaulia assigned T330378: Error: Class 'Wikimedia\RequestTimeout\RequestTimeoutException' not found to aaron.
Feb 27 2023, 8:04 PM · Performance-Team, MediaWiki-libs-RequestTimeout, Wikimedia-production-error
larissagaulia moved T330378: Error: Class 'Wikimedia\RequestTimeout\RequestTimeoutException' not found from Inbox, needs triage to Doing: Prio Interrupt on the Performance-Team board.
Feb 27 2023, 8:04 PM · Performance-Team, MediaWiki-libs-RequestTimeout, Wikimedia-production-error
Tgr removed projects from T330378: Error: Class 'Wikimedia\RequestTimeout\RequestTimeoutException' not found: Growth-Team, PageViewInfo, GrowthExperiments.

I don't think this is related to PageViewInfo (other than that it times out - see T324675: UserImpact: Fetch information for more articles when calculating most-viewed-articles data point for context on that).

Feb 27 2023, 12:40 AM · Performance-Team, MediaWiki-libs-RequestTimeout, Wikimedia-production-error