[llvm] [lit] Implement builtin umask (PR #94621)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 10:05:22 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `llvm` at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (ninja check 1) failure: stage 1 checked (failure)
...
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/llvm/config.py:508: note: using clang: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/clang
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/llvm/config.py:508: note: using clang: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/clang
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/utils/lit/tests/lit.cfg:111: warning: Setting a timeout per test not supported. Requires the Python psutil module but it could not be found. Try installing it via pip or via your operating system's package manager.
 Some tests will be skipped and the --timeout command line argument will not work.
PASS: LLVM :: MC/X86/apx/rcl-att.s (1 of 96349)
PASS: LLVM :: CodeGen/ARM/zextload_demandedbits.ll (2 of 96349)
PASS: LLVM :: DebugInfo/X86/InlinedFnLocalVar.ll (3 of 96349)
UNRESOLVED: Clang :: utils/update_cc_test_checks/generated-funcs.test (4 of 96349)
******************** TEST 'Clang :: utils/update_cc_test_checks/generated-funcs.test' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 2215, in runOnce
    res = executeScriptInternal(
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 1091, in executeScriptInternal
    exitCode, timeoutInfo = executeShCmd(
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 205, in executeShCmd
    finalExitCode = _executeShCmd(cmd, shenv, results, timeoutHelper)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 707, in _executeShCmd
    res = _executeShCmd(cmd.lhs, shenv, results, timeoutHelper)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 707, in _executeShCmd
    res = _executeShCmd(cmd.lhs, shenv, results, timeoutHelper)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 707, in _executeShCmd
    res = _executeShCmd(cmd.lhs, shenv, results, timeoutHelper)
  [Previous line repeated 13 more times]
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 712, in _executeShCmd
    res = _executeShCmd(cmd.rhs, shenv, results, timeoutHelper)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 892, in _executeShCmd
    subprocess.Popen(
TypeError: __init__() got an unexpected keyword argument 'umask'


********************
PASS: LLVM :: CodeGen/RISCV/GlobalISel/legalizer/legalize-icmp-rv64.mir (5 of 96349)
PASS: Clang :: ExtractAPI/enum.c (6 of 96349)
PASS: LLVM :: CodeGen/NVPTX/vector-select.ll (7 of 96349)
PASS: LLVM :: CodeGen/X86/pr63975.ll (8 of 96349)
UNRESOLVED: mlgo-utils :: corpus/extract_ir_script.test (9 of 96349)
******************** TEST 'mlgo-utils :: corpus/extract_ir_script.test' FAILED ********************
Exception during script execution:
Step 11 (ninja check 2) failure: stage 2 checked (failure)
...
PASS: AddressSanitizer-Unit :: ./Asan-powerpc64le-calls-Test/82/95 (3880 of 96349)
PASS: AddressSanitizer-Unit :: ./Asan-powerpc64le-calls-Test/89/95 (3881 of 96349)
PASS: AddressSanitizer-powerpc64le-linux-dynamic :: TestCases/strncpy-overflow.cpp (3882 of 96349)
UNSUPPORTED: ThreadSanitizer-powerpc64le :: libdispatch/blocks.c (3883 of 96349)
PASS: SanitizerCommon-tsan-powerpc64le-Linux :: Linux/signal_name.c (3884 of 96349)
UNSUPPORTED: AddressSanitizer-powerpc64le-linux-dynamic :: TestCases/Windows/msvc/dll_control_c.cpp (3885 of 96349)
PASS: AddressSanitizer-powerpc64le-linux-dynamic :: TestCases/global-underflow.cpp (3886 of 96349)
PASS: Clang :: APINotes/instancetype.m (3887 of 96349)
PASS: AddressSanitizer-powerpc64le-linux :: TestCases/Posix/wait4.cpp (3888 of 96349)
UNRESOLVED: Clang :: Analysis/exploded-graph-rewriter/dynamic_types.cpp (3889 of 96349)
******************** TEST 'Clang :: Analysis/exploded-graph-rewriter/dynamic_types.cpp' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 2215, in runOnce
    res = executeScriptInternal(
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 1091, in executeScriptInternal
    exitCode, timeoutInfo = executeShCmd(
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 205, in executeShCmd
    finalExitCode = _executeShCmd(cmd, shenv, results, timeoutHelper)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 707, in _executeShCmd
    res = _executeShCmd(cmd.lhs, shenv, results, timeoutHelper)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 712, in _executeShCmd
    res = _executeShCmd(cmd.rhs, shenv, results, timeoutHelper)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 892, in _executeShCmd
    subprocess.Popen(
TypeError: __init__() got an unexpected keyword argument 'umask'


********************
UNRESOLVED: Clang :: Analysis/exploded-graph-rewriter/environment.dot (3890 of 96349)
******************** TEST 'Clang :: Analysis/exploded-graph-rewriter/environment.dot' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)

```

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


More information about the llvm-commits mailing list