Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack: compress shared stacks for clearer output #5180

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

tonistiigi
Copy link
Member

Combines the shared parts of stacktraces so they
take up less space. For example if error is wrapped from similar codepath to the main error, the main error gets the stacktrace and wrapping gets only to stacktrace up to the point where same frame exists in main error as well.

This also means we need to be less careful about WithStack as if error already has a longer stack from current position, it would be ignored.

Combines the shared parts of stacktraces so they
take up less space. For example if error is wrapped
from similar codepath to the main error, the main error
gets the stacktrace and wrapping gets only to stacktrace
up to the point where same frame exists in main error as well.

This also means we need to be less careful about WithStack as
if error already has a longer stack from current position, it
would be ignored.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@thompson-shaun
Copy link
Collaborator

Any concerns on this one @jsternberg or @AkihiroSuda?

@crazy-max crazy-max merged commit 9b4378f into moby:master Sep 3, 2024
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants