Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Fix bad timestamps being reported #130941

Merged
merged 2 commits into from
Mar 13, 2025
Merged

Conversation

Keenuts
Copy link
Contributor

@Keenuts Keenuts commented Mar 12, 2025

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.

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.
@Keenuts Keenuts requested a review from boomanaiden154 March 12, 2025 10:51
@Keenuts Keenuts merged commit 1282878 into llvm:main Mar 13, 2025
11 checks passed
frederik-h pushed a commit to frederik-h/llvm-project that referenced this pull request Mar 18, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants