From 348f968116fc5ee092d30a94bc73ce7cb103c600 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index 343374383..6289f357e 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -10,6 +10,10 @@ on: env: DEBIAN_FRONTEND: noninteractive GO_TESTS_TIMEOUT: 20m + # 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: 5120MiB + apt_deps: >- libpam-dev libglib2.0-dev