[llvm] [lit] Truncate process output to 10 kiB (PR #206355)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 28 12:46:24 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD llvm/utils/lit/lit/TestRunner.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestRunner.py 2026-06-28 19:44:15.000000 +0000
+++ TestRunner.py 2026-06-28 19:45:53.270008 +0000
@@ -771,13 +771,13 @@
# Add the command output, if redirected.
for (name, path, data) in result.outputFiles:
data = data.decode("utf-8", errors="replace")
out += formatOutput(f"redirected output from '{name}'", data, limit=1024)
if result.stdout.strip():
- out += formatOutput("command stdout", result.stdout, limit=10*1024)
+ out += formatOutput("command stdout", result.stdout, limit=10 * 1024)
if result.stderr.strip():
- out += formatOutput("command stderr", result.stderr, limit=10*1024)
+ out += formatOutput("command stderr", result.stderr, limit=10 * 1024)
if not result.stdout.strip() and not result.stderr.strip():
out += "# note: command had no output on stdout or stderr\n"
# Show the error conditions:
if result.exitCode != 0:
``````````
</details>
https://github.com/llvm/llvm-project/pull/206355
More information about the llvm-commits
mailing list