[all-commits] [llvm/llvm-project] b202c0: [lit] Include zero-duration tests in the --time-te...

Manuel Carrasco via All-commits all-commits at lists.llvm.org
Fri Sep 25 01:48:29 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b202c00d967c22f5d4d83561024690f1de05bc01
      https://github.com/llvm/llvm-project/commit/b202c00d967c22f5d4d83561024690f1de05bc01
  Author: Manuel Carrasco <Manuel.Carrasco at amd.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M llvm/utils/lit/lit/main.py
    M llvm/utils/lit/lit/util.py
    A llvm/utils/lit/tests/unit/Histogram.py

  Log Message:
  -----------
  [lit] Include zero-duration tests in the --time-tests histogram (#226132)

`--time-tests` treated an elapsed time of 0 as missing, so they were
omitted from the histogram. That made time-tests.py flaky when FileCheck
expected every test to be listed.

The PR also avoids log(0) when every recorded time is zero.

Fixes
https://github.com/llvm/llvm-project/pull/208444#issuecomment-5805067757.



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


More information about the All-commits mailing list