[webkit-changes] [WebKit/WebKit] 49272b: Add scripts that parse and compare static analyzer...

Brianna Fan noreply at github.com
Thu Mar 21 14:15:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 49272b1cbf82a0302b27f54f400ec8275bbaacc3
      https://github.com/WebKit/WebKit/commit/49272b1cbf82a0302b27f54f400ec8275bbaacc3
  Author: Brianna Fan <bfan2 at apple.com>
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
    A Tools/Scripts/compare-static-analysis-results.py
    A Tools/Scripts/generate-dirty-files.py

  Log Message:
  -----------
  Add scripts that parse and compare static analyzer HTML output
https://bugs.webkit.org/show_bug.cgi?id=269390
rdar://problem/122962791

Reviewed by David Kilzer.

These scripts will be used by a static analyzer bot to parse and compare HTML reports from static analysis.

* Tools/Scripts/compare-static-analysis-results.py: Added.
(parser):
(find_diff): Compares two files to find regressions and fixes.
(compare_project_results): Consolidates results per project.
(create_filtered_results_dir): Uses scan-build --generate-index-only to generate new index.html for new issues per project.
(main):
* Tools/Scripts/generate-dirty-files.py: Added. Takes in output from the static analyzer and extracts
the issue hash, file name, and line number per project and checker type.
(parser):
(parse_results_file): Extracts data from HTML comments.
(find_project_results): Writes data per checker.
(find_all_results): Summarizes all results.
(main):

Canonical link: https://commits.webkit.org/276495@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list