Page MenuHomePhabricator

PHPUnit test LoadBalancerTest::testNonZeroMasterLoad is flaky
Closed, ResolvedPublic

Description

The test LoadBalancerTest::testNonZeroMasterLoad seems flaky, at least seen on sqlite and postgres tests

There was 1 failure:

1) LoadBalancerTest::testNonZeroMasterLoad
Failed asserting that 3 is identical to 0.

/workspace/src/tests/phpunit/includes/DB/LoadBalancerTest.php:705

https://integration.wikimedia.org/ci/job/quibble-for-mediawiki-core-vendor-postgres-php81/1173/console
https://integration.wikimedia.org/ci/job/quibble-for-mediawiki-core-vendor-sqlite-php81/1167/console

First noticed that this is a flaky test on 119ef45677907054ff288011cf97de8b7d456236, which also changed code around the code under test.

Event Timeline

Change #1208449 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@master] tests: Set weight of replica to 0 when the config is masterOnly

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

^ This would fix the flaky test if anyone is feeling like a +2

Change #1208449 merged by jenkins-bot:

[mediawiki/core@master] tests: Set weight of replica to 0 when the config is masterOnly

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

Ladsgroup claimed this task.
Ladsgroup edited projects, added DBA; removed Patch-For-Review.
Ladsgroup moved this task from Triage to Done on the DBA board.