Page MenuHomePhabricator

CommunityConfiguration extension breaking CI for all patches to mediawiki-vendor train branch
Closed, ResolvedPublic

Description

Even a no-op patch (https://gerrit.wikimedia.org/r/c/mediawiki/vendor/+/1080811) to the 1.43.0-wmf.27 branch of mediawiki-vendor is failing the wmf-quibble-core-vendor-mysql-php74 test in CI right now, with the following error (https://integration.wikimedia.org/ci/job/wmf-quibble-core-vendor-mysql-php74/14676/):

13:48:50 > phpunit '--testsuite' 'split_group_0' '--exclude-group' 'Broken,ParserFuzz,Stub,Standalone' '--group' 'Database' '--cache-result-file=.phpunit_group_0_database.result.cache'
13:48:50 Using PHP 7.4.33
13:48:50 Running with MediaWiki settings because there might be integration tests
13:48:50 PHPUnit 9.6.19 by Sebastian Bergmann and contributors.
[...]
13:48:50 Time: 01:01.952, Memory: 542.00 MB
13:48:50 
13:48:50 There was 1 error:
13:48:50 
13:48:50 1) MediaWiki\Extension\CommunityConfiguration\Tests\Integration\ChangeWikiConfigTest::testSucceedsSettingValue with data set "string" ('CCExample_String', '"expectedValue"')
13:48:50 Use of undefined constant RUN_MAINTENANCE_IF_MAIN - assumed 'RUN_MAINTENANCE_IF_MAIN' (this will throw an Error in a future version of PHP)
13:48:50 
13:48:50 /workspace/src/extensions/CommunityConfiguration/maintenance/ChangeWikiConfig.php:207
13:48:50 /workspace/src/includes/AutoLoader.php:226
13:48:50 /workspace/src/tests/phpunit/maintenance/MaintenanceBaseTestCase.php:65
13:48:50 /workspace/src/tests/phpunit/maintenance/MaintenanceBaseTestCase.php:22
13:48:50 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:106

This is preventing backports for 1.43.0-wmf.27 (https://gerrit.wikimedia.org/r/c/mediawiki/vendor/+/1080770) to fix logspam (T377287).

However, no-op patches to the main branch of mediawiki-vendor seem to be fine: https://gerrit.wikimedia.org/r/c/mediawiki/vendor/+/1080808 logs at https://integration.wikimedia.org/ci/job/wmf-quibble-core-vendor-mysql-php74/14675/console

The immediate cause seems to be https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CommunityConfiguration/+/1064361 (T357535) in CommunityConfiguration.

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript
cscott renamed this task from CommunityConfiguration extension breaking CI for all patches to mediawiki-vendor to CommunityConfiguration extension breaking CI for all patches to mediawiki-vendor train branch.Oct 16 2024, 8:42 PM

Change #1080825 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/CommunityConfiguration@master] tests: ensure maintenance base class has always been requierd

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

Change #1080828 had a related patch set uploaded (by C. Scott Ananian; author: Michael Große):

[mediawiki/extensions/CommunityConfiguration@wmf/1.43.0-wmf.27] tests: ensure maintenance base class has always been requierd

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

Change #1080825 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@master] tests: ensure maintenance base class has always been requierd

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

Change #1080828 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@wmf/1.43.0-wmf.27] tests: ensure maintenance base class has always been requierd

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

Mentioned in SAL (#wikimedia-operations) [2024-10-17T13:27:14Z] <urbanecm@deploy2002> Started scap sync-world: Backport for [[gerrit:1080805|Set $wgAllowRawHtmlCopyrightMessages = false (T375789)]], [[gerrit:1080828|tests: ensure maintenance base class has always been requierd (T377391 T357535)]]

Mentioned in SAL (#wikimedia-operations) [2024-10-17T13:29:28Z] <urbanecm@deploy2002> cscott, urbanecm, matmarex: Backport for [[gerrit:1080805|Set $wgAllowRawHtmlCopyrightMessages = false (T375789)]], [[gerrit:1080828|tests: ensure maintenance base class has always been requierd (T377391 T357535)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-10-17T13:35:22Z] <urbanecm@deploy2002> Finished scap sync-world: Backport for [[gerrit:1080805|Set $wgAllowRawHtmlCopyrightMessages = false (T375789)]], [[gerrit:1080828|tests: ensure maintenance base class has always been requierd (T377391 T357535)]] (duration: 08m 07s)