-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Implement robustness improvements in the compiler downloader #6056
base: v-next
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
a2c8b5c
to
70d8632
Compare
70d8632
to
c7b302e
Compare
c7b302e
to
d7ad1d3
Compare
d7ad1d3
to
50e983f
Compare
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.
I have copied the multi-process mutex from the v2.
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.
I have copied the compiler downloader tests from v2 and updated them to work with the v3 implementation.
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.
I have copied the compiler tests from v2 and updated them to work with the v3 implementation. One significant update is the installation of tsx for the solcjs compiler tests.
assertRejectsWithHardhatError( | ||
() => mockDownloader.downloadCompiler("0.4.12"), | ||
HardhatError.ERRORS.SOLIDITY.INVALID_DOWNLOAD, | ||
{ | ||
remoteVersion: "0.4.12+commit.194ff033", | ||
}, | ||
); |
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.
I've seen this check being flaky already as we sometimes get HardhatError.ERRORS.SOLIDITY.DOWNLOAD_FAILED
instead. What do you think about adding a retry mechanism to the downloader?
Resolves #5990
This PR implements changes outlined in #5990. Please note, that trimming down the solc dependency has been extracted to a separate issue #6071 as it will be easier to review that way.