Repository navigation
build(deps): Bump github.com/prometheus/client_golang from 1.23.2 to 1.24.1 - #1391
dependabot[bot] wants to merge 1 commit into
Conversation
Dependency Security Review —
|
| Source | Result |
|---|---|
OSV.dev [email protected] |
None |
| OSV sweep of all 737 modules in the graph | No advisory against any bumped module |
go mod verify / sum.golang.org |
All verified; no GOPRIVATE/GOFLAGS bypass |
Supply chain clean: commits are known maintainers + dependabot, no new unsafe/go:linkname, no added network calls.
Behavioural review of the changelog items
- Collector panic recovery — net win: a panicking collector previously crashed the whole tenderdash process, now it becomes a
/metricserror. Minor caveat: the recovered 64 KB stack trace is written into the HTTP 500 body under the defaultHTTPErrorOnErrorhandling (registry.gosafeCollect→promhttp.httpError). Low severity;/metricsis off by default and should be firewalled. - Exemplar handling — no observable change for us: tenderdash records no exemplars; all metrics go through go-kit wrappers with static names.
NameValidationScheme→ UTF8 — no-op;prometheus/common0.69.0 already defaulted to UTF-8 and we never set the global.CoalesceGather,WithUnit,promhttp/zstd,push,graphite,InstrumentHandler*— unused by this repo.- All
exp/api/remotefixes are in a separate Go module not in our graph.
Metrics semantics (names, labels, values) are unchanged. ./scripts/metricsgen/... builds clean.
One upstream regression, not reachable here
v1.24.0 added an unconditional req.URL.Query() in the new name[] filter (promhttp/http.go), which nil-panics on a hand-built &http.Request{}. net/http always populates req.URL, so this is not remotely reachable in our deployment, and it is already fixed in v1.24.1. Worth a follow-up bump, not a blocker.
Non-blocking follow-ups (pre-existing, out of scope)
cmd/priv_val_server/main.go:165uses an emptypromhttp.HandlerOpts{}— noMaxRequestsInFlight, noTimeout. Worth hardening.- Optional:
ErrorHandling: promhttp.ContinueOnError+ErrorLogon both handlers so panic stack traces go to logs rather than HTTP response bodies. - Separate PRs worth prioritising, surfaced by the OSV sweep of the base branch:
google.golang.org/grpc1.82.0→1.82.1 (GHSA-hrxh-6v49-42gf, HTTP/2 transport server — we rungrpc.NewServer()),golang.org/x/text0.38.0→0.39.0 (CVE-2026-56852).
CI failures — both unrelated to this bump
govulncheck:GO-2026-5856incrypto/[email protected], fixed by the Go toolchain bump to 1.26.5. Fails identically on thev1.6-devbase branch and on sibling dependabot PRs. Addressed by chore: bump Go to 1.26.5 #1395.tests (01):TestWALRoundsSkipper60s timeout ininternal/consensus. A metrics library cannot influence consensus WAL behaviour; this is flakiness. Passes on sibling PRs.
Requesting @dependabot rebase to pick up the Go 1.26.5 toolchain from v1.6-dev and get a fresh CI run.
🤖 Co-authored by Claudius the Magnificent AI Agent
|
@dependabot rebase |
2844df9 to
4cdbd6a
Compare
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.23.2 to 1.24.1. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/v1.24.1/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.23.2...v1.24.1) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-version: 1.24.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
4cdbd6a to
a6d97a2
Compare
|
Superseded by #1398. |
…Commit token (#1456) * feat(types): add CommitVerification, a typed proof of commit verification VerifyCommitSignatures verifies a commit exactly as ValidatorSet.VerifyCommit does and, on success, returns a CommitVerification recording the chain, height, block ID, quorum, threshold key and the signed digests and signatures it checked. ValidatorSet.VerifyCommitUnlessVerified skips the threshold verification only when a verification covers exactly those inputs. Anything else, including the zero value, falls through to the unchanged verifyCommit, so its typed errors (ErrInvalidCommitSignature versus the untyped vote-extension count mismatch and budget exhaustion) are preserved. verifyCommit is split into commitSignData and verifyCommitReportingSigns with every error path unchanged. Co-Authored-By: Claude Opus 5 <[email protected]> * refactor(state): replace commit-verification memo with typed CommitVerification token BlockExecutor.VerifyCommit returns a types.CommitVerification instead of recording it in a private two-slot memo. ValidateBlock, ValidateBlockWithRoundState, FinalizeBlock and ApplyBlock take the verification of block.LastCommit explicitly. Block sync's applier threads the verification of each commit one block forward; consensus and the replayer pass the zero value and verify in full as before. The state_last_commit_verification_skipped metric keeps its meaning. Co-Authored-By: Claude Opus 5 <[email protected]> * test(consensus): deflake TestWALRoundsSkipper The WAL generator node is the only validator, so it proposes every round, and replayPrevoter makes heights 3 to 5 commit only at round 10. The test genesis gives round 10 a 30.5ms propose timeout. On a loaded runner (-race, -coverprofile, several packages at once) that timer fires before the node's own proposal is complete, so it prevotes nil and moves to round 11: - at height 5, stopConsensusAtHeight(5, 11) halts consensus and the test times out after 60s ("waited too long for tendermint to produce 5 blocks"), which is the failure seen on #1391, #1393 and #1410; - at height 3 or 4, the commit lands past maxRound and the round assertion fails. Give the generator a 10s propose timeout. With a single proposer, a round moves on as soon as the proposal is complete, so a longer timeout only removes the race. UnsafeProposeTimeoutOverride is node-local and not a consensus parameter, so the blocks are unchanged. TestWALRoundsSkipperSlowProposer pins this. Its app holds PrepareProposal at round 10 for three times the genesis propose timeout. Without the override it fails every run; with it, it passes every run. Once the test survives load, a second pre-existing flake surfaces. The replaying State and its WAL keep running after Stop/Wait: receiveRoutine exits only when it sees its context cancelled, and the services' ctx watchers log asynchronously. Their logs through NewTestingLogger then land after the test completes and panic the binary ("Log in goroutine after TestWALRoundsSkipper has completed"). The test now logs through a writer that is muted, under a lock, by its first-registered cleanup. Co-Authored-By: Claude Opus 5 <[email protected]> * refactor(types): turn CommitVerification into VerifiedCommit types.CommitVerification only carried proof metadata, checked against a commit passed alongside it. It becomes types.VerifiedCommit: the commit itself plus an optional proof. type VerifiedCommit struct { commit *Commit // the caller's pointer, the subject only proof *commitProof // nil: no proof } commitProof keeps the nine fields CommitVerification recorded, with their doc comments. - VerifyCommitSignatures keeps its signature, checks and errors. It returns the commit with a proof on success, and the zero VerifiedCommit on failure. - NewUnverifiedCommit(commit) builds the no-proof variant. The zero value is NewUnverifiedCommit(nil). - Commit() returns the embedded pointer. Its doc spells out that it is not evidence and must never be validated in place of the commit actually received. - checkMatches moves to *commitProof and treats a nil receiver as "nothing was verified". It compares commit content only, never pointer identity. - errCommitVerificationMismatch becomes errCommitProofMismatch. Only the parameter types change at the call sites. block.LastCommit is still read from the block, and the current-height commit parameter of ApplyBlock/FinalizeBlock is untouched. Consensus (finalize, validate), ProcessProposal and the replayer pass NewUnverifiedCommit(block.LastCommit); the block-sync applier keeps the zero value where it holds no commit. Mocks are regenerated with mockery v3.7.4. Tests: - the types tests are renamed to VerifiedCommit; - the proof-mutation test pins with require.Same that the embedded commit aliases the caller's pointer; - a new case shows that a VerifiedCommit without proof, even one holding the very commit being verified, never skips verification; - the new TestBlockApplierSkipsTheLastCommitItVerified drives three blocks through a real executor and asserts LastCommitVerificationSkipped reaches 0, 2 and 4. It fails if the applier hands the next block the commit without its proof; - metricspy gains a Counter for it. Co-Authored-By: Claude Opus 5 <[email protected]> * chore: retrigger CI GitHub Actions never picked up 0eccc06 (no check-suite created for it after 45+ minutes, unlike every prior push on this branch) — pushing an empty commit to force a fresh push event. Co-Authored-By: Claude Sonnet 5 <[email protected]> * refactor(types): drop NewUnverifiedCommit, the only way to fake a VerifiedCommit NewUnverifiedCommit let any caller wrap an arbitrary commit into a value of a type named VerifiedCommit while attaching no proof at all -- a naming trap, and unused by anything that reads Commit(): nothing outside tests ever called it. The four call sites that used it to signal "no proof held" never read the commit back off the value either; they only pass it into VerifyCommitUnlessVerified, which already falls through to a full verification on any proof-less value, zero value included. Remove the constructor. The zero value is now the only proof-less VerifiedCommit that code outside types can produce, and it is the only one that matters in practice: consensus, the replayer and block sync's ProcessProposal path all switch to it. The still-exported Commit() and the commit field stay -- VerifyCommitSignatures is still the only way to end up with a VerifiedCommit that names a real commit, and it always pairs one with its proof. TestUnverifiedCommitMatchesNothing keeps its "holds the exact commit but no proof" case as an in-package struct literal: a white-box test proving the mismatch check would still refuse to skip verification even in that stronger, no-longer-reachable-from-outside scenario. Co-Authored-By: Claude Sonnet 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
…LastCommit (#1427) * perf(blocksync): verify a commit once, not again as the next block's LastCommit Block sync threshold-verifies the commit for block N in blockApplier.verify, and one height later the same commit comes back as block N+1's LastCommit and is verified a second time inside validateBlock. Every commit was verified twice, a block apart, at roughly 1.9 ms each. The applier now records what it verified through a new Executor.NoteVerifiedCommit and validateBlock takes a lastCommitVerified hint. The skip fires only on an exact match of every input ValidatorSet.verifyCommit reads: chain ID, height, block ID, quorum type, quorum hash, threshold public key, and a byte-identical marshalled commit. Marshalling rather than using Commit.Hash() matters, because that hash only covers ThresholdBlockSignature and would miss Round and the vote extensions. Anything short of a full match falls through to a real verification. The note is stored after ApplyBlock returns, not before: both places that would re-verify this commit run while the *next* block is applied, so writing it earlier would overwrite the entry they are still reading for the current block and the skip would never fire. The validator set is captured before ApplyBlock, which reassigns e.state. The consensus path never calls NoteVerifiedCommit, so the memo stays nil there and nothing changes. It is an atomic.Pointer written and read whole, never read-modify-write, and blockApplier.Apply is serialised under its own mutex. Replaying mainnet, the applier's verify stage goes from 3.61 ms to 1.84 ms a block. * perf(state): skip the second LastCommit verification when the memo proves it ran (#1428) ValidateBlockWithRoundState verifies block.LastCommit even though the ValidateBlock call at the top of the same function normally does it. That second verification is load-bearing rather than redundant: ValidateBlock short-circuits on blockExec.cache, which is keyed on the block hash alone and carries no promise about the state the earlier validation ran against. Removing it outright breaks TestStateProposalTime. So gate it on the memo added in the previous change instead of on the cache. The skip happens only when this exact commit was already verified against identical inputs — same chain ID, height, block ID, quorum type, quorum hash, threshold public key and byte-identical marshalled commit. That is a property of the data, not of the cache, so it holds no matter which path populated the cache. Replaying mainnet, this stage goes from 1.81 ms a block to 0.007 ms. Together with the previous change block sync performs one threshold verification per block instead of three. * test(state): cover the verified-commit memo directly TestLastCommitAlreadyVerified checks the memo matches only on a full match of every input VerifyCommit reads, and falls through when the chain ID, height, block ID, quorum type, quorum hash, threshold key or any commit field differs. TestApplyBlockSkipsVerifiedLastCommit drives a real BlockExecutor with genuine BLS commits through ApplyBlock: a noted commit is not threshold-verified again, a forged commit that was never noted is rejected, and a memo for a different commit does not cover a forged one. Co-Authored-By: Claude Fable 5.1 <[email protected]> * test(state): fold the ApplyBlock drive into the memo fixture Replace the blockAndID closure with a fixture method so each subtest reads as note-then-assert, use slices.Clone for the vote extensions, and move the cache comment above the call it explains. Co-Authored-By: Claude Fable 5.1 <[email protected]> * refactor(state): verify commits through the executor so the memo cannot be fed unverified ones NoteVerifiedCommit took the caller's word that a commit had been verified. Replace it with Executor.VerifyCommit, which runs the threshold verification itself and remembers the result only on success. The block sync applier now verifies through it; nothing else can write the memo. The memo keeps the two most recent commits instead of one: VerifyCommit for commit N runs before block N is validated, and block N's LastCommit is commit N-1, so both must be present. This also removes the ordering constraint that forced the applier to record the note only after ApplyBlock returned. Every slice-backed field in the memo is now an owned copy, so mutation of the validator set, block ID or commit after verification cannot change what it matches. validateBlock takes the hint as a closure, so the memo is consulted only after ValidateBasic and the cheaper header checks. A new state_last_commit_verification_skipped counter makes the skip observable, and a marshal failure on the memo path is logged instead of swallowed. * refactor(state): replace commit-verification memo with typed VerifiedCommit token (#1456) * feat(types): add CommitVerification, a typed proof of commit verification VerifyCommitSignatures verifies a commit exactly as ValidatorSet.VerifyCommit does and, on success, returns a CommitVerification recording the chain, height, block ID, quorum, threshold key and the signed digests and signatures it checked. ValidatorSet.VerifyCommitUnlessVerified skips the threshold verification only when a verification covers exactly those inputs. Anything else, including the zero value, falls through to the unchanged verifyCommit, so its typed errors (ErrInvalidCommitSignature versus the untyped vote-extension count mismatch and budget exhaustion) are preserved. verifyCommit is split into commitSignData and verifyCommitReportingSigns with every error path unchanged. Co-Authored-By: Claude Opus 5 <[email protected]> * refactor(state): replace commit-verification memo with typed CommitVerification token BlockExecutor.VerifyCommit returns a types.CommitVerification instead of recording it in a private two-slot memo. ValidateBlock, ValidateBlockWithRoundState, FinalizeBlock and ApplyBlock take the verification of block.LastCommit explicitly. Block sync's applier threads the verification of each commit one block forward; consensus and the replayer pass the zero value and verify in full as before. The state_last_commit_verification_skipped metric keeps its meaning. Co-Authored-By: Claude Opus 5 <[email protected]> * test(consensus): deflake TestWALRoundsSkipper The WAL generator node is the only validator, so it proposes every round, and replayPrevoter makes heights 3 to 5 commit only at round 10. The test genesis gives round 10 a 30.5ms propose timeout. On a loaded runner (-race, -coverprofile, several packages at once) that timer fires before the node's own proposal is complete, so it prevotes nil and moves to round 11: - at height 5, stopConsensusAtHeight(5, 11) halts consensus and the test times out after 60s ("waited too long for tendermint to produce 5 blocks"), which is the failure seen on #1391, #1393 and #1410; - at height 3 or 4, the commit lands past maxRound and the round assertion fails. Give the generator a 10s propose timeout. With a single proposer, a round moves on as soon as the proposal is complete, so a longer timeout only removes the race. UnsafeProposeTimeoutOverride is node-local and not a consensus parameter, so the blocks are unchanged. TestWALRoundsSkipperSlowProposer pins this. Its app holds PrepareProposal at round 10 for three times the genesis propose timeout. Without the override it fails every run; with it, it passes every run. Once the test survives load, a second pre-existing flake surfaces. The replaying State and its WAL keep running after Stop/Wait: receiveRoutine exits only when it sees its context cancelled, and the services' ctx watchers log asynchronously. Their logs through NewTestingLogger then land after the test completes and panic the binary ("Log in goroutine after TestWALRoundsSkipper has completed"). The test now logs through a writer that is muted, under a lock, by its first-registered cleanup. Co-Authored-By: Claude Opus 5 <[email protected]> * refactor(types): turn CommitVerification into VerifiedCommit types.CommitVerification only carried proof metadata, checked against a commit passed alongside it. It becomes types.VerifiedCommit: the commit itself plus an optional proof. type VerifiedCommit struct { commit *Commit // the caller's pointer, the subject only proof *commitProof // nil: no proof } commitProof keeps the nine fields CommitVerification recorded, with their doc comments. - VerifyCommitSignatures keeps its signature, checks and errors. It returns the commit with a proof on success, and the zero VerifiedCommit on failure. - NewUnverifiedCommit(commit) builds the no-proof variant. The zero value is NewUnverifiedCommit(nil). - Commit() returns the embedded pointer. Its doc spells out that it is not evidence and must never be validated in place of the commit actually received. - checkMatches moves to *commitProof and treats a nil receiver as "nothing was verified". It compares commit content only, never pointer identity. - errCommitVerificationMismatch becomes errCommitProofMismatch. Only the parameter types change at the call sites. block.LastCommit is still read from the block, and the current-height commit parameter of ApplyBlock/FinalizeBlock is untouched. Consensus (finalize, validate), ProcessProposal and the replayer pass NewUnverifiedCommit(block.LastCommit); the block-sync applier keeps the zero value where it holds no commit. Mocks are regenerated with mockery v3.7.4. Tests: - the types tests are renamed to VerifiedCommit; - the proof-mutation test pins with require.Same that the embedded commit aliases the caller's pointer; - a new case shows that a VerifiedCommit without proof, even one holding the very commit being verified, never skips verification; - the new TestBlockApplierSkipsTheLastCommitItVerified drives three blocks through a real executor and asserts LastCommitVerificationSkipped reaches 0, 2 and 4. It fails if the applier hands the next block the commit without its proof; - metricspy gains a Counter for it. Co-Authored-By: Claude Opus 5 <[email protected]> * chore: retrigger CI GitHub Actions never picked up 0eccc06 (no check-suite created for it after 45+ minutes, unlike every prior push on this branch) — pushing an empty commit to force a fresh push event. Co-Authored-By: Claude Sonnet 5 <[email protected]> * refactor(types): drop NewUnverifiedCommit, the only way to fake a VerifiedCommit NewUnverifiedCommit let any caller wrap an arbitrary commit into a value of a type named VerifiedCommit while attaching no proof at all -- a naming trap, and unused by anything that reads Commit(): nothing outside tests ever called it. The four call sites that used it to signal "no proof held" never read the commit back off the value either; they only pass it into VerifyCommitUnlessVerified, which already falls through to a full verification on any proof-less value, zero value included. Remove the constructor. The zero value is now the only proof-less VerifiedCommit that code outside types can produce, and it is the only one that matters in practice: consensus, the replayer and block sync's ProcessProposal path all switch to it. The still-exported Commit() and the commit field stay -- VerifyCommitSignatures is still the only way to end up with a VerifiedCommit that names a real commit, and it always pairs one with its proof. TestUnverifiedCommitMatchesNothing keeps its "holds the exact commit but no proof" case as an in-package struct literal: a white-box test proving the mismatch check would still refuse to skip verification even in that stronger, no-longer-reachable-from-outside scenario. Co-Authored-By: Claude Sonnet 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> * perf(state): offer the verified LastCommit to ProcessProposal Since block sync validates the app response through ProcessProposal(verify=true), ValidateBlockWithRoundState runs there with a hard-coded zero proof, so every synced block threshold-verified its LastCommit once more even though the applier already held the proof. ProcessProposal takes lastCommit and forwards it to the verify branch. The block applier hands it the proof it carries forward; consensus and the replayer hold none and pass the zero value. ApplyBlock passes its own lastCommit through for uniformity; it is unread with verify unset. TestBlockApplierSkipsTheLastCommitItVerified now expects three skips per height after the first, and fails against the previous commit. Co-Authored-By: Claude Opus 5 <[email protected]> * test(state): trim the ApplyBlock LastCommit verification tests - Count skipped verifications with metricspy.Counter instead of a local duplicate of it. - Drop the subtest applying a forged commit with the verification VerifyCommit returned on rejecting it: that verification is the zero value, already pinned by "rejected commit yields no verification" and TestVerifiedCommitKeepsTheVerifyCommitErrors, and a forged LastCommit without proof is pinned by "unverified forged commit is rejected". - TestApplyBlockSkipsVerifiedLastCommit covers ApplyBlock only; block sync no longer calls it, so point to the block sync pin instead. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: lklimek <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
* test(consensus): deflake TestWALRoundsSkipper
The WAL generator node is the only validator, so it proposes every round,
and replayPrevoter makes heights 3 to 5 commit only at round 10. The test
genesis gives round 10 a 30.5ms propose timeout. On a loaded runner (-race,
-coverprofile, several packages at once) that timer fires before the node's
own proposal is complete, so it prevotes nil and moves to round 11:
- at height 5, stopConsensusAtHeight(5, 11) halts consensus and the test
times out after 60s ("waited too long for tendermint to produce 5
blocks"), which is the failure seen on #1391, #1393 and #1410;
- at height 3 or 4, the commit lands past maxRound and the round assertion
fails.
Give the generator a 10s propose timeout. With a single proposer, a round
moves on as soon as the proposal is complete, so a longer timeout only
removes the race. UnsafeProposeTimeoutOverride is node-local and not a
consensus parameter, so the blocks are unchanged.
TestWALRoundsSkipperSlowProposer pins this. Its app holds PrepareProposal at
round 10 for three times the genesis propose timeout. Without the override
it fails every run; with it, it passes every run.
Once the test survives load, a second pre-existing flake surfaces. The
replaying State and its WAL keep running after Stop/Wait: receiveRoutine
exits only when it sees its context cancelled, and the services' ctx
watchers log asynchronously. Their logs through NewTestingLogger then land
after the test completes and panic the binary ("Log in goroutine after
TestWALRoundsSkipper has completed"). The test now logs through a writer
that is muted, under a lock, by its first-registered cleanup.
Co-Authored-By: Claude Opus 5 <[email protected]>
* test(consensus): wait for WAL replay writes before cleanup
Stop replay processing after the required block commits, or when the test
returns early. Wait for the replay stop predicate before shutting down its
WAL and message queue so temporary directories are removed after writes end.
Validated both WAL rounds skipper tests with -race -tags=deadlock -count=30.
Co-Authored-By: Codex <[email protected]>
<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>
---------
Co-authored-by: Claude Opus 5 <[email protected]>
Bumps github.com/prometheus/client_golang from 1.23.2 to 1.24.1.
Release notes
Sourced from github.com/prometheus/client_golang's releases.
... (truncated)
Changelog
Sourced from github.com/prometheus/client_golang's changelog.
Commits
d6087eerelease: cut v1.24.1 (#2076)48dd383Cut v1.24.0 (#2061)a725305Cut v1.24.0-rc.0 (#2058)77c584fbuild(deps): update all Go dependencies in all go.mod files (#2059)78262a7feat(promhttp): add CoalesceGather option to deduplicate concurrent Gather ca...34e9a7fMerge pull request #2055 from prombot/repo_sync43749bcUpdate common Prometheus filesde19217examples: improve simple main.go example (#1999)20355ebfix: correct typos in comments and test error messages (#2049)4cd2d3atest: fix two flaky tests (darwin start_time regex, memstats HeapReleased dri...