-
Notifications
You must be signed in to change notification settings - Fork 51
E2e migration update #253
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
base: main
Are you sure you want to change the base?
E2e migration update #253
Conversation
## Description Base test contract for forked tests in e2e tests ## Test Plan CI ## Related Issues
## Description This PR replaces llamarpc with merkle.io for the RPC as there are higher RPS. ## Test Plan 1. Ensure CI/CD remains green for fork tests. ## Related Issues N/A
## Description In order to make use of cache, and to convey to testers / developers what the assumptions of fork tests are, the fork block number is established as a constant within the `Helper.sol`. ## Test Plan 1. Verify that CI/CD passes. ## Related Issues N/A
## Description This PR sets the `FORK_URL` environment variable to a mainnet archive node with sufficient RPS / capacity to facilitate the fork tests. ## Test Plan 1. Verify CI/CD green. ## Related Issues N/A
## Description Migrate the smartOrder e2e test to foundry. Depends on #215. ## Test Plan CI ## Related Issues Issue doesn't exist
## Description This PR addresses the environment setup that was used for fork tests. Now, the `FORK_URL` is set by a secret, and the `FORK_BLOCK_NUMBER` is hard coded within the `e2e` Helper as a constant so that assumptions are visible for auditors / developers. ## Test Plan 1. Confirm CI/CD green ## Related Issues N/A
## Description This PR removes extraneous TypeScript that has been left over as a result of the E2E tests. ## Test Plan 1. Confirm CI/CD green. ## Related Issues #130
* remove balancer tests (we will be actively removing balancer support itself by the next release) * update to use latest openzepplin (actually supports 0.8) * remove the foundry warnings error (temp so that we can get things to compile)
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
there are probably some dumb things here and there but this serves as a starting point now moving onto coverage, there are some things missing
Description
Forking off the original
e2e-migrationbranch, finish the E2E tests migration. This PR has been pending for a while and needed some updates based on the latest state of solidity/plans for the future of the protocol, so its been updated/adapted.Concretely, this branch differs from the original branch by:
forge fmtyarnto fail install on my ARM hardware and updating seems to have no noticable negative effect at this time)The actual diff between original e2e testing brnach can be seen here (individual commits viewing is helpful due to the forge fmt): e2e-migration...e2e-migration-update
The previous branch was pretty scant on documentation and review, and never received a review in the first place. The original reviewers are no longer here, and some lint fixes from upstream foundry are needed, so may we just start again with this branch?
Test Plan
The new tests can be verified with
FORK_URL=<url of mainnet> forge test. There are no more tests in hardhat. We may consider removing hardhat entirely?Related Issues
#226