[llvm] [Lit] Add a function to LLVMConfig to register a tool to be run in daemon mode (PR #197924)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 15 06:02:19 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/llvm/daemon_config.py llvm/utils/lit/lit/llvm/daemon_tool.py llvm/utils/lit/tests/Inputs/shtest-custom-inproc-builtins/custom_inproc_builtins.py llvm/utils/lit/tests/Inputs/shtest-pipelined-inproc-builtins/custom_inproc_builtins.py llvm/utils/lit/tests/llvm-daemon-integration.py llvm/utils/lit/tests/shtest-custom-inproc-builtins.py llvm/utils/lit/tests/shtest-pipelined-inproc-builtins.py llvm/utils/lit/lit/InprocBuiltins.py llvm/utils/lit/lit/TestRunner.py llvm/utils/lit/lit/formats/shtest.py llvm/utils/lit/lit/llvm/config.py llvm/utils/lit/tests/shtest-glob.py llvm/utils/lit/tests/shtest-shell.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
--- lit/llvm/daemon_config.py 2026-05-15 11:38:45.000000 +0000
+++ lit/llvm/daemon_config.py 2026-05-15 13:01:43.170946 +0000
@@ -75,9 +75,9 @@
return False
# Register an in-process built-in to run the tool in daemon mode. This
# replaces invocations to the tool.
key = inproc_builtin_key_override if inproc_builtin_key_override else executable
- testing_config.test_format.extra_inproc_builtins[key] = (
- get_daemon_tool_inproc_builtin(tool_name, executable)
- )
+ testing_config.test_format.extra_inproc_builtins[
+ key
+ ] = get_daemon_tool_inproc_builtin(tool_name, executable)
return True
``````````
</details>
https://github.com/llvm/llvm-project/pull/197924
More information about the llvm-commits
mailing list