Skip to content

[lldb][test] Truncate unexpectedly long test outputs (#206967)#13325

Open
Teemperor wants to merge 1 commit into
swiftlang:stable/21.xfrom
Teemperor:cherry/stable-21.x/47e3ac23cb90
Open

[lldb][test] Truncate unexpectedly long test outputs (#206967)#13325
Teemperor wants to merge 1 commit into
swiftlang:stable/21.xfrom
Teemperor:cherry/stable-21.x/47e3ac23cb90

Conversation

@Teemperor

Copy link
Copy Markdown

A bug in LLDB could make our tests to produce giant ValueObjects with
millions of children. The same goes for most commands that print out
test data. While our test system can handle this amount of output, the
resulting log output will most likely break the storage capacity of our
build bots.

This patch adds truncation to the various expect* methods that avoids
spamming the output in the (unlikely) case this happens.

See also llvm#206444
@Teemperor Teemperor requested a review from a team as a code owner July 4, 2026 20:32
@Teemperor

Copy link
Copy Markdown
Author

@swift-ci test

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.

1 participant