Seen while running postgres tests with failure on Flow:
https://integration.wikimedia.org/ci/job/quibble-vendor-postgres-php74-noselenium-docker/288/consoleFull
18) Flow\Tests\SpamFilter\AbuseFilterTest::testSpam with data set #0 (MediaWiki\Title\Title Object (...), MediaWiki\Title\Title Object (...), array(), null, true) Wikimedia\Rdbms\DBQueryError: Error 22008: ERROR: date/time field value out of range: "20240104212939" LINE 1: ...|([4-9]\d{3}|\d{5,})px")',7,'TestUser f6fde8.30f','202401042... ^ HINT: Perhaps you need a different "datestyle" setting. Function: Flow\Tests\SpamFilter\AbuseFilterTest::createFilter Query: INSERT INTO "unittest_abuse_filter" (af_pattern,af_user,af_user_text,af_timestamp,af_enabled,af_comments,af_public_comments,af_hidden,af_hit_count,af_throttled,af_deleted,af_actions,af_group) VALUES ('(new_wikitext rlike "position\s*:\s*(fixed|absolute)|style\s*=\s*\"[a-z0-9:;\s]*&|z-index\s*:\s*\d|\|([4-9]\d{3}|\d{5,})px")',7,'TestUser f6fde8.30f','20240104212939',1,NULL,'Test filter',0,0,0,0,'disallow','flow') /workspace/src/includes/libs/rdbms/database/Database.php:1200 /workspace/src/includes/libs/rdbms/database/Database.php:1184 /workspace/src/includes/libs/rdbms/database/Database.php:1158 /workspace/src/includes/libs/rdbms/database/Database.php:649 /workspace/src/includes/libs/rdbms/database/Database.php:1478 /workspace/src/extensions/Flow/tests/phpunit/SpamFilter/AbuseFilterTest.php:167 /workspace/src/extensions/Flow/tests/phpunit/SpamFilter/AbuseFilterTest.php:128 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:97 19) Flow\Tests\SpamFilter\AbuseFilterTest::testSpam with data set #1 (MediaWiki\Title\Title Object (...), MediaWiki\Title\Title Object (...), array('<div style="background: yello...</div>', 'html'), null, false) RuntimeException: Tracking is already enabled /workspace/src/includes/libs/rdbms/ChangedTablesTracker.php:29 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:686 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:618 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:97 20) Flow\Tests\SpamFilter\AbuseFilterTest::testSpam with data set #2 (MediaWiki\Title\Title Object (...), MediaWiki\Title\Title Object (...), array(), null, false) RuntimeException: Tracking is already enabled /workspace/src/includes/libs/rdbms/ChangedTablesTracker.php:29 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:686 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:618 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:97 21) Flow\Tests\SpamFilter\AbuseFilterTest::testSpam with data set #3 (MediaWiki\Title\Title Object (...), MediaWiki\Title\Title Object (...), array(), null, false) RuntimeException: Tracking is already enabled /workspace/src/includes/libs/rdbms/ChangedTablesTracker.php:29 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:686 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:618 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:97 22) Flow\Tests\SpamFilter\AbuseFilterTest::testValidCovers RuntimeException: Tracking is already enabled /workspace/src/includes/libs/rdbms/ChangedTablesTracker.php:29 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:686 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:618 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:97 23) Flow\Tests\SpamFilter\SpamBlacklistTest::testSpam with data set "default new topic title revision - no spam" (array(), null, true) RuntimeException: Tracking is already enabled /workspace/src/includes/libs/rdbms/ChangedTablesTracker.php:29 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:680 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:618 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:97
When the db error is fixed (via https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Flow/+/987844) the db failure and the "tracking" failures are gone
6 failures lower now:
Before: Tests: 5057, Assertions: 29080, Errors: 32, Failures: 1, Skipped: 115.
After: Tests: 5005, Assertions: 28905, Errors: 26, Failures: 1, Skipped: 116.