Skip to content

v2.7.2 candidate#2195

Merged
manav2401 merged 5 commits intomasterfrom
v2.7.2-candidate
Apr 24, 2026
Merged

v2.7.2 candidate#2195
manav2401 merged 5 commits intomasterfrom
v2.7.2-candidate

Conversation

@manav2401
Copy link
Copy Markdown
Member

Prepare for v2.7.2-beta release

marcello33 and others added 4 commits April 23, 2026 19:57
…eth_simulateV1 (#1)

* re-enable eth_simulateV1 with fixes

* add ctx cancel errors on some rpc functions

* use private runner for kurtosis e2e tests

* bump golang and golangci-lint
…system txs (#3)

* internal/ethapi, consensus/bor: only bypass rpc gas cap for internal system txs

* internal/ethapi: update comments
)

* consensus/bor: refactor Finalize to add better checks for state-sync

* consensus/bor: refactor tests

* consensus/bor: resolve small comment for test

* consensus/bor: type check before setting state-syncs
Copilot AI review requested due to automatic review settings April 23, 2026 14:32
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@manav2401 manav2401 added the do not squash and merge This PR will be NOT be squashed and merged label Apr 23, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Prepares the v2.7.2-beta release by bumping version/tooling and tightening Bor + RPC behaviors around simulation, state-sync finalization, and cancellation handling.

Changes:

  • Bump version to 2.7.2-beta and update Go/tooling versions.
  • Re-enable/extend eth_simulateV1 with per-request limits and an RPC-wide gas budget.
  • Improve consensus finalization to return errors and harden Bor state-sync mismatch detection + add context-cancellation checks during scans/replay.

Reviewed changes

Copilot reviewed 27 out of 28 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/bor/bor_test.go Update expected Bor state-sync error to mismatch classification.
params/version.go Bump version constants to 2.7.2-beta.
internal/ethapi/simulate_test.go Initialize simulator with the new gas budget in tests.
internal/ethapi/simulate.go Add gas budget + call-count limits; expose MaxUsedGas; enforce cross-block RPC gas cap.
internal/ethapi/bor_api_test.go Add tests for ctx cancellation during log scanning and gas-cap bypass safety.
internal/ethapi/bor_api.go Add internal-call context marker; respect ctx cancellation during GetLogs scans.
internal/ethapi/api_test.go Remove SimulateV1 disabled assertions; adjust tests for new simulator budget; add ctx-cancel test for AccountAt.
internal/ethapi/api.go Restrict system-tx gas-cap bypass to internal calls; re-enable SimulateV1 with limits; add ctx cancellation in AccountAt replay.
go.mod Update Go toolchain version.
ethclient/ethclient_test.go Unskip eth_simulateV1 client tests.
eth/tracers/data.csv Update expected tracer dataset ordering/indexing.
core/state_processor.go Handle consensus Finalize errors; emit state-sync mismatch error with more detail.
core/parallel_state_processor.go Same as state_processor for parallel path.
core/error.go Split Bor state-sync errors into processing vs mismatch categories.
consensus/ethash/consensus.go Update Finalize signature to return (receipts, error).
consensus/consensus.go Change Engine.Finalize interface to return an error.
consensus/clique/clique.go Update Finalize signature and FinalizeAndAssemble call site.
consensus/bor/heimdall/span/spanner.go Mark consensus-originated eth calls as internal to allow gas-cap bypass.
consensus/bor/contract/client.go Mark genesis-contract internal eth call as internal for gas-cap bypass.
consensus/bor/bor_test.go Update Bor Finalize tests for new error-returning signature; add Madhugiri state-sync mismatch coverage.
consensus/bor/bor.go Make Bor Finalize return errors; enforce Madhugiri state-sync tx presence/hash match.
consensus/beacon/consensus.go Update Finalize signature and FinalizeAndAssemble call site.
cmd/keeper/go.sum Dependency hash updates (x/sys) and add x/time checksum.
cmd/keeper/go.mod Update Go toolchain version for keeper module.
Makefile Update golangci-lint installer version used by lint-deps.
Dockerfile.alltools Update Go builder image tag.
Dockerfile Update Go builder image tag.
.golangci.yml Update Go version used by golangci-lint run config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/ethapi/simulate.go
Comment thread consensus/bor/bor.go
Comment thread consensus/consensus.go
Comment thread internal/ethapi/api.go
@claude
Copy link
Copy Markdown

claude Bot commented Apr 23, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

❌ Patch coverage is 68.57143% with 44 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.21%. Comparing base (4115ac5) to head (ad2d891).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
internal/ethapi/simulate.go 62.50% 9 Missing and 6 partials ⚠️
core/parallel_state_processor.go 0.00% 7 Missing ⚠️
internal/ethapi/api.go 70.00% 4 Missing and 2 partials ⚠️
core/state_processor.go 50.00% 3 Missing and 1 partial ⚠️
consensus/beacon/consensus.go 50.00% 2 Missing and 1 partial ⚠️
consensus/clique/clique.go 50.00% 2 Missing and 1 partial ⚠️
consensus/ethash/consensus.go 40.00% 2 Missing and 1 partial ⚠️
consensus/bor/bor.go 96.77% 1 Missing ⚠️
consensus/bor/contract/client.go 0.00% 1 Missing ⚠️
consensus/bor/heimdall/span/spanner.go 80.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (68.57%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2195      +/-   ##
==========================================
+ Coverage   52.00%   52.21%   +0.20%     
==========================================
  Files         884      884              
  Lines      155577   155479      -98     
==========================================
+ Hits        80915    81190     +275     
+ Misses      69456    69060     -396     
- Partials     5206     5229      +23     
Files with missing lines Coverage Δ
internal/ethapi/bor_api.go 65.85% <100.00%> (-0.89%) ⬇️
params/version.go 23.68% <ø> (ø)
consensus/bor/bor.go 85.36% <96.77%> (+1.72%) ⬆️
consensus/bor/contract/client.go 0.00% <0.00%> (ø)
consensus/bor/heimdall/span/spanner.go 44.53% <80.00%> (ø)
consensus/beacon/consensus.go 10.58% <50.00%> (-0.78%) ⬇️
consensus/clique/clique.go 41.40% <50.00%> (-0.52%) ⬇️
consensus/ethash/consensus.go 37.33% <40.00%> (-0.79%) ⬇️
core/state_processor.go 63.24% <50.00%> (-0.76%) ⬇️
internal/ethapi/api.go 41.31% <70.00%> (+2.17%) ⬆️
... and 2 more

... and 25 files with indirect coverage changes

Files with missing lines Coverage Δ
internal/ethapi/bor_api.go 65.85% <100.00%> (-0.89%) ⬇️
params/version.go 23.68% <ø> (ø)
consensus/bor/bor.go 85.36% <96.77%> (+1.72%) ⬆️
consensus/bor/contract/client.go 0.00% <0.00%> (ø)
consensus/bor/heimdall/span/spanner.go 44.53% <80.00%> (ø)
consensus/beacon/consensus.go 10.58% <50.00%> (-0.78%) ⬇️
consensus/clique/clique.go 41.40% <50.00%> (-0.52%) ⬇️
consensus/ethash/consensus.go 37.33% <40.00%> (-0.79%) ⬇️
core/state_processor.go 63.24% <50.00%> (-0.76%) ⬇️
internal/ethapi/api.go 41.31% <70.00%> (+2.17%) ⬆️
... and 2 more

... and 25 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@manav2401 manav2401 merged commit f79a330 into master Apr 24, 2026
11 of 12 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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

Labels

do not squash and merge This PR will be NOT be squashed and merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants