Skip to content

ci: Lint Code flakes on golangci-lint jsonschema download timeout #977

Closed

Description

@cristim

Problem

The Lint Code job in CI - Build & Test intermittently fails before linting anything. golangci-lint validates .golangci.yml against a JSON schema that it downloads at run time, and the download times out:

[.golangci.yml] validate: compile schema: failing loading "https://golangci-lint.run/jsonschema/golangci.v2.10.jsonschema.json": ... context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Seen on 2026-10-16 alone:

Each one needed a manual re-run of the failed jobs. The lint itself reports 0 issues on these heads.

Impact

Every PR's required check fails at random. This costs a re-run, a CI cycle and a merge delay, and it trains people to dismiss red Lint runs.

Suggested fix

Stop depending on the network for config verification in CI. Pick one of:

  • Set the golangci-lint action's verify: false and verify the config locally or in pre-commit instead.
  • Vendor or cache the v2.10 schema.
  • Run golangci-lint config verify as a separate, non-blocking step with a retry.

Keep the pinned lint version and the lint itself blocking.

Activity

  1. IAmJSD commented on Oct 16, 2026

    @IAmJSD
    Collaborator

    Claiming: working on this

  2. self-assigned this
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions