[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: Linux-->
# :penguin: Linux x64 Test Results
* 85470 tests passed
* 1209 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 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp
# executed command: rm -rf /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/build-session-validation-outdated-module.c /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/build-session-validation-outdated-module.c /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/include" > /home/gha/actions-runner/_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 /home/gha/actions-runner/_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=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/module-cache" >> /home/gha/actions-runner/_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=/home/gha/actions-runner/_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=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/session.timestamp" >> /home/gha/actions-runner/_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=/home/gha/actions-runner/_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" >> /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/session.timestamp
# executed command: touch /home/gha/actions-runner/_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
"/usr/bin/python3" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/generate-expensive-header.py A 2000000 > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/include/expensive-header.h
# executed command: /usr/bin/python3 /home/gha/actions-runner/_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
"/usr/bin/python3" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/generate-expensive-header.py B 500000 > /home/gha/actions-runner/_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: /usr/bin/python3 /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/version1.h /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/include/target.h
# executed command: cp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/version1.h /home/gha/actions-runner/_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|/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/prepare-expected-signature.json.template > /home/gha/actions-runner/_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|/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g' /home/gha/actions-runner/_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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-scan-deps -compilation-database /home/gha/actions-runner/_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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-scan-deps -compilation-database /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/version2.h /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/include/target.h
# executed command: cp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/version2.h /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/session.timestamp
# executed command: touch /home/gha/actions-runner/_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|/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/create-outdated-module.json.template > /home/gha/actions-runner/_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|/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g' /home/gha/actions-runner/_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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-scan-deps -compilation-database /home/gha/actions-runner/_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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-scan-deps -compilation-database /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/version3.h /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/include/target.h
# executed command: cp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/version3.h /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/session.timestamp
# executed command: touch /home/gha/actions-runner/_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|/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/incremental.json.template > /home/gha/actions-runner/_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|/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp|g' /home/gha/actions-runner/_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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-scan-deps -compilation-database /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/incremental.json > /dev/null
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-scan-deps -compilation-database /home/gha/actions-runner/_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 '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/build-session-validation-outdated-module.c.tmp/use-outdated-module.c':
# | /home/gha/actions-runner/_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