[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 09:50:09 PDT 2024


llvm-ci wrote:

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

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

<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.10" /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit.py -j1 --order=lexical -a -v Inputs/shtest-glob  | FileCheck -dump-input=fail -match-full-lines /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/utils/lit/tests/shtest-glob.py
# executed command: not env -u FILECHECK_OPTS /usr/bin/python3.10 /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit.py -j1 --order=lexical -a -v Inputs/shtest-glob
# executed command: FileCheck -dump-input=fail -match-full-lines /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/utils/lit/tests/shtest-glob.py
# .---command stderr------------
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/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: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/utils/lit/tests/shtest-glob.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: -- Testing: 2 tests, 1 workers -- 
# |             2: UNRESOLVED: shtest-glob :: glob-echo.txt (1 of 2) 
# | check:8        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3: ******************** TEST 'shtest-glob :: glob-echo.txt' FAILED ******************** 
# |             4: Exception during script execution: 
# |             5: Traceback (most recent call last): 
# |             6:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors 
# |             7:  result = test.config.test_format.execute(test, lit_config) 
# |             8:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute 
# |             9:  return lit.TestRunner.executeShTest( 
# |            10:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2298, in executeShTest 
# |            11:  return _runShTest(test, litConfig, useExternalSh, script, tmpBase) 
# |            12:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2242, in _runShTest 
# |            13:  res = runOnce(execdir) 
# |            14:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2218, in runOnce 
# |            15:  res = executeScriptInternal( 
# |            16:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 1086, in executeScriptInternal 
# |            17:  exitCode, timeoutInfo = executeShCmd( 
# |            18:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 204, in executeShCmd 
# |            19:  finalExitCode = _executeShCmd(cmd, shenv, results, timeoutHelper) 
# |            20:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 696, in _executeShCmd 
# |            21:  res = _executeShCmd(cmd.rhs, shenv, results, timeoutHelper) 
# |            22:  File "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 799, in _executeShCmd 
...

```

</details>

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


More information about the llvm-commits mailing list