From 0a09efdca624843dab1f7cc227d5eaa4217ea1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 3 Dec 2024 21:57:39 +0000 Subject: [PATCH] ci/qa: Limit the memory used by Go during tests Github runners are limited and so we may be hit hard by errors that will stop the runners. So limit the go memory usage to avoid this to happen. See: https://github.com/actions/runner-images/issues/6680 --- .github/workflows/qa.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index 343374383..ec34b5214 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -195,6 +195,9 @@ jobs: if: matrix.test == 'coverage' env: G_DEBUG: "fatal-criticals" + # Prevents github to stop the job, we've 16GB of RAM, so let's limit the go usage at least. + # See: https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job#choosing-github-hosted-runners + GOMEMLIMIT: 2048MiB run: | set -euo pipefail