Skip to content

tests: fix evm tests CI#2887

Merged
brilliant-lx merged 1 commit intobnb-chain:developfrom
buddh0:fix_evm-tests-CI
Feb 11, 2025
Merged

tests: fix evm tests CI#2887
brilliant-lx merged 1 commit intobnb-chain:developfrom
buddh0:fix_evm-tests-CI

Conversation

@buddh0
Copy link
Copy Markdown
Contributor

@buddh0 buddh0 commented Feb 11, 2025

Description

tests: fix evm tests CI

Rationale

when run run-evm-tests.sh locally, there are 518641 cases are run
but in CI https://github.com/bnb-chain/bsc/actions/runs/13255495909/job/37001551107
even it shows that it succeed, but only 212204 case are run
image
the reason is that a timeout is trigged
image

in this PR, the flag short is added following to geth,
for one json test file, one of the four modes [path/snap, path/trie, hash/snap, hash/trie] will be selected randomly.

	if testing.Short() {
		snapshotConf = []bool{snapshotConf[rand.Int()%2]}
		dbschemeConf = []string{dbschemeConf[rand.Int()%2]}
	}

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@brilliant-lx brilliant-lx merged commit 0e03696 into bnb-chain:develop Feb 11, 2025
7 checks passed
@buddh0 buddh0 deleted the fix_evm-tests-CI branch March 3, 2025 07:10
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.

3 participants