Replies: 2 comments 1 reply
-
that's quite strange. It definitely shouldn't take that much time. Were you able to spot which operation in your pipeline is the one that takes 18 seconds? I'd assume there's a misconfiguration somewhere that's causing the caching not to be kicking in accordingly. |
Beta Was this translation helpful? Give feedback.
-
From what I can see. It can be because there is a lot of data to be sent between the different docker contexts. When you got the 4 sec time, was that just running pure cargo, or was it an image and then the commands? It may also be because when you load the directory. It by default loads everything. I can see that it is used above, but you should be able to see it in the output how much it is loading it will say something like |
Beta Was this translation helpful? Give feedback.
-
Hi!
Thanks, first of all, to the creators of dagger. Really cool project 👏
Background
I have a short list of operations I would like my CI run to perform, for my Rust monorepo:
To try and make this reasonably efficient, I've first defined a
Dockerfile
, like this:and then I've created the following Rust code:
My question
This seems to cache almost all steps on repeat runs, and seems to be fairly efficient. That said, a cached run still takes ~18 seconds to execute, whereas just running the steps outside of dagger takes ~4 seconds.
Are there obvious ways to improve the base runtime of the dagger pipeline, or should I expect some overhead per step, because there's just a lot of work being done on the smart-caching side?
Beta Was this translation helpful? Give feedback.
All reactions