Skip to content

Commit

Permalink
ci/qa: Limit the memory used by Go during tests
Browse files Browse the repository at this point in the history
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: actions/runner-images#6680
  • Loading branch information
3v1n0 committed Dec 3, 2024
1 parent db3d0f7 commit 0a09efd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a09efd

Please sign in to comment.