Skip to content

chore(deps): bump VictoriaMetrics/metrics to v1.38.0 (+ histogram, fastrand)#51

Open
moralpriest wants to merge 1 commit into
DEROFDN:community-devfrom
moralpriest:chore/deps/metrics-v1.38.0-v1.2.0
Open

chore(deps): bump VictoriaMetrics/metrics to v1.38.0 (+ histogram, fastrand)#51
moralpriest wants to merge 1 commit into
DEROFDN:community-devfrom
moralpriest:chore/deps/metrics-v1.38.0-v1.2.0

Conversation

@moralpriest

Copy link
Copy Markdown

Summary

Vendored dependency bumps (prep for eventual Go toolchain bump).

  • github.com/VictoriaMetrics/metrics: v1.38.0 (go 1.17, latest go<=1.17)
  • github.com/valyala/histogram: v1.2.0 (go 1.12) — required by metrics
  • github.com/valyala/fastrand: v1.1.0 (old go.mod format) — transitive: metrics v1.38.0 histogram.go calls fastrand.RNG.Seed, which only exists in fastrand v1.1.0.

All go <= 1.17 — clean standalone PR.

Why the extra two deps

metrics v1.38.0 declares require valyala/histogram v1.2.0 and its histogram.go uses fastrand.RNG.Seed (only in fastrand v1.1.0). Both are pulled in to keep the build green. metrics v1.38.0 also lists golang.org/x/sys v0.15.0, but that is imported only by process_metrics_windows.go (windows-only build tag) — not needed for the Linux build.

Verification

  • go build ./... green (after adding fastrand v1.1.0 for the Seed API).
  • go test ./...: metrics own suite + importers pass. Only pre-existing failure is Test_Payload_TX (walletapi, reproduced identically on clean community-dev).
  • derod --testnet starts, logs cleanly (no errors/panics).

Follow-ups

Remaining go<=1.17 vendored-dep candidates: env, go-colorful, pkg/profile, kcp-go, robfig/cron. (cespare/xxhash deferred as consensus-critical; tjfoc/gmsm unused; blang/semver + go.uber.org/atomic already at latest; go-logr/zapr deferred until logr v1.2.4 / PR #46 lands.)

…strand)

Vendored dependency bumps (prep for eventual Go toolchain bump).

- github.com/VictoriaMetrics/metrics: v1.38.0 (go 1.17, latest go<=1.17)
- github.com/valyala/histogram: v1.2.0 (go 1.12) — required by metrics
- github.com/valyala/fastrand: v1.1.0 (no go directive; old format) —
  TRANSITIVE: metrics v1.38.0 histogram.go uses fastrand.RNG.Seed,
  which only exists in fastrand v1.1.0.

Note: metrics v1.38.0 go.mod also lists golang.org/x/sys v0.15.0, but
that is only imported by process_metrics_windows.go (build-tagged
windows-only), so it is not needed for the Linux build.

Verification:
- go build ./... green (after adding fastrand v1.1.0 for the Seed API).
- go test ./...: metrics own suite + importers pass. Only pre-existing
  failure is Test_Payload_TX (walletapi, reproduced on clean community-dev).
- derod --testnet starts, logs cleanly (no errors/panics).
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