[Lldb-commits] [lldb] [lldb] Add `pipe` command for piping through shell commands (PR #201751)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 4 22:59:33 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 33021 tests passed
* 894 tests skipped
* 3 tests failed
## Failed Tests
(click on a test name to see its output)
### lldb-api
<details>
<summary>lldb-api.commands/command/pipe/TestPipeCommand.py</summary>
```
Script:
--
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=C:/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=C:/_work/llvm-project/llvm-project/build/./bin --triple x86_64-pc-windows-msvc --build-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/_work/llvm-project/llvm-project/build/./bin/lldb.exe --compiler C:/_work/llvm-project/llvm-project/build/./bin/clang.exe --dsymutil C:/_work/llvm-project/llvm-project/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir C:/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root C:/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir C:/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\_work\llvm-project\llvm-project\lldb\test\API\commands\command\pipe -p TestPipeCommand.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6)
clang revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6
llvm revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6
Skipping the following test categories: libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect
--
Command Output (stderr):
--
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_error_no_command_before_pipe (TestPipeCommand.TestCase.test_error_no_command_before_pipe)
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_failed_lldb_command (TestPipeCommand.TestCase.test_failed_lldb_command)
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_lldb_command_no_pipe (TestPipeCommand.TestCase.test_lldb_command_no_pipe)
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_pipe_chain (TestPipeCommand.TestCase.test_pipe_chain)
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_pipe_to_grep (TestPipeCommand.TestCase.test_pipe_to_grep)
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_pipe_without_spaces (TestPipeCommand.TestCase.test_pipe_without_spaces)
FAIL: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_quoted_pipe_not_split (TestPipeCommand.TestCase.test_quoted_pipe_not_split)
Log Files:
- C:\_work\llvm-project\llvm-project\build\lldb-test-build.noindex\commands\command\pipe\TestPipeCommand\Failure_test_quoted_pipe_not_split.log
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_redirect_stdout (TestPipeCommand.TestCase.test_redirect_stdout)
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_shell_command_no_pipe (TestPipeCommand.TestCase.test_shell_command_no_pipe)
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_shell_command_with_pipe (TestPipeCommand.TestCase.test_shell_command_with_pipe)
======================================================================
FAIL: test_quoted_pipe_not_split (TestPipeCommand.TestCase.test_quoted_pipe_not_split)
Test that a pipe character inside quotes is not treated as a split.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\_work\llvm-project\llvm-project\lldb\test\API\commands\command\pipe\TestPipeCommand.py", line 53, in test_quoted_pipe_not_split
self.expect("pipe echo 'abc|def' | tr a-c A-C", substrs=["ABC|def"])
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2766, in expect
self.runCmd(
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 1077, in runCmd
self.assertTrue(self.res.Succeeded(), msg + output)
AssertionError: False is not true : Command 'pipe echo 'abc|def' | tr a-c A-C' did not return successfully
Error output:
error: 'def'' is not recognized as an internal or external command,
operable program or batch file.
Config=x86_64-C:\_work\llvm-project\llvm-project\build\bin\clang.exe
----------------------------------------------------------------------
Ran 10 tests in 0.923s
FAILED (failures=1)
--
```
</details>
<details>
<summary>lldb-api.tools/lldb-dap/attach-commands/TestDAP_attachCommands.py</summary>
```
Script:
--
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=C:/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=C:/_work/llvm-project/llvm-project/build/./bin --triple x86_64-pc-windows-msvc --build-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/_work/llvm-project/llvm-project/build/./bin/lldb.exe --compiler C:/_work/llvm-project/llvm-project/build/./bin/clang.exe --dsymutil C:/_work/llvm-project/llvm-project/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir C:/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root C:/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir C:/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\_work\llvm-project\llvm-project\lldb\test\API\tools\lldb-dap\attach-commands -p TestDAP_attachCommands.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6)
clang revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6
llvm revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6
Skipping the following test categories: libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect
--
Command Output (stderr):
--
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_attach_command_process_failures (TestDAP_attachCommands.TestDAP_attachCommands.test_attach_command_process_failures)
FAIL: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_commands (TestDAP_attachCommands.TestDAP_attachCommands.test_commands)
Log Files:
- C:\_work\llvm-project\llvm-project\build\lldb-test-build.noindex\tools\lldb-dap\attach-commands\TestDAP_attachCommands.test_commands\Error_test_commands.log
- C:\_work\llvm-project\llvm-project\build\lldb-test-build.noindex\tools\lldb-dap\attach-commands\TestDAP_attachCommands.test_commands\Error_test_commands-dap.log
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_terminate_commands (TestDAP_attachCommands.TestDAP_attachCommands.test_terminate_commands)
======================================================================
ERROR: test_commands (TestDAP_attachCommands.TestDAP_attachCommands.test_commands)
Tests the "initCommands", "preRunCommands", "stopCommands",
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\_work\llvm-project\llvm-project\lldb\test\API\tools\lldb-dap\attach-commands\TestDAP_attachCommands.py", line 81, in test_commands
modules = self.dap_server.wait_for_module_events()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\tools\lldb-dap\dap_server.py", line 657, in wait_for_module_events
return self.collect_events(["module"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\tools\lldb-dap\dap_server.py", line 623, in collect_events
event = cast(Event, self._recv_packet(predicate=predicate))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\tools\lldb-dap\dap_server.py", line 423, in _recv_packet
raise TimeoutError
TimeoutError
Config=x86_64-C:\_work\llvm-project\llvm-project\build\bin\clang.exe
----------------------------------------------------------------------
Ran 3 tests in 62.958s
FAILED (errors=1)
--
```
</details>
<details>
<summary>lldb-api.tools/lldb-dap/launch/TestDAP_launch_extra_launch_commands.py</summary>
```
Script:
--
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=C:/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=C:/_work/llvm-project/llvm-project/build/./bin --triple x86_64-pc-windows-msvc --build-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/_work/llvm-project/llvm-project/build/./bin/lldb.exe --compiler C:/_work/llvm-project/llvm-project/build/./bin/clang.exe --dsymutil C:/_work/llvm-project/llvm-project/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir C:/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root C:/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir C:/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\_work\llvm-project\llvm-project\lldb\test\API\tools\lldb-dap\launch -p TestDAP_launch_extra_launch_commands.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6)
clang revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6
llvm revision 8e3b0f0b1c27d4bb6a8cc5bcd5999db86266abb6
Skipping the following test categories: libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect
--
Command Output (stderr):
--
FAIL: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test (TestDAP_launch_extra_launch_commands.TestDAP_launch_extra_launch_commands.test)
Log Files:
- C:\_work\llvm-project\llvm-project\build\lldb-test-build.noindex\tools\lldb-dap\launch\TestDAP_launch_extra_launch_commands\Error_test.log
- C:\_work\llvm-project\llvm-project\build\lldb-test-build.noindex\tools\lldb-dap\launch\TestDAP_launch_extra_launch_commands\Error_test-dap.log
======================================================================
ERROR: test (TestDAP_launch_extra_launch_commands.TestDAP_launch_extra_launch_commands.test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\_work\llvm-project\llvm-project\lldb\test\API\tools\lldb-dap\launch\TestDAP_launch_extra_launch_commands.py", line 65, in test
modules = self.dap_server.wait_for_module_events()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\tools\lldb-dap\dap_server.py", line 657, in wait_for_module_events
return self.collect_events(["module"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\tools\lldb-dap\dap_server.py", line 623, in collect_events
event = cast(Event, self._recv_packet(predicate=predicate))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\tools\lldb-dap\dap_server.py", line 423, in _recv_packet
raise TimeoutError
TimeoutError
Config=x86_64-C:\_work\llvm-project\llvm-project\build\bin\clang.exe
----------------------------------------------------------------------
Ran 1 test in 53.307s
FAILED (errors=1)
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/201751
More information about the lldb-commits
mailing list