High memory usage growing with each consecutive test
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start by reproducing the issue with tests/unit/leak/A500Test.php, tests/unit/leak/A1000Test.php, and the combined tests/unit/leak/ run, then compare the result with Yii2 disabled in unit.suite.yml. Trace the module behavior involved in each test iteration; done means memory no longer grows by roughly 300 MB across the reported runs while all tests pass.
Written by the indexing model from the issue text.
Description
Steps to reproduce:
- Install basic yii2 template
- Add tests https://github.com/arrilot/yii2-codeception-memory-leak-demo/pull/1/files
- run
vendor/bin/codecept run tests/unit/leak/A500Test.php
Time: 00:02.015, Memory: 156.00 MB
OK (500 tests, 500 assertions)
- run
vendor/bin/codecept run tests/unit/leak/A1000Test.php
Time: 00:06.381, Memory: 300.00 MB
OK (1000 tests, 1000 assertions)
1000 tests consumed twice as much memory as 500 tests.
Module is not freeing 300kb of memory after each iteration of one test
- run both test files -
vendor/bin/codecept run tests/unit/leak/
Time: 00:12.377, Memory: 446.00 MB
OK (1500 tests, 1500 assertions)
Module is not freeing 300kb of memory after each test even after all tests in a file were finished
- comment Yii2 module out in
unit.suite.yml
Time: 00:00.349, Memory: 20.00 MB
OK (1500 tests, 1500 assertions)
Memory usage is 20 smaller
- Dominant language
- PHP
- Stars
- 19
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Codeception/module-yii2
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Codeception/module-yii2#145 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Codeception/module-yii2#144 · 1 comment · 1 reaction ·
-
MongoDB supportOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
Codeception/module-yii2#142 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Codeception/module-yii2#141 · 1 comment ·
-
Unable to load yii\elasticsearch\ActiveRecord-based fixturesMay be free again @Mikk36 claimed this 373 days ago, and no pull request is open. Open
Codeception/module-yii2#134 · 4 comments · 1 assignee ·
All issues in Codeception/module-yii2
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
symfony/maker-bundle#1841 ·
Maintainers usually reply within 1 day
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug No Code Attached Yet
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
joomla/joomla-cms#48556 · 1 comment ·
Maintainers usually reply within 1 day
-
sync-en
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 3 days