Linux kbuild/kconfig development
 help / color / mirror / Atom feed
* [RFC] scripts: should run-clang-tools propagate analyzer failures?
@ 2026-09-28 23:47 omer zalman
  2026-12-01 22:02 ` Hamdy Abou El Anein
  0 siblings, 1 reply; 2+ messages in thread
From: omer zalman @ 2026-09-28 23:47 UTC (permalink / raw)
  To: Nathan Chancellor; +Cc: nsc, llvm, linux-kbuild

In v7.3-rc4, run-clang-tools.py prints clang-tidy output but does not use
the subprocess return code. A test analyzer that prints a failure and
exits 17 makes the wrapper exit 0.

Is the wrapper intended to signal analyzer failures to its caller? If so,
I can send a separate patch that returns nonzero when any analyzer worker
fails. I have tested the control flow with a stub analyzer; I have not
tested a full kernel compilation database.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] scripts: should run-clang-tools propagate analyzer failures?
  2026-09-28 23:47 [RFC] scripts: should run-clang-tools propagate analyzer failures? omer zalman
@ 2026-12-01 22:02 ` Hamdy Abou El Anein
  0 siblings, 0 replies; 2+ messages in thread
From: Hamdy Abou El Anein @ 2026-12-01 22:02 UTC (permalink / raw)
  To: Omer Zalman; +Cc: Nathan Chancellor, Nicolas Schier, llvm, linux-kbuild

Hi Omer,

I independently encountered the same issue in run-clang-tools.py
while reviewing Linux v7.4-rc5 and subsequently found your RFC.

I have prepared a small fix with AI assistance that propagates a
nonzero exit status from the clang-tidy workers to the caller,
while still running all workers and preserving their diagnostics.

I reproduced the issue and tested the fix with clang-tidy 23.1.5,
using small compilation databases in both clang-tidy and
clang-analyzer modes. All ten test scenarios passed. I have not
tested a full kernel compilation database.

Are you still planning to submit a patch for this issue? If not,
and if the maintainers agree that propagating failures is the
intended behavior, I would be happy to submit my implementation
with a Reported-by tag crediting you, subject to your consent.

I wanted to coordinate with you first to avoid duplicating your
work.

Best regards,
Hamdy Abou El Anein

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-01 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-28 23:47 [RFC] scripts: should run-clang-tools propagate analyzer failures? omer zalman
2026-12-01 22:02 ` Hamdy Abou El Anein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox