Commit c671cce
committed
ci: fix clang-tidy-diff path mismatch between RunsOn and GitHub-hosted runners
The gate job runs on RunsOn/AWS where GITHUB_WORKSPACE is /__w/...
The annotation job runs on ubuntu-latest where it is /home/runner/work/...
compile_commands.json bakes in absolute paths from the gate runner.
When clang-tidy-diff invokes clang-tidy on the annotation runner, it
reads the "directory" field and calls chdir() on the AWS-style path
which does not exist, causing a silent crash and empty fixes.yml.
Rewrite the workspace prefix in compile_commands.json before invoking
clang-tidy-diff so paths resolve correctly on the annotation runner.1 parent 1d77e04 commit c671cce
1 file changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
821 | 839 | | |
822 | 840 | | |
823 | 841 | | |
| |||
0 commit comments