Skip to content

[clang] propagate failures from parallel wrapper commands - #2338

Merged
dulmarod merged 1 commit into
meta:mainfrom
VladimirMakaev:pr/clang-wrapper-failures-1127
Nov 30, 2026
Merged

dulmarod merged 1 commit into
meta:mainfrom
VladimirMakaev:pr/clang-wrapper-failures-1127

Conversation

@VladimirMakaev

Copy link
Copy Markdown
Contributor

With keep-going enabled, worker exceptions were logged but the clang wrapper
exited successfully. Compilation database capture therefore omitted rejected
commands from its failure count. Track each worker's failures and check its
final result before letting the wrapper succeed.

Callers using the compilation-error log line will now report previously silent
build failures when clang emits multiple driver errors. Successful compilation
commands still run, and the captured set in the regression is the same.

Test plan

The compilation database failure test uses two invalid driver flags and four
jobs; it fails on the parent and passes with this fix. Two complete suite runs
compare reports against the parent with no differences.

With keep-going enabled, worker exceptions were logged but the clang wrapper
exited successfully. Compilation database capture therefore omitted rejected
commands from its failure count. Track each worker's failures and check its
final result before letting the wrapper succeed.

Callers using the compilation-error log line will now report previously silent
build failures when clang emits multiple driver errors. Successful compilation
commands still run, and the captured set in the regression is the same.

## Test plan
The compilation database failure test uses two invalid driver flags and four
jobs; it fails on the parent and passes with this fix. Two complete suite runs
compare reports against the parent with no differences.
@meta-cla meta-cla Bot added the CLA Signed label Nov 27, 2026
@dulmarod
dulmarod merged commit dd4bda2 into meta:main Nov 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants