-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.6, 3.8.3, 3.9, 3.10, 3.11, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MDL-69256-master -
Reproducible specially on Oracle, on slow / busy environments.
Case 1
Link: https://ci.moodle.org/job/S.01.05%20-%20PHPUnit%20-%20Oracle%20(php73)/783/
1) core\task\core_completion_cron_task_testcase::test_completion_daily_cron
|
Failed asserting that two strings are equal.
|
--- Expected
|
+++ Actual
|
@@ @@
|
-'Saturday, 11 July 2020, 1:31 PM'
|
+'Saturday, 11 July 2020, 1:32 PM'
|
|
/var/www/html/lib/tests/completion_daily_task_test.php:121
|
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
|
|
To re-run:
|
vendor/bin/phpunit --verbose "core\task\core_completion_cron_task_testcase" lib/tests/completion_daily_task_test.php
|
It seems that there is a problem when the execution ends in the next minute, so the slower the execution is... the more chances of this random problem to happen.
Have seen failures in 37_STABLE and up, but worth checking if the same problem happens in 35_STABLE or no.
Case 2
Less often (just a couple of times till now, but related to the same test)
Link: https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/1467/
1) core\task\core_completion_cron_task_testcase::test_completion_daily_cron
|
Failed asserting that an array is empty.
|
|
/var/www/html/lib/tests/completion_daily_task_test.php:110
|
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
|
|
To re-run:
|
vendor/bin/phpunit --verbose "core\task\core_completion_cron_task_testcase" lib/tests/completion_daily_task_test.php
|
- is a regression caused by
-
MDL-52904 Completion cron task very slow when has more than 100k users
-
- Closed
-