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
{{ message }}
Repository navigation
Include output of failed exec in graphql errors #3025
Right now if an exec fails the graphql error just says that it exited non-zero. This makes it hard to debug unless you go look at the buildkit progress output.
We will probably need to use that to obtain the output as written to the output files by the shim.
We should also make sure to limit the size of the output included so if there's a failure during a command with many megabytes of output (e.g. compiling a large project) we don't try to transfer all of that in the error. Instead, we can just return the last N bytes.
I helped somebody that got hit by that today.
They used container.Stderr(ctx) and got nothing in it, even though they saw the build failed.
The only way to diagnose was to set the LogOutput to something they could see after the fact. Not great.
Buildkit v0.11 is adding a way of retrieving execution logs after a build finishes, so hopefully that will make it somewhat easier to implement this relative to the huge song+dance required to get the FS of a failed exec op.
@sipsma I'm talking to a developer that is hitting this issue, which is confusing because the issue seems fixed? Do you know which release this fix was part of? Perhaps they just need to upgrade.
Most of those PRs have approval as of this morning, so we can do the release perhaps as early as tomorrow (or monday if we want to avoid the dreaded friday release)
Activity
dolanor commentedon Dec 2, 2022
I helped somebody that got hit by that today.
They used
container.Stderr(ctx)and got nothing in it, even though they saw the build failed.The only way to diagnose was to set the
LogOutputto something they could see after the fact. Not great.sipsma commentedon Dec 9, 2022
Buildkit v0.11 is adding a way of retrieving execution logs after a build finishes, so hopefully that will make it somewhat easier to implement this relative to the huge song+dance required to get the FS of a failed exec op.
shykes commentedon Jan 5, 2023
@sipsma I'm talking to a developer that is hitting this issue, which is confusing because the issue seems fixed? Do you know which release this fix was part of? Perhaps they just need to upgrade.
sipsma commentedon Jan 5, 2023
@shykes it has not been released yet, there's a few more issues that we need to close before we do the next release: https://github.com/dagger/dagger/milestone/16
Most of those PRs have approval as of this morning, so we can do the release perhaps as early as tomorrow (or monday if we want to avoid the dreaded friday release)