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

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


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `llvm` at step 6 "test-openmp".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-openmp) failure: test (failure)
...


-- check-runtimes does nothing.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins
[5/6] cd /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins && /usr/local/cmake/bin/cmake --build /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/ --target check-openmp --config Release
[0/1] Running OpenMP tests
-- Testing: 405 tests, 32 workers --
UNRESOLVED: libomp :: affinity/kmp-affinity-reset.c (1 of 405)
******************** TEST 'libomp :: affinity/kmp-affinity-reset.c' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2215, in runOnce
    res = executeScriptInternal(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 1091, in executeScriptInternal
    exitCode, timeoutInfo = executeShCmd(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 205, in executeShCmd
    finalExitCode = _executeShCmd(cmd, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 707, in _executeShCmd
    res = _executeShCmd(cmd.lhs, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 712, in _executeShCmd
    res = _executeShCmd(cmd.rhs, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 892, in _executeShCmd
    subprocess.Popen(
TypeError: __init__() got an unexpected keyword argument 'umask'


********************
UNRESOLVED: libomp :: affinity/format/nested.c (2 of 405)
******************** TEST 'libomp :: affinity/format/nested.c' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
Step 7 (Add check check-clang) failure: test (failure)
...
PASS: Clang :: Analysis/dynamic_type_check.m (790 of 20464)
PASS: Clang :: Analysis/egraph-asm-goto-no-crash.cpp (791 of 20464)
PASS: Clang :: Analysis/elementtype.c (792 of 20464)
PASS: Clang :: Analysis/end-function-return-stmt.cpp (793 of 20464)
PASS: Clang :: Analysis/diagnostics/undef-value-param.m (794 of 20464)
PASS: Clang :: Analysis/dispatch-once.m (795 of 20464)
PASS: Clang :: Analysis/dtor-cxx11.cpp (796 of 20464)
PASS: Clang :: Analysis/diagnostics/implicit-cxx-std-suppression.cpp (797 of 20464)
PASS: Clang :: Analysis/dynamic-cast.cpp (798 of 20464)
UNRESOLVED: Clang :: Analysis/exploded-graph-rewriter/checker_messages.dot (799 of 20464)
******************** TEST 'Clang :: Analysis/exploded-graph-rewriter/checker_messages.dot' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2215, in runOnce
    res = executeScriptInternal(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 1091, in executeScriptInternal
    exitCode, timeoutInfo = executeShCmd(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 205, in executeShCmd
    finalExitCode = _executeShCmd(cmd, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 712, in _executeShCmd
    res = _executeShCmd(cmd.rhs, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/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/checker_messages_diff.dot (800 of 20464)
******************** TEST 'Clang :: Analysis/exploded-graph-rewriter/checker_messages_diff.dot' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2215, in runOnce
    res = executeScriptInternal(
Step 8 (Add check check-llvm) failure: test (failure)
...
PASS: LLVM :: Feature/ppcld.ll (29276 of 54013)
PASS: LLVM :: Feature/properties.ll (29277 of 54013)
PASS: LLVM :: Feature/simplecalltest.ll (29278 of 54013)
PASS: LLVM :: Feature/small.ll (29279 of 54013)
PASS: LLVM :: Feature/prototype.ll (29280 of 54013)
PASS: LLVM :: Feature/sparcld.ll (29281 of 54013)
PASS: LLVM :: Feature/seh-nounwind.ll (29282 of 54013)
PASS: LLVM :: Feature/smallest.ll (29283 of 54013)
PASS: LLVM :: Feature/terminators.ll (29284 of 54013)
UNRESOLVED: LLVM :: FileCheck/check-b-a-has-b.txt (29285 of 54013)
******************** TEST 'LLVM :: FileCheck/check-b-a-has-b.txt' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2215, in runOnce
    res = executeScriptInternal(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 1091, in executeScriptInternal
    exitCode, timeoutInfo = executeShCmd(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 205, in executeShCmd
    finalExitCode = _executeShCmd(cmd, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 712, in _executeShCmd
    res = _executeShCmd(cmd.rhs, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 892, in _executeShCmd
    subprocess.Popen(
TypeError: __init__() got an unexpected keyword argument 'umask'


********************
UNRESOLVED: LLVM :: FileCheck/check-a-b-has-b.txt (29286 of 54013)
******************** TEST 'LLVM :: FileCheck/check-a-b-has-b.txt' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2215, in runOnce
    res = executeScriptInternal(
Step 10 (Add check check-offload) failure: test (failure)
...
-- Generating done
-- Build files have been written to: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins
[5/6] cd /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins && /usr/local/cmake/bin/cmake --build /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/ --target check-offload --config Release
[0/1] Running libomptarget tests
-- Testing: 786 tests, 32 workers --
UNSUPPORTED: libomptarget :: amdgcn-amd-amdhsa :: api/is_initial_device.c (1 of 786)
UNSUPPORTED: libomptarget :: amdgcn-amd-amdhsa :: api/omp_dynamic_shared_memory_mixed_nvptx.c (2 of 786)
UNSUPPORTED: libomptarget :: amdgcn-amd-amdhsa :: env/base_ptr_ref_count.c (3 of 786)
UNSUPPORTED: libomptarget :: amdgcn-amd-amdhsa :: env/omp_target_debug.c (4 of 786)
UNRESOLVED: libomptarget :: amdgcn-amd-amdhsa :: api/omp_get_num_procs.c (5 of 786)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: api/omp_get_num_procs.c' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2239, in _runShTest
    res = runOnce(execdir)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2215, in runOnce
    res = executeScriptInternal(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 1091, in executeScriptInternal
    exitCode, timeoutInfo = executeShCmd(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 205, in executeShCmd
    finalExitCode = _executeShCmd(cmd, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 707, in _executeShCmd
    res = _executeShCmd(cmd.lhs, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 712, in _executeShCmd
    res = _executeShCmd(cmd.rhs, shenv, results, timeoutHelper)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 892, in _executeShCmd
    subprocess.Popen(
TypeError: __init__() got an unexpected keyword argument 'umask'


********************
UNRESOLVED: libomptarget :: amdgcn-amd-amdhsa :: libc/malloc.c (6 of 786)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: libc/malloc.c' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/formats/shtest.py", line 29, in execute
    return lit.TestRunner.executeShTest(
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/llvm/utils/lit/lit/TestRunner.py", line 2295, in executeShTest
    return _runShTest(test, litConfig, useExternalSh, script, tmpBase)
  File "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/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