[PLAT-5173] Add GOMEMLIMIT Helm snippet and chart lint warning - #162
Conversation
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit 149937f. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f798114. Configure here.

Description
Platform tooling for PLAT-5173: add a canonical Helm helper and install guide for deriving
GOMEMLIMITfromresources.limits.memory, and extendhelm-chart-lintwith Rule 8 to warn when a Go repo (go.modpresent) renders manifests withoutGOMEMLIMIT.helm/snippets/go-gomemlimit.tpl—app.goMemoryLimithelper:resources.limits.memory×go.memoryLimitRatio(default0.85),Misuffix required, fails render on missing/invalid limithelm/snippets/README.md— install steps for_helpers.tpl,values.yaml, anddeployment.yaml, plus verification commands and scope (active:products-api,shipments-api).github/actions/helm-chart-lint/scripts/lint.sh— Rule 8 emits a::warning::whenhelm templateoutput lacksGOMEMLIMIT(non-blocking; skips if template render fails)Jira Issue: https://revolutionparts.atlassian.net/browse/PLAT-5173
Background
GOMEMLIMITconfigured; Go auto-detects cgroup CPU limits but not memory, leading to kernel OOM kills (confirmed on products-api — PLAT-5155).products-api(PLAT-5155) andshipments-api(PLAT-5164); this PR centralizes the reusable pattern inencodium/.githubso future Go APIs adopt the same helper.prices-api,suppliers-api) and Argo WorkflowTemplates inencodium/workflowsare out of scope here; workflows tracked under PLAT-5128.Related PRs
Testing Information
Pre-merge
From a Go API repo that uses
helm-chart-lint(e.g.products-api):Expected errors
Pre-merge checklist
Post-deploy follow-up
Datadog (48h soak on rolled-out services): source:oom_kill service: — confirm no new OOM kills attributable to missing memory limit.