Description of problem:
The 4.21 lint job fails consistently on CI with OOM issues, though it works fine locally.
Version-Release number of selected component (if applicable):
How reproducible: Always
Steps to Reproduce
1. Trigger ci lint job on any PR
Actual results:
{
"name": "test",
"state": {
"terminated": {
"exitCode": 137,
"reason": "OOMKilled",
"message": "oading github.com/sourcegraph/go-diff v0.7.0
go: downloading github.com/go-toolsmith/astcast v1.1.0
go: downloading github.com/gostaticanalysis/analysisutil v0.7.1
go: downloading github.com/gobwas/glob v0.2.3
go: downloading github.com/google/go-cmp v0.6.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading go.uber.org/zap v1.24.0
go: downloading github.com/go-toolsmith/astcopy v1.1.0
go: downloading github.com/go-toolsmith/astequal v1.2.0
go: downloading github.com/go-toolsmith/astfmt v1.1.0
go: downloading github.com/go-toolsmith/astp v1.1.0
go: downloading github.com/go-toolsmith/strparse v1.1.0
go: downloading github.com/go-toolsmith/typep v1.1.0
go: downloading github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727
go: downloading github.com/ccojocar/zxcvbn-go v1.0.2
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/gostaticanalysis/comment v1.4.2
go: downloading github.com/prometheus/client_golang v1.12.1
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/ettle/strcase v0.2.0
go: downloading github.com/fatih/structtag v1.2.0
go: downloading golang.org/x/exp/typeparams v0.0.0-20241108190413-2d47ceb2692f
go: downloading go.uber.org/atomic v1.7.0
go: downloading go.uber.org/multierr v1.6.0
go: downloading github.com/quasilyte/gogrep v0.5.0
go: downloading github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/prometheus/common v0.32.1
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading google.golang.org/protobuf v1.34.2
go: downloading github.com/chavacava/garif v0.1.0
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/mattn/go-runewidth v0.0.16
go: downloading github.com/rivo/uniseg v0.4.7
/go/bin/golangci-lint-v1.62.2 run
",
"startedAt": "2026-02-27T19:12:36Z",
"finishedAt": "2026-02-27T20:55:24Z",
"containerID": "cri-o://05a27ca92eddeca5e9e621cb644308cfd32b30fdfd33706c9bb87c1e7734fb71"
}
},
"lastState": {},
"ready": false,
"restartCount": 0,
"image": "image-registry.openshift-image-registry.svc:5000/ci-op-4h17hbvv/pipeline@sha256:728091b87a7954f158ab7df4278467ba986c6617136dec579c56ebb4cd8fd1a2",
"imageID": "image-registry.openshift-image-registry.svc:5000/ci-op-4h17hbvv/pipeline@sha256:728091b87a7954f158ab7df4278467ba986c6617136dec579c56ebb4cd8fd1a2",
"containerID": "cri-o://05a27ca92eddeca5e9e621cb644308cfd32b30fdfd33706c9bb87c1e7734fb71",
"started": false,
"allocatedResources": {
"cpu": "100m",
"memory": "200Mi"
},
"resources": {
"limits": {
"memory": "4Gi"
},
"requests": {
"cpu": "100m",
"memory": "200Mi"
}
},
"volumeMounts": [
{
"name": "logs",
"mountPath": "/logs"
},
{
"name": "tools",
"mountPath": "/tools"
},
{
"name": "kube-api-access-cfhpx",
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"readOnly": true,
"recursiveReadOnly": "Disabled"
}
],
"user": {
"linux": {
"uid": 1003240000,
"gid": 0,
"supplementalGroups": [
0,
1003240000
]
}
}
}
Expected results:
Runs to completion successfully
Additional info:
Possibly related to https://github.com/golangci/golangci-lint/issues/5449
golang-ci-lint is known to have memory usage issues due to go version mismatch between build and runtime for the linter.
- blocks
-
OCPBUGS-76269 olm ClusterOperator relatedObjects missing ClusterRole
-
- POST
-