[all-commits] [llvm/llvm-project] 128287: [CI] Fix bad timestamps being reported (#130941)

Nathan Gauër via All-commits all-commits at lists.llvm.org
Thu Mar 13 02:18:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1282878c52cb116093c6e3e8cde0c2623b624802
      https://github.com/llvm/llvm-project/commit/1282878c52cb116093c6e3e8cde0c2623b624802
  Author: Nathan Gauër <brioche at google.com>
  Date:   2025-03-13 (Thu, 13 Mar 2025)

  Changed paths:
    M .ci/metrics/metrics.py

  Log Message:
  -----------
  [CI] Fix bad timestamps being reported (#130941)

Yesterday, the monitoring reported a job queued for 23h59. After some
checks, it appears no such job existed: the age of the workflows on
completion was at most 5 hours during the last 48 hours.

After some digging, I found out GitHub could return a job with a start
date slightly before the creation date, or completion date before start
date.
This would cause python to compute a negative timedelta, which would
then be reported in grafana as a full 24h delta due to the conversions.

Adding code to ignore negative delta, but logging them.



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