Skip to content

chore(lint): resolve goconst findings across the repo - #261

Open
qu0b wants to merge 2 commits into
masterfrom
qu0b/chore/fix-goconst-lint
Open

chore(lint): resolve goconst findings across the repo#261
qu0b wants to merge 2 commits into
masterfrom
qu0b/chore/fix-goconst-lint

Conversation

@qu0b

@qu0b qu0b commented Aug 3, 2026

Copy link
Copy Markdown
Member

The lint workflow tracks golangci-lint latest, and the current release (v2.12.2) flags 25 goconst issues on master — it's been latently red since the last green run in June, so the next PR against master fails lint through no fault of its own (see #259 / #260, where the same findings hit the release/gloas branch).

Fixes, no behavior change:

  • Constant-ify the repeated log-field / prometheus-label literals (method, path, node, epoch, root, expires_at).
  • Give the pkg/eth table-test cases descriptive names instead of Test 1/Test 2.
  • Use the existing ID constants in NewStateIdentifier (mirroring NewBlockIdentifier) and in the ID mapping tests.

Verified locally with the same linter version CI resolves (golangci-lint run v2.12.2 → 0 issues); go build ./... / go test ./... green.

This is the master port of the lint commit in #260.

🤖 Generated with Claude Code

golangci-lint (latest, currently v2.12.2) flags 25 goconst issues on
every PR run, all pre-existing on the base branch: repeated log field
and metric label literals, throwaway test case names, and string
literals where the eth.ID constants already exist. Constant-ify the
repeated literals, name the test cases descriptively, and use the
existing ID constants in NewStateIdentifier and the ID mapping tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@qu0b
qu0b requested a review from samcm as a code owner August 3, 2026 10:30
gcr.io/prysmaticlabs/prysm/beacon-chain:latest froze at v5.3.2 (built
2025-04-14) when prysm moved to OffchainLabs. That pre-fulu build
cannot decode current fulu states, so both prysm integration jobs die
at checkpoint-sync with "invalid ssz encoding" on every network.
gcr.io/offchainlabs/prysm/beacon-chain:latest tracks current releases
(v7.1.8, built 2026-08-01).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant