[llvm] [llvm-lit] Add precommit test to verify current behavior of glob expansion in lit's internal shell (PR #106325)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 12:36:43 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/6159

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'lit :: shtest-glob.py' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
not env -u FILECHECK_OPTS "/usr/bin/python3.9" /b/1/clang-x86_64-debian-fast/llvm.src/llvm/utils/lit/lit.py -j1 --order=lexical -a -v Inputs/shtest-glob  | FileCheck -dump-input=fail -match-full-lines /b/1/clang-x86_64-debian-fast/llvm.obj/utils/lit/tests/shtest-glob.py
# executed command: not env -u FILECHECK_OPTS /usr/bin/python3.9 /b/1/clang-x86_64-debian-fast/llvm.src/llvm/utils/lit/lit.py -j1 --order=lexical -a -v Inputs/shtest-glob
# executed command: FileCheck -dump-input=fail -match-full-lines /b/1/clang-x86_64-debian-fast/llvm.obj/utils/lit/tests/shtest-glob.py
# .---command stderr------------
# | /b/1/clang-x86_64-debian-fast/llvm.obj/utils/lit/tests/shtest-glob.py:11:10: error: CHECK: expected string not found in input
# | # CHECK: FAIL: shtest-glob :: glob-mkdir.txt ({{[^)]*}}
# |          ^
# | <stdin>:26:52: note: scanning from here
# | TypeError: string argument expected, got 'GlobItem'
# |                                                    ^
# | <stdin>:30:1: note: possible intended match here
# | FAIL: shtest-glob :: glob-mkdir.txt (2 of 2)
# | ^
# | 
# | Input file: <stdin>
# | Check file: /b/1/clang-x86_64-debian-fast/llvm.obj/utils/lit/tests/shtest-glob.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            21:  res = _executeShCmd(cmd.rhs, shenv, results, timeoutHelper) 
# |            22:  File "/b/1/clang-x86_64-debian-fast/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 799, in _executeShCmd 
# |            23:  result = inproc_builtin(Command(args, j.redirects), cmd_shenv) 
# |            24:  File "/b/1/clang-x86_64-debian-fast/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 415, in executeBuiltinEcho 
# |            25:  stdout.write(encode(maybeUnescape(args[-1]))) 
# |            26: TypeError: string argument expected, got 'GlobItem' 
# | check:11'0                                                        X error: no match found
# |            27:  
# | check:11'0     ~
# |            28:  
# | check:11'0     ~
# |            29: ******************** 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~
# |            30: FAIL: shtest-glob :: glob-mkdir.txt (2 of 2) 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:11'1     ?                                             possible intended match
# |            31: ******************** TEST 'shtest-glob :: glob-mkdir.txt' FAILED ******************** 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            32: Exit Code: 1 
# | check:11'0     ~~~~~~~~~~~~~
...

```

</details>

https://github.com/llvm/llvm-project/pull/106325


More information about the llvm-commits mailing list