Test runner sometimes just stops, sometimes gives "Allowed memory size exhausted" error
還沒有人認領這個 Issue。
評估
研究方向
先使用完整的 Codeception 測試套件重現問題,然後將其與單獨執行受影響檔案時的結果進行比較。檢查 PHP CLI 設定以及回報的 vendor/symfony/var-dumper/Caster/ClassStub.php 位置,以追蹤 1G 限制套用的位置。找出掛起或記憶體耗盡的原因,並確認完整測試套件能可靠完成,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Since my latest run (~2 weeks ago), the Codeception runner is suddenly hanging strangely:
-
Sometimes, in the middle of the suite, it just stops with message "COMMAND DID NOT FINISH PROPERLY."
-
Sometimes (at another test), it crashes with:
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in ...vendor/symfony/var-dumper/Caster/ClassStub.php on line 52
However, the
memory_limitin myphp.inis (for CLI and FPM) is3000M. So where is the 1G limit coming from?
This is not caused by the tests themselves, cause when I run just the affected files alone, everything's fine.
Any ideas? Is somebody else experiencing this? Were there recent changes regarding memory management (couldn't find anything)?
- 主要語言
- PHP
- 星號
- 4.9k
- 分支
- 1.3k
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Codeception/Codeception 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
Codeception/Codeception#6949 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 68/100
Codeception/Codeception#6940 ·
-
難度 1/5 1 小時以內 新手友好度 55/100
Codeception/Codeception#6935 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 52/100
Codeception/Codeception#6923 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 45/100
Codeception/Codeception#6894 ·
查看 Codeception/Codeception 的全部 Issue
相似的 Issue
-
status/awaiting_triage
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 1/5 1 小時以內 新手友好度 90/100
WordPress/plugin-check#1486 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 88/100
az-digital/az_quickstart#6019 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
grokability/snipe-it#19688 ·
-
難度 2/5 1-3 小時 新手友好度 85/100