-
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
solidity-coverage doesn't work correctly when parallel mode is enabled #4492
Comments
any chance to reconsider this? |
Our test harness is still using hardhat, kudos to the hardhat developers, that now it runs around 6m, using github default runner (https://github.com/superfluid-finance/protocol-monorepo/actions/runs/10631733383/job/29473286607) where we use parallel mode and 4 runners. In contrast, our coverage test with the exact same set of tests takes more than one hour (https://github.com/superfluid-finance/protocol-monorepo/actions/runs/10631733383/job/29473287853) ! Is there anything we can help to get this resolved? |
Hi @hellwolf, I help maintain solidity-coverage. A partial workaround for this problem is to set up CI to run coverage in parallel. The basic idea is to:
There's a nice example of this being done in CircleCI at Synthetix: There is a github action (with recipe) for splitting a test suite into equal time groups for parallel execution here: (If you try this at superfluid and get it working in Github Actions could you open an issue about it at solidity-coverage? I will add it as an example to the documentation there.) |
Thinking about this again, there might be a path to supporting |
This issue is not exactly actionable, because a decent solution is probably a breaking change, but I'm opening it anyway because it's useful input for whenever we tackle the whole test runner thing.
For details, see this comment
The text was updated successfully, but these errors were encountered: