From 0b540635b7a72b8630c4926fd00dee6939a11b4c Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 29 May 2019 16:40:44 +0100 Subject: [PATCH] test --- .buildkite/pipeline.yaml | 3 ++- scripts/find-lint.sh | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml index 2c3f066d4..a5c795e45 100644 --- a/.buildkite/pipeline.yaml +++ b/.buildkite/pipeline.yaml @@ -31,7 +31,8 @@ steps: - "./scripts/find-lint.sh" label: ":lower_left_crayon: Lint / :go: 1.12" env: - GOGC: 5 # https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint + # https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint + GOGC: 5 plugins: - docker#v3.0.1: image: "golang:1.12" diff --git a/scripts/find-lint.sh b/scripts/find-lint.sh index 0af94fc2d..b118ba9ed 100755 --- a/scripts/find-lint.sh +++ b/scripts/find-lint.sh @@ -3,10 +3,13 @@ # Runs the linters against dendrite # The linters can take a lot of resources and are slow, so they can be -# configured using two environment variables: +# configured using the following environment variables: # # - `DENDRITE_LINT_CONCURRENCY` - number of concurrent linters to run, # golangci-lint defaults this to NumCPU +# - `GOGC` - how often to perform garbage collection during golangci-lint runs. +# Essentially a ratio of memory/speed. See https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint +# for more info. set -eux