-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.3
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
We've started facing the following failures in GHA:
There were 2 failures: |
1) core_badges\reportbuilder\datasource\badges_test::test_stress_datasource |
Error for column 'badge:name' with aggregation 'groupconcatdistinct': mysqli::query(): (HY001/1038): Out of sort memory, consider increasing server sort buffer size |
/home/runner/work/moodle/moodle/reportbuilder/tests/helpers.php:124 |
/home/runner/work/moodle/moodle/badges/tests/reportbuilder/datasource/badges_test.php:113 |
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:80 |
phpvfscomposer:///home/runner/work/moodle/moodle/vendor/phpunit/phpunit/phpunit:97 |
2) core_course\reportbuilder\datasource\participants_test::test_stress_datasource |
Error for column 'course:coursefullnamewithlink' with aggregation 'groupconcatdistinct': mysqli::query(): (HY001/1038): Out of sort memory, consider increasing server sort buffer size |
/home/runner/work/moodle/moodle/reportbuilder/tests/helpers.php:124 |
/home/runner/work/moodle/moodle/course/tests/reportbuilder/datasource/participants_test.php:291 |
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:80 |
phpvfscomposer:///home/runner/work/moodle/moodle/vendor/phpunit/phpunit/phpunit:97 |
It looks like some MySQL / MariaDB setting needs to be increased. The possibilities to deal with it are:
- Try to reduce the amount of data the tests use (while keeping them still stress-useful).
- Avoid running them by default.
- Modify GHA / Travis settings
After discussing it with Paul and the iTeam, we've decided to go for #2 and add these tests to PHPUNIT_LONGTEST (so they won't be executed in GHA/Travis). That's OK because Eloy has confirmed that we run CIs with them enabled: https://github.com/moodlehq/moodle-ci-runner/blob/master/runner/master/config.template.php#L76
This should be applied to all the report source stress tests (king of as policy), so we are covered if they increase in the future
- is a regression caused by
-
MDL-73938 Implement thorough report source testing ("stress" tests)
- Closed