ci: bound SCA lint memory on small runners - #437
Open
XuPeng-SH wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Caps
golangci-lintanalyzer concurrency at 1 for the 8 GiB ARM SCA runner by passing the MatrixOne Makefile's opt-inGOLANGCI_LINT_CONCURRENCYsetting.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.2run on the exact MatrixOne head measured:--concurrency 2: 7.44 GiB peak--concurrency 1: 6.23 GiB peakThe job runs on
arm64-mo-shanghai-4c8g, so only the single-worker setting leaves reliable headroom for the runner agent and Go toolchain.Validation
make static-check GOLANGCI_LINT_CONCURRENCY=1: pass, 0 issues.golangci-lint: pass, 0 issues, 6.23 GiB peak.