From 09c1e0b1405ee74d3ee9b922738c7ff35704a01c Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Sun, 8 Sep 2024 20:04:46 +0200 Subject: [PATCH] Limit memory usage Go tests with race detector (#14862) * Limit memory usage Go tests with race detector Preliminary fix for https://github.com/prometheus/prometheus/issues/14858 Signed-off-by: Julius Volz * Use CI job env var instead for Go memory limits Signed-off-by: Julius Volz --------- Signed-off-by: Julius Volz --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98d3d9a75..3a181bb7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,10 @@ jobs: # Whenever the Go version is updated here, .promu.yml # should also be updated. image: quay.io/prometheus/golang-builder:1.23-base + env: + # Preliminary fix to make Go tests with race detector not use too much memory, + # see https://github.com/prometheus/prometheus/issues/14858. + GOMEMLIMIT: 10GiB steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - uses: prometheus/promci@45166329da36d74895901808f1c8c97efafc7f84 # v0.3.0