-
Notifications
You must be signed in to change notification settings - Fork 490
Feature/fet 1977 alternative migrate tests to foundry #461
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: staging
Are you sure you want to change the base?
Feature/fet 1977 alternative migrate tests to foundry #461
Conversation
|
Crazy! I do think we should use foundry when possible but complex tests should stay in TypeScript as the equivalent Solidity is unreadable. I think Also, I made an earlier attempt at this. Not sure if any of my utility tests are useful. |
Sure, I think it will be better in the long run to keep both in the same structure. I believe it's still possible to achieve clear ccip-read foundry tests using ffi functionality but that's just preference. I am happy with both. |
|
is it actually useful to have all the pre-existing tests in foundry? |
In my opinion, maintaining test dependencies with Hardhat and its plugins introduces additional complexity, especially when dealing with compatibility issues or required patches. Since many of these concerns are already handled well in Foundry, this could be a good opportunity to consider a gradual transition. We can retain the existing *.ts tests as legacyTests to avoid confusion from a sudden removal. |
yes it is, for test environment. it is planned for tenv to be able to deploy smart contracts without requiring a complex setup involving multiple hardhat versions and other crap after ens-contracts get migrated to foundry, migrating deploy scripts from ensjs to tenv will be easier and require less setup |
| bun-version: 1.2.0 | ||
|
|
||
| - run: bun install --frozen-lockfile | ||
| - run: bun install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frozen lockfiles ensure no random transititves get pulled and that the build is reproducible. I suggest to put it back and regenerate the lockfile and commit it to ensure it matches the same one in CI
new deploy scripts are utilising rocketh anyway, how are foundry tests related? |
ah right yeah tests are not very related, but deploy scripts are |
No description provided.