← Back to Pull requests

build: bump minimum Go version and toolchain to 1.27.3 #1259

Closed
unknown closed this pull request without merging on Oct 21, 2026 17:23 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 02:56 UTC
Author

Go 1.27.3 includes the crypto/x509 fix for CVE-2026-111943. Loop's public-WebPKI connection to the swap server and statically linked release binaries need a patched toolchain.

Raise the minimum Go version in all four modules to 1.27.3 and align CI, Docker builds, lint configuration, reproducible release tooling, and release documentation. Update the one recorded CLI fixture affected by Go 1.27's JSON error text.

The tooling fixes required for this upgrade are included:

  • Upgrade golangci-lint to v2.15.0 and its matching fatcontext replacement. Its x/tools importer supports the version 5 export format emitted by Go 1.27.3; the previous linter fails to load the standard library.

  • Trust only the checkout mounted at /build inside the lint image, so Git can read the runner-owned repository and the diff baseline.

  • Preserve disabled analyzers across renamed versions. Refresh the diff-based lint baseline to pre-upgrade master (ee9219dd134ae0ac72702fe2ac49364917330ae2), so existing findings from the newer analyzers are outside the gate and new changes remain checked.

  • Tidy all modules and regenerate protobuf bindings. The generated Go token streams are identical outside comments; the large generated diff contains only comment and formatting changes.

  • Fix two easy-autoloop test guards to call their cleanup functions, and make the LoopOut mock honor cancellation so its pending responses do not leak goroutines.

  • Preserve current release notes and add the Go/tooling Maintenance entry.
  • Validation under GOTOOLCHAIN=go1.27.3:

  • Full root unit suite: passed; liquidity race suite passed after the cleanup fixes.

  • Both RPC modules: passed (swapserverrpc has no tests).

  • make mod-check rpc-check docs-check: passed.

  • make lint inside Docker with golangci-lint v2.15.0: zero issues against the documented baseline (also verified directly on macOS).

  • Commit-message lint, git diff --check, and merges with #1257 and #1258: passed.
  • The previous LiT unit failure comes from lightning-terminal/session/sql_store.go wrapping a pointer to db.ErrSqlUniqueConstraintViolation with %w. That external check is advisory (continue-on-error); this PR does not disable it.

    The version/release-note rollover in #1260 should follow this PR.

    Diff: 283 lines (+212 / -71) across 3 files Reviewer: Roasbeef Review duration: 867m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 283 lines diff across 3 files
    0.40
    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%
    56%
    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.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1259"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 39.7% (MEDIUM) · Higher = larger blast radius
    39.7%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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.2% · Safe to merge
    17.2%