[all-commits] [llvm/llvm-project] b5d28f: [Debugify][OriginalDIMode] Make HTML reporting inf...

niktesic via All-commits all-commits at lists.llvm.org
Thu Sep 29 07:48:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5d28f3ea5069540584b7f8fdb67ae2b9f79ce1c
      https://github.com/llvm/llvm-project/commit/b5d28f3ea5069540584b7f8fdb67ae2b9f79ce1c
  Author: Nikola Tesic <nikola.tesic at syrmia.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/Debugify.cpp
    A llvm/test/tools/llvm-original-di-preservation/Inputs/corrupted.json
    A llvm/test/tools/llvm-original-di-preservation/Inputs/expected-skipped.html
    M llvm/test/tools/llvm-original-di-preservation/basic.test
    M llvm/utils/llvm-original-di-preservation.py

  Log Message:
  -----------
  [Debugify][OriginalDIMode] Make HTML reporting infrastructure more resilient

Debugify in OriginalDebugInfo mode (verify-each-debuginfo-preserve), when used
in parallel builds of large projects, can produce incorrect report. More
precisely, simultaneous writes to JSON report file, could form incorrect JSON
objects, which describe found Debug Info bugs.
This patch uses the lock/unlock mechanism to protect JSON report file and also
makes script llvm/utils/llvm-original-di-preservation.py resilient to corrupted
lines in the report file. So, it ensures the creation of HTML report.

Differential Revision: https://reviews.llvm.org/D115616


  Commit: 8b38a2c0a55a9140115a91959326918d99bea435
      https://github.com/llvm/llvm-project/commit/8b38a2c0a55a9140115a91959326918d99bea435
  Author: Nikola Tesic <nikola.tesic at syrmia.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    A llvm/test/tools/llvm-original-di-preservation/Inputs/expected-compressed.html
    M llvm/test/tools/llvm-original-di-preservation/Inputs/expected-sample.html
    M llvm/test/tools/llvm-original-di-preservation/basic.test
    M llvm/utils/llvm-original-di-preservation.py

  Log Message:
  -----------
  [Debugify][OriginalDIMode] Update script to handle large JSON reports

This patch updates llvm/utils/llvm-original-di-preservation.py to create more
compact HTML verify-debuginfo-preserve reports by:
- removing duplicated debug info bugs,
- introducing -compress option to create highly compressed report.
Additionally, this patch makes script able to process very large JSON inputs.
That is done by reading & analyzing JSON report in chunks.

Differential Revision: https://reviews.llvm.org/D115617


Compare: https://github.com/llvm/llvm-project/compare/02bfe2de7c3e...8b38a2c0a55a


More information about the All-commits mailing list