[llvm] Modify lit config to allow specify extra env vars to pass through to lit invocation (PR #208239)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 08:12:58 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `amdgpu-clang-flang` running on `AMD-bb-w-05` while building `llvm` at step 3 "annotate".

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

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

```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py ...' (failure)
...
PASS: libomptarget :: x86_64-unknown-linux-gnu :: offloading/disable_default_device.c (1107 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: offloading/ompx_saxpy_mixed.c (1108 of 1275)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: offloading/cuda_no_devices.c (1109 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: offloading/gpupgo/pgo_device_and_host.c (1110 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: sanitizer/kernel_crash_single.c (1111 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: sanitizer/kernel_crash.c (1112 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: offloading/parallel_target_teams_reduction_min.cpp (1113 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: sanitizer/use_after_free_3.c (1114 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: sanitizer/kernel_crash_async.c (1115 of 1275)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: offloading/dynamic_module_load.c (1116 of 1275)
FAIL: libomptarget :: amdgpu-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp (1117 of 1275)
******************** TEST 'libomptarget :: amdgpu-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp' FAILED ********************
Exit Code: 125

Command Output (stdout):
--
# RUN: at line 2
/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp    -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib -Xoffload-linker -L/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/amdgpu-amd-amdhsa -Xoffload-linker -L/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/clang/24/lib/amdgpu-amd-amdhsa  -fopenmp-targets=amdgpu-amd-amdhsa /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp -Xoffload-linker -lompdevice
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib -Xoffload-linker -L/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/amdgpu-amd-amdhsa -Xoffload-linker -L/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/clang/24/lib/amdgpu-amd-amdhsa -fopenmp-targets=amdgpu-amd-amdhsa /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp -Xoffload-linker -lompdevice
# note: command had no output on stdout or stderr
# RUN: at line 3
rm -rf /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# executed command: rm -rf /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 4
mkdir -p /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# executed command: mkdir -p /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 5
env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir LIBOMPTARGET_RECORD_REPORT_FILENAME=report.txt /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp 2>&1 | /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp
# executed command: env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir LIBOMPTARGET_RECORD_REPORT_FILENAME=report.txt /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp
# note: command had no output on stdout or stderr
# RUN: at line 6
awk '/\.json/ {print $1}' /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/report.txt | tr -d ',' > /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/json_list.txt
# executed command: awk '/\.json/ {print $1}' /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/report.txt
# note: command had no output on stdout or stderr
# executed command: tr -d ,
# note: command had no output on stdout or stderr
# RUN: at line 7
cat /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/json_list.txt | count 1
# executed command: cat /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/json_list.txt
# note: command had no output on stdout or stderr
# executed command: count 1
# note: command had no output on stdout or stderr
# RUN: at line 8
ls -1 /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/*.json | count 1
# executed command: ls -1 '/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/*.json'
Step 9 (Add check check-offload) failure: Add check check-offload (failure)
...
PASS: libomptarget :: x86_64-unknown-linux-gnu :: offloading/disable_default_device.c (1107 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: offloading/ompx_saxpy_mixed.c (1108 of 1275)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: offloading/cuda_no_devices.c (1109 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: offloading/gpupgo/pgo_device_and_host.c (1110 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: sanitizer/kernel_crash_single.c (1111 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: sanitizer/kernel_crash.c (1112 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: offloading/parallel_target_teams_reduction_min.cpp (1113 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: sanitizer/use_after_free_3.c (1114 of 1275)
PASS: libomptarget :: amdgpu-amd-amdhsa :: sanitizer/kernel_crash_async.c (1115 of 1275)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: offloading/dynamic_module_load.c (1116 of 1275)
FAIL: libomptarget :: amdgpu-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp (1117 of 1275)
******************** TEST 'libomptarget :: amdgpu-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp' FAILED ********************
Exit Code: 125

Command Output (stdout):
--
# RUN: at line 2
/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp    -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib -Xoffload-linker -L/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/amdgpu-amd-amdhsa -Xoffload-linker -L/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/clang/24/lib/amdgpu-amd-amdhsa  -fopenmp-targets=amdgpu-amd-amdhsa /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp -Xoffload-linker -lompdevice
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib -Xoffload-linker -L/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/amdgpu-amd-amdhsa -Xoffload-linker -L/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./lib/clang/24/lib/amdgpu-amd-amdhsa -fopenmp-targets=amdgpu-amd-amdhsa /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp -Xoffload-linker -lompdevice
# note: command had no output on stdout or stderr
# RUN: at line 3
rm -rf /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# executed command: rm -rf /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 4
mkdir -p /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# executed command: mkdir -p /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 5
env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir LIBOMPTARGET_RECORD_REPORT_FILENAME=report.txt /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp 2>&1 | /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp
# executed command: env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir LIBOMPTARGET_RECORD_REPORT_FILENAME=report.txt /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp
# note: command had no output on stdout or stderr
# RUN: at line 6
awk '/\.json/ {print $1}' /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/report.txt | tr -d ',' > /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/json_list.txt
# executed command: awk '/\.json/ {print $1}' /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/report.txt
# note: command had no output on stdout or stderr
# executed command: tr -d ,
# note: command had no output on stdout or stderr
# RUN: at line 7
cat /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/json_list.txt | count 1
# executed command: cat /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/json_list.txt
# note: command had no output on stdout or stderr
# executed command: count 1
# note: command had no output on stdout or stderr
# RUN: at line 8
ls -1 /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/*.json | count 1
# executed command: ls -1 '/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgpu-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/*.json'

```

</details>

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


More information about the llvm-commits mailing list