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

language_test: allow more characters in the log before truncating #16213

Merged
merged 1 commit into from
May 16, 2024

Conversation

tgummerer
Copy link
Collaborator

We initially introduced this limit for log messages in #16117. However I've since realized that these log messages also include useful stacktraces (when the program being tested throws an exception), which are a bit longer.

The intention here is really to avoid really long messages, so increase the maximum message size a little to still avoid those, but allow us to see more of the stacktrace that should hopefully be useful for debugging.

The number is mostly still based on a guesstimate of what's useful, but it's easy to tweak if we need to tweak it further.

We initially introduced this limit for log messages in
#16117.  However I've since
realized that these log messages also include useful
stacktraces (when the program being tested throws an exception), which
are a bit longer.

The intention here is really to avoid *really* long messages, so
increase the maximum message size a little to still avoid those, but
allow us to see more of the stacktrace that should hopefully be useful
for debugging.

The number is mostly still based on a guesstimate of what's useful,
but it's easy to tweak if we need to tweak it further.
@tgummerer tgummerer added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label May 16, 2024
@tgummerer tgummerer requested a review from a team as a code owner May 16, 2024 13:09
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2024-05-16)

Copy link
Contributor

@lunaris lunaris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't believe the original version was ever approved to be honest -- the thought of using a number that wasn't a power of two 🤮

@tgummerer tgummerer added this pull request to the merge queue May 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2024
@tgummerer tgummerer added this pull request to the merge queue May 16, 2024
Merged via the queue into master with commit 039fa8b May 16, 2024
49 checks passed
@tgummerer tgummerer deleted the tg/cut-output-less branch May 16, 2024 16:31
@tgummerer
Copy link
Collaborator Author

I can't believe the original version was ever approved to be honest -- the thought of using a number that wasn't a power of two 🤮

We might need a postmortem about this 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants