[clang] [Modules] Add a test case when we are skipping module validation with a build session and use an outdated module. (PR #176537)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 19 22:52:16 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 51864 tests passed
* 908 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.ClangScanDeps/build-session-validation-outdated-module.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 4
split-file C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\build-session-validation-outdated-module.c C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\build-session-validation-outdated-module.c' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 6
echo "-fsyntax-only -I C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/include"                      > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/ctx.rsp
# executed command: echo '-fsyntax-only -I C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/include'
# note: command had no output on stdout or stderr
# RUN: at line 7
echo "-fmodules -fmodules-cache-path=C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/module-cache"  >> C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/ctx.rsp
# executed command: echo '-fmodules -fmodules-cache-path=C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/module-cache'
# note: command had no output on stdout or stderr
# RUN: at line 8
echo "-fbuild-session-file=C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/session.timestamp"       >> C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/ctx.rsp
# executed command: echo -fbuild-session-file=C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/session.timestamp
# note: command had no output on stdout or stderr
# RUN: at line 9
echo "-fmodules-validate-once-per-build-session"        >> C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/ctx.rsp
# executed command: echo -fmodules-validate-once-per-build-session
# note: command had no output on stdout or stderr
# RUN: at line 12
touch C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/session.timestamp
# executed command: touch 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/session.timestamp'
# note: command had no output on stdout or stderr
# RUN: at line 14
"C:\Python312\python.exe" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/generate-expensive-header.py A 2000000 > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/include/expensive-header.h
# executed command: 'C:\Python312\python.exe' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/generate-expensive-header.py' A 2000000
# note: command had no output on stdout or stderr
# RUN: at line 15
"C:\Python312\python.exe" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/generate-expensive-header.py B 500000 > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/include/less-expensive-header.h
# executed command: 'C:\Python312\python.exe' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/generate-expensive-header.py' B 500000
# note: command had no output on stdout or stderr
# RUN: at line 18
cp C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/version1.h C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/include/target.h
# executed command: cp 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/version1.h' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/include/target.h'
# note: command had no output on stdout or stderr
# RUN: at line 19
sed "s|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/prepare-expected-signature.json.template > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/prepare-expected-signature.json
# executed command: sed 's|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/prepare-expected-signature.json.template'
# note: command had no output on stdout or stderr
# RUN: at line 20
c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe -compilation-database C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/prepare-expected-signature.json > /dev/null
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe' -compilation-database 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/prepare-expected-signature.json'
# note: command had no output on stdout or stderr
# RUN: at line 23
cp C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/version2.h C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/include/target.h
# executed command: cp 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/version2.h' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/include/target.h'
# note: command had no output on stdout or stderr
# RUN: at line 25
touch C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/session.timestamp
# executed command: touch 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/session.timestamp'
# note: command had no output on stdout or stderr
# RUN: at line 26
sed "s|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/create-outdated-module.json.template > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/create-outdated-module.json
# executed command: sed 's|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/create-outdated-module.json.template'
# note: command had no output on stdout or stderr
# RUN: at line 27
c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe -compilation-database C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/create-outdated-module.json > /dev/null
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe' -compilation-database 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/create-outdated-module.json'
# note: command had no output on stdout or stderr
# RUN: at line 30
cp C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/version3.h C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/include/target.h
# executed command: cp 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/version3.h' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/include/target.h'
# note: command had no output on stdout or stderr
# RUN: at line 31
touch C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/session.timestamp
# executed command: touch 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/session.timestamp'
# note: command had no output on stdout or stderr
# RUN: at line 33
sed "s|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/incremental.json.template > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/incremental.json
# executed command: sed 's|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/incremental.json.template'
# note: command had no output on stdout or stderr
# RUN: at line 34
c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe -compilation-database C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/incremental.json > /dev/null
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe' -compilation-database 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\build-session-validation-outdated-module.c.tmp/incremental.json'
# .---command stderr------------
# | Diagnostics while scanning dependencies for 'C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/use-outdated-module.c':
# | C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/use-outdated-module.c:10:11: fatal error: 'missing macro' file not found
# `-----------------------------
# 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/176537


More information about the cfe-commits mailing list