Skip to content
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

Improve e2e scripts #855

Merged
merged 8 commits into from
Jun 15, 2023
Merged

Improve e2e scripts #855

merged 8 commits into from
Jun 15, 2023

Conversation

yrong
Copy link
Contributor

@yrong yrong commented Jun 12, 2023

Refactoring including

  • Upgrade polkadot to 0.9.42 & geth to V1.12
  • Refactoring for goerli setup
  • Verify contracts in etherscan

@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: -10.21 ⚠️

Comparison is base (0d03d79) 74.65% compared to head (fafa0b6) 64.44%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #855       +/-   ##
===========================================
- Coverage   74.65%   64.44%   -10.21%     
===========================================
  Files          28       10       -18     
  Lines        1294      225     -1069     
  Branches        0       52       +52     
===========================================
- Hits          966      145      -821     
+ Misses        328       60      -268     
- Partials        0       20       +20     

see 38 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@yrong yrong marked this pull request as ready for review June 12, 2023 13:47
core/packages/test/scripts/set-env.sh Outdated Show resolved Hide resolved
@@ -40,7 +40,7 @@

# ethereum
foundry-bin
go-ethereum
# go-ethereum
Copy link
Collaborator

Choose a reason for hiding this comment

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

@doubledup can you try bump the version in Nix again please.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually @yrong, is it necessary to upgrade to go-ethereum 1.12? Can we wait for a bit longer?

Copy link
Contributor Author

@yrong yrong Jun 12, 2023

Choose a reason for hiding this comment

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

Seems nix packages for 1.12 is not ready yet, For upstreams components we heavily depend on like Geth I would prefer to sync more closely to recent release without waiting nix counterpart to be ready.

Btw, Geth client used here is only for dev setup and I've tested E2E still work as expected. For production usage we can just connect to infura endpoint as we did before.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok, sounds fine 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

We would still need to run geth for the beacon node to connect to an Eth1 chain though, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly, but I would prefer these locally running clients are only readable for fast api response(reading from public endpoint could be slow), for transactions we can still submit to the infura endpoint as before.

core/packages/contracts/src/DeployScript.sol Outdated Show resolved Hide resolved
Copy link
Collaborator

@vgeddes vgeddes left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@claravanstaden claravanstaden left a comment

Choose a reason for hiding this comment

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

Looks great! I'll test this out as soon as my local setup works again.

@@ -7,14 +7,14 @@ source scripts/xcm-helper.sh
config_beacon_checkpoint()
{
pushd $root_dir
check_point_call=$($relay_bin generate-beacon-checkpoint --spec $active_spec --url $beacon_endpoint_http)
local check_point_call=$($relay_bin generate-beacon-checkpoint --spec $active_spec --url $beacon_endpoint_http)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you adding this? Just a best practice? 😄 Or did you encounter problems because the variable isn't local?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, just best practice Vincent mentioned here #855 (comment)

@@ -40,7 +40,7 @@

# ethereum
foundry-bin
go-ethereum
# go-ethereum
Copy link
Contributor

Choose a reason for hiding this comment

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

We would still need to run geth for the beacon node to connect to an Eth1 chain though, right?

@yrong yrong merged commit 65450c1 into main Jun 15, 2023
@yrong yrong deleted the ron/goerli-e2e branch June 15, 2023 02:58
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