[clang] [llvm] [clang][modules-driver] Add dependency scan and dependency graph (PR #152770)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 1 07:07:12 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 169067 tests passed
* 3024 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Driver/modules-driver-dep-graph-offloading.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 8
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/modules-driver-dep-graph-offloading.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/modules-driver-dep-graph-offloading.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 10
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -std=c++23 -nostdlib -fmodules -fmodules-driver -Rmodules-driver -fmodule-map-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/module.modulemap /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp -fmodules-cache-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/modules-cache -fopenmp=libomp -fopenmp-targets=amdgcn-amd-amdhsa -nogpulib -nogpuinc /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/A.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/A-B.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/A-C.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/B.cpp -### 2>&1 | sed 's:\\\\\?:/:g' | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -DPREFIX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/modules-driver-dep-graph-offloading.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -std=c++23 -nostdlib -fmodules -fmodules-driver -Rmodules-driver -fmodule-map-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/module.modulemap /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp -fmodules-cache-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/modules-cache -fopenmp=libomp -fopenmp-targets=amdgcn-amd-amdhsa -nogpulib -nogpuinc /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/A.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/A-B.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/A-C.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/B.cpp '-###'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: sed 's:\\\\\?:/:g'
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -DPREFIX=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/modules-driver-dep-graph-offloading.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/modules-driver-dep-graph-offloading.cpp:24:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: "[[PREFIX]]/main.cpp-[[OFFLOADING_ARCH:.*]]" [ fillcolor=3, label="{ Filename: [[PREFIX]]/main.cpp | Triple: [[OFFLOADING_ARCH]] }"];
# | ^
# | <stdin>:19:396: note: scanning from here
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp-x86_64-unknown-linux-gnu" [ fillcolor=3, label="{ Filename: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp | Triple: x86_64-unknown-linux-gnu }"];
# | ^
# | <stdin>:19:396: note: with "PREFIX" equal to "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp"
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp-x86_64-unknown-linux-gnu" [ fillcolor=3, label="{ Filename: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp | Triple: x86_64-unknown-linux-gnu }"];
# | ^
# | <stdin>:19:396: note: with "PREFIX" equal to "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp"
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp-x86_64-unknown-linux-gnu" [ fillcolor=3, label="{ Filename: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp | Triple: x86_64-unknown-linux-gnu }"];
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/modules-driver-dep-graph-offloading.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 14: digraph "Module Dependency Graph" {
# | 15: label="Module Dependency Graph";
# | 16: node [shape=Mrecord, colorscheme=set23, style=filled];
# | 17: rankdir=BT;
# | 18:
# | 19: "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp-x86_64-unknown-linux-gnu" [ fillcolor=3, label="{ Filename: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp/main.cpp | Triple: x86_64-unknown-linux-gnu }"];
# | next:24'0 X error: no match found
# | next:24'1 with "PREFIX" equal to "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp"
# | next:24'2 with "PREFIX" equal to "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/modules-driver-dep-graph-offloading.cpp.tmp"
# | 20: "A-x86_64-unknown-linux-gnu" [ fillcolor=2, label="{ Module type: Named module | Module name: A | Triple: x86_64-unknown-linux-gnu }"];
# | next:24'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: "A:B-x86_64-unknown-linux-gnu" [ fillcolor=2, label="{ Module type: Named module | Module name: A:B | Triple: x86_64-unknown-linux-gnu }"];
# | next:24'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 22: "A:C-x86_64-unknown-linux-gnu" [ fillcolor=2, label="{ Module type: Named module | Module name: A:C | Triple: x86_64-unknown-linux-gnu }"];
# | next:24'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 23: "B-x86_64-unknown-linux-gnu" [ fillcolor=2, label="{ Module type: Named module | Module name: B | Triple: x86_64-unknown-linux-gnu }"];
# | next:24'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 24: "transitive1-8Y7ANJL4M8PJDMS6AIUHC1UI7" [ fillcolor=1, label="{ Module type: Clang module | Module name: transitive1 | Hash: 8Y7ANJL4M8PJDMS6AIUHC1UI7 }"];
# | next:24'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/152770
More information about the cfe-commits
mailing list