Closed
Description
With GHC 9.2, CI runs of the memory-usage-tests suite fail by exhausting the heap:
>>> **/memory-usage-tests -j1 --hide-successes
memory-usage-tests: Heap exhausted;
memory-usage-tests: Current maximum heap size is 8388608 bytes (8 MB).
memory-usage-tests: Use `+RTS -M<size>' to increase it.
<<< **/memory-usage-tests -j1 --hide-successes (33/212 sec, 251)
<<< /home/runner/work/cabal/cabal/dist-newstyle-validate-ghc-9.2.1/build/x86_64-linux/ghc-9.2.1/cabal-install-3.7.0.0/t/memory-usage-tests/build/memory-usage-tests/memory-usage-tests -j1 --hide-successes (33/212 sec, 251)
Example: https://github.com/haskell/cabal/runs/5411331428?check_suite_focus=true
(master CI runs don't get to the cli-tests
; that log is from #8022 which skips failing tests in lib-suite)
The test suite deliberately runs with a heap limited to 8MB:
-- Tests to run with a limited stack and heap size
--
Test-Suite memory-usage-tests
[...]
ghc-options: -threaded -rtsopts "-with-rtsopts=-M8M -K1K"
Running locally on macOS with GHC 9.2.1:
Memory Usage
UnitTests.Distribution.Solver.Modular.MemoryUsage
basic space leak test: OK (21.46s)
package with many flags: OK (6.28s)
issue #2899: OK (4.31s)
duplicate dependencies: OK (0.02s)
duplicate flagged dependencies: memory-usage-tests: Heap exhausted;
memory-usage-tests: Current maximum heap size is 8388608 bytes (8 MB).
memory-usage-tests: Use `+RTS -M<size>' to increase it.