Repository navigation
ci: bound the SCA cache producer on 8 GiB runners - #33524
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
This pull request is merged. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 82c2e922fb0e783e661ebd260b43e5be549c4b4e
Assessment: approve
No blocking issue found. The producer applies the existing Go memory-control mechanism only to the cold lint invocation, preserving explicit overrides, package selection, and cache publication gates.
Model: gpt-6.1-terra / max
Session: 01a22aff-bb68-7e31-ae71-ee4ab48ad9d0 · slot 0 · generation 45
Validation:
-
Parsed the workflow and checked the changed shell block. A probe using the actual Makefile target and a stand-in analyzer verified the 5 GiB default, empty-value fallback, 4 GiB override, full package selection, and one-worker setting (workflow-probe-final.log; checks/1796045861367248734-4.json).
-
A stand-in analyzer exit of 17 caused make to exit 2 and prevented publication on both base and candidate. The nonzero failure behavior is unchanged, although the PR description's claim that exit code 17 is preserved was not reproduced (failure-control.log; checks/1796045912102823759-4.json).
-
git diff --check passed; the review audit matched the checks to their receipts and covered all three discussion entries.
Limitations:
-
The PR description reports successful cold and warm ARM64 runner experiments, but their underlying logs and telemetry were not included in the supplied evidence. No real runner or full lint rerun was performed locally.
-
GOMEMLIMIT is a soft per-process Go runtime target, not a hard container-memory bound.
-
The supplied CI snapshot includes a canceled SCA job and other incomplete or failed checks; no full CI pass is claimed.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #31428.
What this PR does / why we need it:
Apply the PR SCA consumer's default 5 GiB Go memory budget to the scheduled full-repository golangci-lint cache producer. Both run on a Shanghai ARM64 runner with an 8 GiB container limit and one analyzer worker. The budget applies only to the lint invocation. The complete package set, linter errors, cache key and publication checks are preserved. Consumer workflow
On November 25–29 the producer failed on five consecutive nights. Shanghai Prometheus recorded a maximum working set of 7.999 GiB and Kubernetes recorded
OOMKilledfor each matching runner pod. GitHub reported lost communication during analysis. November 29 job · November 28 jobVerification
On the same source tree, runner type, one-worker setting and cold analysis key, the unmodified Shanghai 4-core/8 GiB runner was OOMKilled at 13:06:38 UTC. Its peak runner-container working set was 7.998 GiB. The candidate finished full analysis in 40m29s with 0 issues, a peak runner-container working set of 6.543 GiB, and published 26,777 cache files. Prometheus recorded both peaks for the matching runner containers. Unmodified main · Cold candidate
A fresh Shanghai runner restored the exact published key in the probe branch's cache scope. It skipped analysis, staging and saving and completed the whole job in 4m27s. The workflow passes actionlint. With a stand-in analyzer exiting 17, the real Makefile returned 2 on both base and candidate. The workflow failed before cache staging or publication with both the default budget and a 4 GiB override. Warm rerun
The ordinary PR suite also hit two infrastructure failures before tests started. Both CS Coverage workers timed out provisioning build tools, and two hosted Compose jobs timed out installing tzdata while building the runtime image. The workflow changed here runs on a schedule or manual dispatch. Coverage provisioning incident · Compose runtime incident