← Back to Pull requests

fix(build): use golangci-lint's supported installer and fix its version check #2579

Closed
unknown closed this pull request without merging on Nov 28, 2026 20:57 UTC
View on GitHub
unknown unknown commented on Nov 28, 2026 12:12 UTC
Author

Summary

Fixes #2577.

  • Both curl lines in install-golangci-lint now use https://golangci-lint.run/install.sh, the installer golangci-lint supports. The master copy used before is stale, and its checksum lookup also matches the release's .sbom.json line, so every install failed.

  • The version check now reads golangci-lint version --short (prints 2.15.0, available since v2.0.0) and adds the v before comparing it with the pin. It used to grep for a v the output never has, so it never matched and reinstalled on every run.
  • CI is unaffected: setup-ci-env installs golangci-lint with go install.

    Type of Change


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Health Monitor

  • Core Service

  • Fault Management

  • Janitor

  • Deployment/Config

  • API/Interface

  • Preflight

  • Plugins

  • Documentation/CI

  • New Component

  • Multiple Components

  • Other
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • On macOS arm64:

  • make dev-env-setup with golangci-lint 2.15.0 from Homebrew: the Go development tools step prints "already installed", with no download.

  • make dev-env-setup with no golangci-lint on PATH: the Go development tools step installs v2.15.0 into $(GOPATH)/bin and passes the checksum check.

  • make dev-env-setup again, now with v2.15.0 in $(GOPATH)/bin: the Go development tools step prints "already installed", with no download.

  • With fake golangci-lint scripts that only report a version, and curl stubbed to print its arguments instead of downloading, make install-golangci-lint:

  • - with an older version: calls the installer with v2.15.0 and that binary's directory;
    - with a v1 binary (no --short): reads the version as unknown and calls the installer.

    make lint-test-all on macOS arm64 with the pinned toolchain (protoc 36.2, Python 3.13, Poetry 2.5.2) passes except for two macOS-only cases, neither related to this change:

  • syslog-health-monitor: 4 tests read /proc/sys/kernel/random/boot_id, which macOS doesn't have.

  • platform-connectors: a test's Unix socket path under macOS's $TMPDIR exceeds the 104-byte limit; it passes with TMPDIR=/tmp.
  • gpu-health-monitor's DCGM tests skip themselves on macOS, as designed.

    Checklist


  • Self-review completed

  • Documentation updated (if needed)

  • Ready for review
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Chores
    Updated the Go linting tool setup to use a different installer source and revised version detection. The configured tool version and installation location behavior remain unchanged. This update affects development tooling and does not introduce changes to the application’s user-facing features or behavior.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 389 lines (+291 / -98) across 4 files Reviewer: lalitadithya Review duration: 524m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 389 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.357
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2579"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.1% (MEDIUM) · Higher = larger blast radius
    43.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17% · Safe to merge
    17%