Skip to content

ci: bound the SCA cache producer on 8 GiB runners - #33524

Merged
XuPeng-SH merged 2 commits into
mainfrom
codex/sca-producer-memory-budget
Dec 1, 2026
Merged

XuPeng-SH merged 2 commits into
mainfrom
codex/sca-producer-memory-budget

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Test and CI

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 OOMKilled for each matching runner pod. GitHub reported lost communication during analysis. November 29 job · November 28 job

Verification

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

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify

mergify Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 82c2e922fb0e783e661ebd260b43e5be549c4b4e

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@XuPeng-SH
XuPeng-SH merged commit a70daf2 into main Dec 1, 2026
31 of 36 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/sca-producer-memory-budget branch December 1, 2026 23:58
@XuPeng-SH
XuPeng-SH restored the codex/sca-producer-memory-budget branch December 1, 2026 23:58
@XuPeng-SH
XuPeng-SH deleted the codex/sca-producer-memory-budget branch December 1, 2026 23:58

This branch was successfully deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test-ci size/XS Denotes a PR that changes [1, 9] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants