This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][tests] Understand when diagnostics change between builds
ClosedPublic

Authored by vsavchenko on Aug 5 2020, 7:39 AM.

Details

Summary

Before the patch SATest compare, produced quite obscure results
when something about the diagnostic have changed (i.e. its description
or the name of the corresponding checker) because it was simply two
lists of warnings, ADDED and REMOVED. It was up to the developer
to match those warnings, understand that they are essentially the
same, and figure out what caused the difference.

This patch introduces another category of results: MODIFIED.
It tries to match new warnings against the old ones and prints out
clues on what is different between two builds.

Diff Detail

Event Timeline

vsavchenko created this revision.Aug 5 2020, 7:39 AM
vsavchenko requested review of this revision.Aug 5 2020, 7:39 AM
NoQ accepted this revision.Aug 5 2020, 6:09 PM

Thx!

This is one of the scripts that really deserves tests outside of buildbots. Like, it's not uncommon to use it "by hand".

This revision is now accepted and ready to land.Aug 5 2020, 6:09 PM