Repository navigation
build: run go with the garbage collector enabled - #347
Merged
Merged
Conversation
- GO carried GOGC=off, which reached every test binary through the environment. Under -race with -p 4 the heap of the long-running controller packages only grew until the runner VM ran out of memory and was shut down (exit 143, 'runner has received a shutdown signal'). - The same suite run as plain go test -race -p 4 on the same ubuntu-24.04 image (20261122.23.1) passes with at least 10 GB of 16 GB still available and no swap used.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make testhas been killed on every run since the ubuntu-24.04 image moved to20261122.23.1, on main (after #343) and on PR branches alike: exit 143 and "The runner has received a shutdown signal". runner-images maintainers say this is what a VM out of RAM+swap looks like (actions/runner-images#15202).The cause is
GO ?= GOGC=off …in the Makefile.make testpasses that environment to every test binary, so under-race -p 4the heaps of the long controller packages only ever grow.Evidence, on the same image, from a throwaway diagnostic branch:
make test(GOGC=off)go test -race -p 2go test -race -p 4This change removes
GOGC=offfromGO, so builds and tests run with Go's default GC.