You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That passed on many re-runs and also tried running SDK tests again in commits around it without it happening again.
I've been trying to repro what happens in that elixir SDK check failure locally since yesterday but have not replicated it.
To be clear, I don't think this has anything to do with the elixir SDK, the error in that occurrence was just on trying to load the dagger ci module (happens implicitly when echo {version} | dagger -s query runs in the dir with our CI module).
Interestingly, whenever I've seen this happening in our CI it has been during module initialization calls. Things that stick out about that are:
It's cached, unlike other function calls.
It potentially gets run in parallel fairly often
Both of those may impact edge merge behavior, which is an eternal suspect in generally weird issues like this
Since I've had no luck in repro'ing so far, I may try locally enabling caching of all function calls and see if I can hit this, just on the hunch this may have something to do with the caching/edge-merging.
Fixed a problem with the debug logs around this issue and made a change that should result in user-facing errors having more information required to debug this: #8553
Still quite rare and have not hit it locally or in my deflaking PR, so continuing to rely on those logs+error messages to make progress atm
FWICT it's just saying that the context created here got cancelled due to an op becoming completed while it's in the middle of doing the slow cache key compute??
If this is on the right track this smells a bit more like a buildkit solver bug, but hard to say for sure still
The chunk of edge merges that happen right before are suspicious too.
Also quite interesting, I saw a few occurrences of other unexpected solver behavior a little bit before the error happened:
time="2024-09-29T05:03:16Z" level=error msg="merged input vertex not found during addJobs" vertex_digest="sha256:fb008f6e1c0af6f1ffcfcf4bcd97dae2759fc7687cb5989a77f51964968dfef6"
time="2024-09-29T05:03:16Z" level=error msg="merged input vertex not found during addJobs" vertex_digest="sha256:0f30bf962760494cd774f731be53204da494eacf105694398090db6c59c7b385"
time="2024-09-29T05:03:16Z" level=error msg="merged input vertex not found during addJobs" vertex_digest="sha256:7d6e21df380b78bdfdacca0bc46b93359e5773e0e04e1ba6117666a2eb4717ad"
Still needs more deep diving to figure out what's happening.
This has started popping up in CI a bit more again and has been reported by a user now too.
Given our progress on dag-op we may not be super reliant on edge merging anymore. Given past debugging, I suspect that's related to the root cause here, so disabling edge merging everywhere is what I'll try to next to avoid this for the meantime while we're still moving off the solver fully.
Activity
sipsma commentedon Jul 25, 2024
A more recent occurrence: https://dagger.cloud/dagger/traces/d3d78f332e319053276fdfb8c361e847?span=dc9053fa403f4550#dc9053fa403f4550:L8
sipsma commentedon Sep 26, 2024
Fixed a problem with the debug logs around this issue and made a change that should result in user-facing errors having more information required to debug this: #8553
Still quite rare and have not hit it locally or in my deflaking PR, so continuing to rely on those logs+error messages to make progress atm
sipsma commentedon Sep 30, 2024
Caught this with the updated logs here:
Need to follow up with investigation into that code in buildkit, but finally have a new breadcrumb to work with here
EDIT: nevermind, I think this is just pointing to https://github.com/sipsma/buildkit/blob/e15601a00fbef2805db1ed87be7bb88628ae926b/solver/edge.go#L910-L910
which is the place the
failed to compute cache keyerror comes from, so something in the stack trace parsing is off.sipsma commentedon Oct 10, 2024
I looked at the most recent occurrence mentioned in previous comment again, this time I through shenanigans managed to get the nested engine logs out of the traces (without my browser crashing). Full output here: https://gist.github.com/sipsma/cbe519dbc25b02b5e882b9d6f08a4457
Relevant lines that reveal more of the stack trace embedded in the error:
FWICT it's just saying that the context created here got cancelled due to an op becoming completed while it's in the middle of doing the slow cache key compute??
The chunk of edge merges that happen right before are suspicious too.
Also quite interesting, I saw a few occurrences of other unexpected solver behavior a little bit before the error happened:
Still needs more deep diving to figure out what's happening.
cc @jedevc if interested
sipsma commentedon Jul 10, 2025
This has started popping up in CI a bit more again and has been reported by a user now too.
Given our progress on dag-op we may not be super reliant on edge merging anymore. Given past debugging, I suspect that's related to the root cause here, so disabling edge merging everywhere is what I'll try to next to avoid this for the meantime while we're still moving off the solver fully.