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

chore: E2E test migration #226

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

chore: E2E test migration #226

wants to merge 19 commits into from

Conversation

mfw78
Copy link
Collaborator

@mfw78 mfw78 commented Oct 7, 2024

Description

This PR is to close out the milestone of migrating tests to foundry. As all E2E tests have been migrated into the e2e-migration branch for staging purposes, this PR then merges (through use of rebase / fast-forward) these tests to the main branch.

Test Plan

  1. Verify CI/CD green and that all related tests have been migrated.

Related Issues

Fixes #130

## Description

Base test contract for forked tests in e2e tests

## Test Plan

CI

## Related Issues
## Description

Migrate nonStandardErc20 e2e test to foundry. Depends on
`FoundryTest.sol` introduced in #215

## Test Plan

CI

## Related Issues

Closes #138
## Description

Migrate the internalBalances e2e test to foundry. Depends on #215.

## Test Plan

CI

## Related Issues

Closes #137
## Description

Migrate the 0xTrade e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Closes #131 #132
@mfw78 mfw78 requested a review from fedgiac October 7, 2024 11:26
@mfw78 mfw78 self-assigned this Oct 7, 2024
mfw78 and others added 14 commits October 7, 2024 11:44
## 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

Migrate wineOilMarket e2e test to foundry. Depends on #215 for the
`ForkedTest.t.sol`.

## Test Plan

CI

## Related Issues

Closes #143
## Description

Migrate the upgradeAuthenticator e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Closes #142
## 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

Migrate the burnFees e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Closes #134
## 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 buyEth e2e test to foundry. Depends on
#215

## Test Plan

CI

## Related Issues
Closes #135
<!-- List related issues here -->
<!-- Closes #issue (optional) -->

---------

Co-authored-by: mfw78 <[email protected]>
## Description

Migrate the offchainAllowances e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Closes #139
## Description

Migrate the smartOrder e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Issue doesn't exist
## Description

Migrate the uniswapTrade e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Closes #141
## Description

Migrate the contractOrdersWithGnosisSafe e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Closes #136
## Description

Migrate the deployment e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Closes #149
## 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

Migrate the balancerSwap e2e test to foundry. Depends on
#215.

## Test Plan

CI

## Related Issues

Closes #133
@mfw78 mfw78 changed the title E2E test migration chore: E2E test migration Oct 9, 2024
## 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
@mfw78 mfw78 marked this pull request as ready for review October 9, 2024 08:05
@mfw78 mfw78 requested a review from a team as a code owner October 9, 2024 08:05
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@jridgewell/[email protected] None 0 53.2 kB jridgewell
npm/@jridgewell/[email protected] None 0 113 kB jridgewell
npm/@sindresorhus/[email protected] None 0 40.2 kB sindresorhus
npm/@szmarczak/[email protected] None 0 6.3 kB szmarczak
npm/@tsconfig/[email protected] None 0 2.31 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.5 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.39 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.45 kB typescript-deploys
npm/@types/[email protected] None 0 13.9 kB types
npm/[email protected] None 0 52.3 kB adrianheine, marijn, rreverser
npm/[email protected] None 0 49.8 kB indutny
npm/[email protected] None 0 2.63 kB ryanzim
npm/[email protected] environment, network 0 375 kB jasonsaayman
npm/[email protected] None 0 6.45 kB cwmma
npm/[email protected] None 0 6.27 kB cwmma
npm/[email protected] None 0 3.68 kB cwmma
npm/[email protected] None 0 14.5 kB cwmma
npm/[email protected] network 0 16.8 kB lukechilds
npm/[email protected] None 0 14.5 kB andyburke
npm/[email protected] None 0 4.98 kB isaacs
npm/[email protected] None 0 5.4 kB cwmma
npm/[email protected] network 0 68.1 kB lquixada
npm/[email protected] None 0 53.5 kB cwmma
npm/[email protected] None 0 3.54 kB sindresorhus
npm/[email protected] network 0 5.45 kB szmarczak
npm/[email protected] None 0 38.6 kB indutny
npm/[email protected] None 0 17.3 kB cwmma
npm/[email protected] None 0 5.69 kB sindresorhus
npm/[email protected] None 0 131 kB holgerd77
npm/[email protected] network 0 26.5 kB rubenverborgh
npm/[email protected] filesystem, network 0 43.4 kB niftylettuce
npm/[email protected] filesystem 0 130 kB ryanzim
npm/[email protected] filesystem 0 21.8 kB sindresorhus
npm/[email protected] filesystem, network 0 85.4 kB sindresorhus
npm/[email protected] environment, filesystem 0 28.6 kB isaacs
npm/[email protected] None 0 18.4 kB ljharb
npm/[email protected] None 0 3.89 kB juliangruber
npm/[email protected] None 0 5.44 kB dominictarr
npm/[email protected] filesystem 0 19.8 kB ryanzim
npm/[email protected] None 0 754 kB fanatid
npm/[email protected] None 0 14.7 kB lukechilds
npm/[email protected] network 0 162 kB node-fetch-bot
npm/[email protected] None 0 18.1 kB sindresorhus
npm/[email protected] network 0 7.5 MB juancaicedo
npm/[email protected] None 0 12.5 kB sindresorhus
npm/[email protected] None 0 13 kB cwmma
npm/[email protected] None 0 2.98 kB sindresorhus
npm/[email protected] None 0 3.17 kB cwmma
npm/[email protected] None 0 27.8 kB cwmma
npm/[email protected] None 0 204 kB ljharb
npm/[email protected] None 0 6.84 kB cwmma
npm/[email protected] environment 0 88.1 kB matteo.collina
npm/[email protected] None 0 4.63 kB lukechilds
npm/[email protected] None 0 15.3 kB matteo.collina
npm/[email protected] None 0 2.79 kB sindresorhus
npm/[email protected] environment, filesystem, unsafe 0 757 kB blakeembrey
npm/[email protected] None 0 175 kB dchest
npm/[email protected] None 0 111 kB jashkenas
npm/[email protected] None 0 4.64 kB ryanzim
npm/[email protected] None 0 4.23 kB sindresorhus
npm/[email protected] None 0 34.3 kB ctavan
npm/[email protected] None 0 8.62 kB ralxz
npm/[email protected] None 0 36.8 kB ralxz
npm/[email protected] None 0 38 kB ralxz
npm/[email protected] None 0 4.77 kB ralxz
npm/[email protected] None 0 20.2 kB ralxz
npm/[email protected] None 0 20.4 kB ralxz
npm/[email protected] None 0 19.2 kB ralxz
npm/[email protected] None 0 35.9 kB ralxz
npm/[email protected] None 0 32.7 kB ralxz
npm/[email protected] None 0 46.4 kB ralxz
npm/[email protected] None 0 87.9 kB ralxz
npm/[email protected] None 0 15.1 kB ralxz
npm/[email protected] None 0 15.3 kB ralxz
npm/[email protected] None 0 60.4 kB ralxz
npm/[email protected] None 0 7.68 kB ralxz
npm/[email protected] network 0 10.9 kB ralxz
npm/[email protected] None 0 14.2 kB ralxz
npm/[email protected] None 0 19.6 kB ralxz
npm/[email protected] None 0 20.8 kB ralxz
npm/[email protected] None 0 122 kB ralxz
npm/[email protected] filesystem 0 8.52 MB ralxz
npm/[email protected] network 0 153 kB theturtle32
npm/[email protected] None 0 23.1 kB mislav
npm/[email protected] None 0 32 kB ljharb
npm/[email protected] network 0 113 kB lpinca
npm/[email protected] network 0 54.6 kB souldreamer

🚮 Removed packages: npm/@0x/[email protected], npm/@ethereumjs/[email protected], npm/@ethereumjs/[email protected], npm/@gnosis.pm/[email protected], npm/@jridgewell/[email protected], npm/@jridgewell/[email protected], npm/@safe-global/[email protected], npm/@safe-global/[email protected], npm/@safe-global/[email protected], npm/@safe-global/[email protected], npm/@sindresorhus/[email protected], npm/@slack/[email protected], npm/@slack/[email protected], npm/@slack/[email protected], npm/@szmarczak/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Critical CVE npm/[email protected] ⚠︎

View full report↗︎

Next steps

What is a critical CVE?

Contains a Critical Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

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.

tests(core): e2e tests
2 participants