Skip to content

ci: bound SCA lint memory on small runners - #437

Open
XuPeng-SH wants to merge 1 commit into
mainfrom
codex/cap-sca-lint-memory
Open

ci: bound SCA lint memory on small runners#437
XuPeng-SH wants to merge 1 commit into
mainfrom
codex/cap-sca-lint-memory

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What this changes

Caps golangci-lint analyzer concurrency at 1 for the 8 GiB ARM SCA runner by passing the MatrixOne Makefile's opt-in GOLANGCI_LINT_CONCURRENCY setting.

No linter, analyzer, package, or rule is disabled. Other CI jobs and developer machines keep their existing parallelism.

Why

MatrixOne PR matrixorigin/matrixone#27758 lost its self-hosted ARM runner during Static Code Analysis:
https://github.com/matrixorigin/matrixone/actions/runs/33159939115/job/98811716170

The runner annotation reports lost communication rather than a lint finding, and no log blob was persisted. A cold full-repository golangci-lint 2.6.2 run on the exact MatrixOne head measured:

  • automatic concurrency: 8.56 GiB peak
  • --concurrency 2: 7.44 GiB peak
  • --concurrency 1: 6.23 GiB peak

The job runs on arm64-mo-shanghai-4c8g, so only the single-worker setting leaves reliable headroom for the runner agent and Go toolchain.

Validation

  • CI workflow YAML parses successfully.
  • Exact-head make static-check GOLANGCI_LINT_CONCURRENCY=1: pass, 0 issues.
  • Cold-cache single-worker golangci-lint: pass, 0 issues, 6.23 GiB peak.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant