You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enforce-readiness: fileclosenotdeferred, timesleepnocontext, sprintferrorsnew are clean, type-resolved, zero prod violations — 2
[Content truncated due to length] #50481
Three registered custom analyzers are type-resolved, nolint-wired, and currently produce zero violations against the current production tree (pkg/**/*.go, excluding _test.go), yet none of them appear in the CI enforcement gate (.github/workflows/cgo.ymlLINTER_FLAGS). Two of the three previously had dedicated "enforce-readiness — add to CI" issues that were closed as resolved but the CI YAML was never actually updated — a process gap worth closing alongside the code gap.
Yes (astutil.IsPkgSelector for both errors.New and fmt.Sprintf)
Yes
0 (no errors.New(fmt.Sprintf(...)) sites in prod)
(never filed — this is a first audit)
Not in LINTER_FLAGS
Current enforcement list (.github/workflows/cgo.yml:1369, host build) has 43 linters; pkg/linters/registry.go registers 62. These three sit in the 19-wide gap.
Impact
Without CI enforcement, these clean analyzers provide no regression protection — a future PR can introduce a non-deferred file/response Close(), a time.Sleep bypassing context cancellation, or an errors.New(fmt.Sprintf(...)) and nothing will catch it, even though the tooling to catch it already exists and is proven safe (zero false positives against the current tree).
The closed-but-not-applied issues (#35390, #39324) also indicate a reconciliation gap: closing a sergo "add to CI" issue doesn't currently get verified against the actual cgo.yml state in later runs. Worth a lightweight check (e.g. grep the linter name in cgo.yml LINTER_FLAGS) before closing this class of issue in the future.
Recommendation
Add all three flags to both LINTER_FLAGS entries in .github/workflows/cgo.yml (line 1369 host build, and the WASM build at line 1372 where applicable — sprintferrorsnew/fileclosenotdeferred/timesleepnocontext all operate on stdlib packages available under GOOS=js GOARCH=wasm, consistent with siblings like writebytestring and stringreplaceminusone already present in both lists):
Activity