Repository navigation
tui: reduce error verbosity, support go-to-error - #10512
Merged
Merged
Conversation
This was referenced May 30, 2025
vito
force-pushed
the
error-origins
branch
4 times, most recently
from
June 4, 2025 16:09
cca996a to
b3233bc
Compare
vito
force-pushed
the
error-origins
branch
2 times, most recently
from
June 5, 2025 16:29
d0b01c8 to
85d8f41
Compare
Signed-off-by: Alex Suraci <[email protected]>
* errors now store their originating trace context as extended fields
* this happens automatically for errors returned by modules and for
core API code paths
* when ending a span with an error, the trace context is extracted from
the error and attached to the span as a span link
* error links use a new 'link purpose' attribute to distinguish from the
typical usage of span links (continuation)
the end result is that we can now identify where exactly the root cause
of an error is, instead of repeating it as every place where it bubbles
up
Signed-off-by: Alex Suraci <[email protected]>
* look for ExtendedError everywhere, so internal core calls and client usage set up links properly * preserve ExtendedError compliance in Dagger client so that module functions that return errors preserve their origins (even from ExecError) on paper this looks like SDK specific work, but really it's because we use the Go SDK telemetry code in the engine. modules errors are handled generically in the engine, so other SDKs shouldn't need to implement this - they should only need to preserve GraphQL error extensions, which we already wanted prior to this change. Signed-off-by: Alex Suraci <[email protected]>
* add ERROR suffix, like CACHED * only put ! at first line of wrapped error text, so it's clearly a single error instead of multiple Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
otherwise these just look like strings and are hard to see not sure why I originally went with yellow - maybe because it was softer when they spammed the screen? now that that's fixed, red seems obvious Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
* press "r" on a span to jump to its e(r)rror * shows in keymap if focused span has an error origin * highlight on press, or generally when focusing the origin span, so you can see where the span's error bubbled up Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
* remove TrackOriginError and AroundFunc error returning which was from an earlier iteration * add comments in a few key spots for clarification Signed-off-by: Alex Suraci <[email protected]>
vito
commented
Jun 9, 2025
| ● viztest: Viztest! X.Xs | ||
| ▼ .failEffect: Container! X.Xs | ||
| ▼ .failEffect: Container! X.Xs ERROR | ||
| ! process "sh -c echo this is a failing effect; exit 1" did not complete successfully: exit code: 1 |
Contributor
Author
There was a problem hiding this comment.
Ideally this would be deduped too, but it's pretty tricky. Going to leave it for another iteration.
The trickiness is in the fact that the "error" status here is actually coming from an effect. The failEffect function actually returns successfully, but the TUI bubbles up an error in its returned effects to any call sites that returned the failed effect. (s/effect/LLB vertex/ for those deep in Buildkit)
The hard part is deduping this without also deduping it from the Container.withExec call where we want to see the error, since that works via the same logic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context: #10461
rto jump to it