-
Notifications
You must be signed in to change notification settings - Fork 20
Share build artifacts between zomes to speed up compilation #68
Comments
@thedavidmeister need to elevate priority on this. It is causing builds to time out on TravisCI and I can't see any way to work around that on a free plan... "The job exceeded the maximum time limit for jobs, and has been terminated." https://travis-ci.org/holo-rea/holo-rea/builds/598477699 (CircleCI fails a couple of tests for no particular reason FWIW, which is why I'm moving away from it.) |
@thedavidmeister is it at all possible that this can be achieved by manually altering the As in, if I use the same directory for The other question is- can |
@pospi potentially, test it.. i think there was some reason we're not doing that... the big thing that trips people up is having the IDE also recompiling things away in the background to the same path, thus invalidating the artifacts they're building in the shell |
I've experienced that problem as the cargo cache being locked when trying to build on CLI because of a stale editor I actually think this setup might help with the IDE conflicts, because cargo in the IDE will be using its own default locations for the build cache, whereas Anyway, made the changes, seems to work wonderfully. Console output confirms that shared modules are only built once. IDE seems to be playing at least as well as before. Feel like documenting this as part of the Holonix docs? May even be worth adding a section on multi-DNA development... |
it might be worth updating |
Not sure I understand. Why's that? |
to update what the scaffolding generates? |
FYI I'm not sure having both |
it's not a good idea, it's a mistake rust builds don't play nice with each other |
Hitting up against quirks in cloud provider platforms now. I wouldn't recommend setting a build folder in Perhaps the best location is just a reserved folder name in one's homedir? |
hmm, so it was that way for a long time and the complaint was that rust produces double digit GBs of build artifacts that are never cleaned up (even though there is a flush command, people don't know/think/want to use it) it was moved to |
Lol I see I see
…On Thu, 5 Dec 2019 at 02:57, David Meister ***@***.***> wrote:
hmm, so it was that way for a long time and the complaint was that rust
produces double digit GBs of build artifacts that are never cleaned up
(even though there is a flush command, people don't know/think/want to use
it)
it was moved to /tmp specifically so that the machine would periodically
force a cleanup on some schedule 🤔
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<holochain/holonix#68>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADK2JE2ONGT23SKBBATJWTQW7OQPANCNFSM4I2U3LWQ>
.
--
writings <http://pospi.spadgos.com/> | twitter
<https://twitter.com/pospigos> | github <https://github.com/pospi> ← where
to find me
ValueFlows <https://www.valueflo.ws/> | HoloREA
<https://github.com/holo-rea/> ← things I'm working on
|
@pospi the main rust native lever to pull (rather than whatever at the least we could document how to override |
Hard to know whether this is a Holonix-level thing or a result of the way
hc package
is implemented. But I notice that when compiling a DNA, modules that are shared by the zomes within that DNA are re-compiled separately for every zome. It would be nice if possible for them to share the same build cache, so that subsequent compile steps can be skipped.The text was updated successfully, but these errors were encountered: