Skip to content

Conversation

@NathanBSC
Copy link
Contributor

@NathanBSC NathanBSC commented Apr 12, 2024

image

two errors in func ConfigCompatError as error info in the above picture

  1. RewindToTime overflow
    for dev testnet, often set timebased hardfork to 0, so they will be enabled same with London Block at genesis
    for example in genesis.json
    "shanghaiTime": 0,
    then we change it
    "shanghaiTime": 1712889032,
    and run `geth --datadir ./ init ./genesis.json, then RewindToTime will overflow to the max of uint64 type

  2. err.StoredTime and err.NewTime are pointers, print them is meaningless, their value are desired

@NathanBSC NathanBSC force-pushed the fix_print_ConfigCompatError branch from d05595c to 05bd185 Compare April 12, 2024 02:17
@NathanBSC NathanBSC marked this pull request as ready for review April 12, 2024 02:34
@NathanBSC
Copy link
Contributor Author

failed test cases not related
image

@NathanBSC
Copy link
Contributor Author

@holiman hi, updated as you suggested and a UT added.
anything other to improve this PR?

@NathanBSC NathanBSC force-pushed the fix_print_ConfigCompatError branch from 9e861d3 to 2baaa72 Compare April 25, 2024 09:37
@fjl fjl changed the title fix: print value instead of pointer in ConfigCompatError params: print time value instead of pointer in ConfigCompatError Apr 30, 2024
@fjl fjl added this to the 1.14.1 milestone Apr 30, 2024
@fjl fjl merged commit 69f815f into ethereum:master Apr 30, 2024
ARR4N pushed a commit to ava-labs/libevm that referenced this pull request Oct 29, 2024
…ereum#29514)

Cherry-pick of `69f815f6f5791e0e48160bdad284773d0ffb1ba9`.
darioush pushed a commit to ava-labs/libevm that referenced this pull request Nov 21, 2024
…ereum#29514)

Cherry-pick of `69f815f6f5791e0e48160bdad284773d0ffb1ba9`.
ARR4N pushed a commit to ava-labs/libevm that referenced this pull request Nov 29, 2024
…ereum#29514)

Cherry-pick of `69f815f6f5791e0e48160bdad284773d0ffb1ba9`.
darioush pushed a commit to ava-labs/libevm that referenced this pull request Jan 13, 2025
…ereum#29514)

Cherry-pick of `69f815f6f5791e0e48160bdad284773d0ffb1ba9`.
qdm12 pushed a commit to ava-labs/libevm that referenced this pull request Feb 14, 2025
ARR4N pushed a commit to ava-labs/libevm that referenced this pull request Feb 17, 2025
ARR4N pushed a commit to ava-labs/libevm that referenced this pull request Feb 17, 2025
github-merge-queue bot pushed a commit to ava-labs/libevm that referenced this pull request Mar 17, 2025
## Why this should be merged

Safer release process by enforcing invariants of `release/*` branches as
automated in #137 to fulfil #25.

## How this works

New test for `go_tooling` CI job.

If the PR target branch is `main` then only the `params.ReleaseType` is
checked. If the target is neither `main` nor a release branch then the
test is skipped. The checks performed on `release/*` branches are
described in the test.

## How this was tested

Locally against a dummy release branch with deliberate problems created
by (a) including this PR's changes in the final commit and (b) not
updating the libevm version.

```
$ go test -v ./... --target_branch="release/v1.13.14-0.1.0.rc.3"
=== RUN   TestCherryPicksFormat
--- PASS: TestCherryPicksFormat (0.39s)
=== RUN   TestBranchProperties
=== RUN   TestBranchProperties/branch_name
    release_test.go:172: 
                Error Trace:    .../ava-labs/libevm/libevm/tooling/release/release_test.go:172
                Error:          Not equal: 
                                expected: "release/v1.13.14-0.1.0.beta"
                                actual  : "release/v1.13.14-0.1.0.rc.3"
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1 +1 @@
                                -release/v1.13.14-0.1.0.beta
                                +release/v1.13.14-0.1.0.rc.3
                Test:           TestBranchProperties/branch_name
    release_test.go:175: On release branch; params.LibEVMReleaseType = "beta", which is unsuitable for release branches
=== RUN   TestBranchProperties/commit_history
    release_test.go:192: Forked from "main" at commit 4c6e50e (chore: module-renaming workflow inverts between `libevm` and `geth` (#152))
    release_test.go:314: ### History since fork from default branch (8 commits):
    release_test.go:316: internal/build, rpc: add missing HTTP response body Close() calls (ethereum#29223) by Shiming Zhang <[email protected]>
    release_test.go:316: core/state: fix bug in statedb.Copy and remove unnecessary preallocation (ethereum#29563) by Aaron Chen <[email protected]>
    release_test.go:316: params: print time value instead of pointer in ConfigCompatError (ethereum#29514) by Nathan <[email protected]>
    release_test.go:316: eth/gasprice: add query limit for FeeHistory to defend DDOS attack (ethereum#29644) by Nathan <[email protected]>
    release_test.go:316: core/state/snapshot: add a missing lock (ethereum#30001) by maskpp <[email protected]>
    release_test.go:316: crypto: add IsOnCurve check (ethereum#31100) by Felix Lange <[email protected]>
    release_test.go:316: internal/ethapi: fix panic in debug methods (ethereum#31157) by Sina M <[email protected]>
    release_test.go:316: x by Arran Schlosberg <[email protected]>
=== RUN   TestBranchProperties/commit_history/cherry_picked_commits
    release_test.go:314: ### Expected cherry-picks (7 commits):
    release_test.go:316: internal/build, rpc: add missing HTTP response body Close() calls (ethereum#29223) by Shiming Zhang <[email protected]>
    release_test.go:316: core/state: fix bug in statedb.Copy and remove unnecessary preallocation (ethereum#29563) by Aaron Chen <[email protected]>
    release_test.go:316: params: print time value instead of pointer in ConfigCompatError (ethereum#29514) by Nathan <[email protected]>
    release_test.go:316: eth/gasprice: add query limit for FeeHistory to defend DDOS attack (ethereum#29644) by Nathan <[email protected]>
    release_test.go:316: core/state/snapshot: add a missing lock (ethereum#30001) by maskpp <[email protected]>
    release_test.go:316: crypto: add IsOnCurve check (ethereum#31100) by Felix Lange <[email protected]>
    release_test.go:316: internal/ethapi: fix panic in debug methods (ethereum#31157) by Sina M <[email protected]>
=== RUN   TestBranchProperties/commit_history/final_commit
    release_test.go:365: Modified disallowed file "go.yml"
    release_test.go:365: Modified disallowed file "go.mod"
    release_test.go:365: Modified disallowed file "go.sum"
    release_test.go:365: Modified disallowed file "release_test.go"
--- FAIL: TestBranchProperties (2.07s)
    --- FAIL: TestBranchProperties/branch_name (0.00s)
    --- FAIL: TestBranchProperties/commit_history (2.07s)
        --- PASS: TestBranchProperties/commit_history/cherry_picked_commits (1.81s)
        --- FAIL: TestBranchProperties/commit_history/final_commit (0.01s)
FAIL
FAIL    github.com/ava-labs/libevm/libevm/tooling/release       2.712s
FAIL
```
qdm12 pushed a commit to ava-labs/libevm that referenced this pull request Mar 26, 2025
ARR4N pushed a commit to ava-labs/libevm that referenced this pull request Jun 10, 2025
ARR4N added a commit to ava-labs/libevm that referenced this pull request Oct 18, 2025
ARR4N added a commit to ava-labs/libevm that referenced this pull request Oct 19, 2025
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.

4 participants