-
Notifications
You must be signed in to change notification settings - Fork 31
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
Re-add contracts/ to yarn workspace #547
Comments
the package.json dependencies already tell turbo what depends on what. but we do not properly tell turbo what outputs we need from each project I think this is worth trying when you get a chance, to specify the output directory of each project |
Just documenting some findings here Cloudflare seems to build fine and if you look at the logs, it's properly managing dependencies: So that makes me feel like it may not be a turbo issue? Not sure... |
Okay more findings. Notice these logs:
It appears to actually be skipping the hardhat compile step, which would explain the error, that Typescript cannot find the ABI files:
I think we're getting closer.... |
Some verbose logging here:
I'm noticing that it fails silently after trying to download the compiler? |
Filed a separate issue to talk about caching |
Okay, I think the initial issue was misdiagnosed. There is something weird happening when we build contracts/ within a GitHub actions (see logs above), where there is a silent failure after trying to download the Solidity compiler. This doesn't seem to happen in local builds or even in Cloudflare. It does seem to also happen in Fleek builds. As a temporary fix, I've removed contracts/ from the yarn workspace so it won't be built in the monorepo build (which is what runs in the GitHub action). Going to re-scope this issue as trying to add contracts/ back into the monorepo build, by figuring out why the basic hardhat compile step silently fails when running in GitHub actions |
The fix in #542 is to use rollup for the contracts dir and it's stable now. Hardhat now generates the typechain artifacts and ABI, those are used by rollup to build the package. Not sure what was is but we at least identified the painpoint if it rises again |
FYI @bitbeckers found the hardhat bug The temporary fix is to fix our node version to 18.15.0 for now, which is annoying. I'm going to file another issue to go back to "lts" where we can in the future. |
Describe the feature you'd like to request
Build pipeline in GitHub Actions appears to be unstable. Kicking it again is a valid fix.
Describe the solution you'd like
Explore setting up concurrency for runs to make sure there are no overlapping build running, or that the build caches are influencing each other
Describe alternatives you've considered
Kicking it again.
Update: GitHub actions isn't flaky --- it's reliably failing. It does not affect local builds or Cloudflare.
The text was updated successfully, but these errors were encountered: