Skip to content

stack: compress shared stacks for clearer output#5180

Merged
crazy-max merged 1 commit intomoby:masterfrom
tonistiigi:stack-compress
Sep 3, 2024
Merged

stack: compress shared stacks for clearer output#5180
crazy-max merged 1 commit intomoby:masterfrom
tonistiigi:stack-compress

Conversation

@tonistiigi
Copy link
Copy Markdown
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 <[email protected]>
@thompson-shaun
Copy link
Copy Markdown
Collaborator

Any concerns on this one @jsternberg or @AkihiroSuda?

@crazy-max crazy-max merged commit 9b4378f into moby:master Sep 3, 2024
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