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 4, 2024
1 parent fbf19ed commit 348f968
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 348f968

Please sign in to comment.