8000 add warp tests for Coreth by ceyonur · Pull Request #1000 · ava-labs/coreth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add warp tests for Coreth #1000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jun 26, 2025
Merged

add warp tests for Coreth #1000

merged 26 commits into from
Jun 26, 2025

Conversation

ceyonur
Copy link
Collaborator
@ceyonur ceyonur commented Jun 2, 2025

Why this should be merged

Adds warp tests and simulator from subnet-evm

How this works

Clones tests/warp_test and cmd/simulator from subnet-evm and enables warp e2e testing in CI. This actually uses Subnet-EVM under the hood for Subnet<>C-chain warp tests.

How this was tested

e2e

Need to be documented?

No

Need to update RELEASES.md?

No

@ceyonur ceyonur marked this pull request as ready for review June 2, 2025 16:54
@ceyonur ceyonur requested a review from a team as a code owner June 2, 2025 16:54
@ARR4N
Copy link
Collaborator
ARR4N commented Jun 24, 2025

Clones tests/warp_test and cmd/simulator from subnet-evm

So these have been reviewed already?

It looks like tests/utils has been cloned too. What is new vs cloned in this PR?

@ceyonur
Copy link
Collaborator Author
ceyonur commented Jun 24, 2025

Clones tests/warp_test and cmd/simulator from subnet-evm

So these have been reviewed already?

It looks like tests/utils has been cloned too. What is new vs cloned in this PR?

There is no new files added here, some test files (under tests) got modified according to coreth and hardhat tests are omitted. Header subscription was also broken for subnet-evm via coreth client; so removed them in favor of depending on timeouts on getBlockHashAndNumberFromTxReceipt (we do continuously check the accepted tx with tx hash anyway)

@ARR4N
Copy link
Collaborator
ARR4N commented Jun 24, 2025

Notes to self and other reviewers. Compared against ava-labs/subnet-evm@6e67777:

  • cmd/simulator only trivial changes (copyright headers, import paths, *ethclient.Client as pointer)
  • tests/warp removes subnet B, doesn't wait on head events, and doesn't run Hardhat tests

Copy link
Collaborator
@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

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

I've only reviewed the ways in which the Go differs from ava-labs/subnet-evm@6e67777 copied files. A couple of small things can be improved.

I think @maru-ava's review is important for this one.

Copy link
Collaborator
@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

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

LGTM re Go but I think Maru should have the ultimate say on this one so I'll wait for him to approve.

Dunno how to clear the PR-level notification that I requested changes 🤷

Copy link
Contributor
@maru-ava maru-ava left a comment

Choose a reason for hiding this comment

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

I've noticed a trend in recent subnet-evm and coreth PRs to move functionality from scripts to CI workflows. I think this is counterproductive - it encourages round-tripping through CI instead of just running things locally.

For future, I recommend following the example of avalanchego:

This enables both discoverability of available tasks (./scripts/run_task.sh without arguments outputs all tasks) and maximizes the potential for reproducing what runs in CI - it can be as simple as task [ci job].

Copy link
Collaborator
@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

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

Approving on behalf of @ava-labs/platform-evm as it's a pre-requisite but please wait for @maru-ava to approve before merging.

@ceyonur ceyonur enabled auto-merge June 26, 2025 14:56
@ceyonur ceyonur added this pull request to the merge queue Jun 26, 2025
Merged via the queue into master with commit 475c04d Jun 26, 2025
10 checks passed
@ceyonur ceyonur deleted the add-warp-tests branch June 26, 2025 15:13
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
0