#DagQL + Buildkit cache misses

1 messages · Page 1 of 1 (latest)

halcyon leaf
#

Huh I am not 100% sure but think this may have been fixed in https://github.com/dagger/dagger/pull/7823

That was fixing this behavior which was accidentally introduced earlier that day, so you may have just been unluckily running on a commit from that time range?

GitHub

Noticed that while debugging some flakiness in #7804
ae1175d (merged earlier today) improved session shutdown to happen quicker by disconnecting the attachables right when /shutdown is called.
/shu...

minor raven
#

still a bit odd that the buildkit caches were busted, but maybe things were GCed when the session went away? thinkspin

halcyon leaf
#

I also can't tell yet if the fact that everything still worked in this scenario is a good or bad thing. I guess "resilience" is a nice property arguably, in that things still worked but were not optimal, but it might be worth adding some check that nested clients aren't initializing a new session. And at least logging loudly if that unexpectedly happens

minor raven
#

yeah - DagQL has unit tests for caching, but I guess we want to also externally verify it. We might even want a test that asserts Buildkit-level caching is working, to make sure DagQL level caching isn't covering for it? 🤷‍♂️

#

thanks for poking at it!

halcyon leaf
#

The cache misses you were seeing in apk add git were also from the run with these engine logs right?https://dagger.cloud/dagger/traces/14bee421794b09d2012b0a65aed7e286?span=59de326987a2595b&logs#59de326987a2595b:L2083

If so, there is still only one log for actually running that container: https://dagger.cloud/dagger/traces/14bee421794b09d2012b0a65aed7e286?span=59de326987a2595b&logs#59de326987a2595b:L102

Which would suggest it is indeed being cached by buildkit despite all the session close+opens happening

minor raven
#

What's weird is you can see differences in the log output, and the spans are all named 'exec foo', so it seems like it actually is running each time