rules_haskell icon indicating copy to clipboard operation
rules_haskell copied to clipboard

Fix out-of-memory errors in CI when running `run-tests` in `rules_haskell_tests`.

Open cgrindel opened this issue 2 years ago • 4 comments

Ci on the master branch started failing on 2023-12-18. It appears to be related to the rules_haskell_tests portion of the CI workflow.

### Tasks
- [ ] https://github.com/tweag/rules_haskell/pull/2092
- [ ] https://github.com/tweag/rules_haskell/pull/2096
- [ ] Refactor the disabled test to prevent the OOM.

cgrindel avatar Dec 19 '23 17:12 cgrindel

This seems to be a bit flaky, as this does not happen very often. Seems like the bazel processes get killed:

Exit Code: ExitFailure (-9)

Maybe this is some sort of timeout?

avdv avatar Dec 19 '23 17:12 avdv

It could be. I have been trying to set up my personal MacOS laptop with Nix to try things out. (My Modus laptop is arm64 and I have not completed the work getting rules_haskell to work over there.) Unfortunately, the Nix install is failing. I must not have cleaned up from a previous Nix install attempt. 😣

cgrindel avatar Dec 19 '23 18:12 cgrindel

This issue seems to suggest that it may be running out of memory.

cgrindel avatar Dec 20 '23 00:12 cgrindel

For code locations where run-tests starts servers, see @avdv comment.

cgrindel avatar Dec 20 '23 15:12 cgrindel