Skip to content

The curated charly/.golangci.yml never runs in CI — the root-config claim is stale (R1) #767

Closed

Description

@aitrawog

Problem

charly/.golangci.yml and the repo-root .golangci.yml disagree, and the
CI-exact invocation does not use the one the root config claims wins.

The root .golangci.yml states:

"golangci-lint discovers a config by walking UP from the working directory, so
this ONE file covers charly/ … Each module MAY keep its own closer config (the
closest wins): charly/ does, because it needs a stricter, explicitly-curated
linter set … The eleven curated quality/idiom linters are … enabled in
charly/.golangci.yml, the module's own closer config, which wins for charly/."

But .github/workflows/ci.yml runs the gate as
golangci-lint run ./charly/... from the repo ROOT. golangci-lint's config
discovery walks up from the working directory (the repo root), not from each
package — so it selects the ROOT .golangci.yml (6 linters), and
charly/.golangci.yml (the curated set that enables unconvert, unparam, …) is
never used.

Evidence (executed)

$ golangci-lint run ./charly/...          # from repo root — the CI command
0 issues.

$ (cd charly && golangci-lint run ./...)  # from inside charly/ — the module config
plugin_requires_test.go:24:13: reqCap - class always receives ClassVerb ("verb") (unparam)
engine_provider.go:50:69: unnecessary conversion (unconvert)
2 issues: * unconvert: 1 * unparam: 1

$ golangci-lint run ./charly/... --verbose | grep -i config
[config_reader] Used config file .golangci.yml
[lintersdb] Active 6 linters: [errcheck gofmt govet ineffassign staticcheck unused]

The two findings are byte-identical on origin/main (the files are not touched by
any recent change), so they are pre-existing — surfaced only under the module config
that CI never reaches for charly/.

Impact

The strict, curated charly/ linter set — the "AGENTS.md-compliance audit"
(/charly-internals:go-quality) — effectively never runs in CI. main can carry
unconvert/unparam/dupl-class debt indefinitely while CI shows green, because
the CI gate is the 6-linter baseline, not the curated set it claims to enforce.
The root config's own comment is the stale claim (R1: a doc diverging from reality).

Intended scope

Decide the one canonical invocation that makes charly/.golangci.yml actually
govern charly/ in CI (e.g. run the gate from within charly/, or add
--config charly/.golangci.yml, or move the curated linter set into the root
config), then fix the two pre-existing findings (engine_provider.go unconvert,
plugin_requires_test.go unparam) in the same cutover, and correct the stale root
comment. Owning skill: /charly-internals:go-quality.

Filed from opencharly/opencharly#342 (the charly task prune batch) — the
divergence was surfaced while gating a mechanical pin bump whose diff does not touch
either file.

Activity

  1. aitrawog commented on Oct 3, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — curated charly/.golangci.yml never runs in CI.

    Working this in this session. Canonical invocation chosen: run the charly lint from inside charly/ (( cd charly && golangci-lint run ./... )), matching the committed local pre-commit gate, which already runs with cwd = the touched module root. Plus the two pre-existing findings (engine_provider.go unconvert, plugin_requires_test.go unparam) and the stale root-comment correction (R1). PR follows.

    Agent: lint-canon · session ses_eff40584bffe0JqilUWOh4UlTY
    Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)

  2. self-assigned this
    on Oct 3, 2026
  3. aitrawog commented on Oct 3, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — lint-canon (was unassigned).

    Being landed via opencharly/charly#769 (which will close this issue) together with its completeness sibling #774 (nolintlint + the 6 stale directives). The PR is currently HELD (no push) on #762, because the curated config now running in CI requires the two findings fixed, and the runtime one (engine_provider.go unconvert) can only be proven by the check-pod-overlay bed the #762 skew blocks. Full RCA + plan in the PR body.

    Agent: lint-canon · session ses_eff40584bffe0JqilUWOh4UlTY
    Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

  4. aitrawog commented on Oct 4, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — landed in #769 (squash da779f20), tagged v2026.277.1722.

    The curated charly/.golangci.yml now runs in CI: .github/workflows/ci.yml invokes it from inside charly/ (( cd charly && golangci-lint run ./... )), so cwd-based discovery selects the curated set — matching the local pre-commit gate. The findings it surfaced are fixed (engine_provider.go unconvert, plugin_requires_test.go unparam, and — via the folded #774 — the stale //nolint directives + the pluginsgen gocyclo), and the stale root comment is corrected. Verified on main: ci.yml carries the cd charly invocation, charly/.golangci.yml carries nolintlint, curated run = 0 issues. Closing.

    Agent: lint-canon · session ses_eff40584bffe0JqilUWOh4UlTY
    Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions