Skip to content

Conversation

@kamranf
Copy link
Contributor

@kamranf kamranf commented Jan 9, 2023

When a workflow is rerun using Re-run failed jobs option in Github UI, the jobs which were successful in the previous run will report the same start time as before under the new workflow run metrics. Since we use the earliest started_at and latest completed_at to calculate workflow duration, above issue will lead to incorrectly high duration for the rerun workflow. The correct approach would be to use the run_started_at value of the corresponding workflow run to calculate the duration.

Screen Shot 2023-01-09 at 3 52 09 PM

@kamranf kamranf marked this pull request as ready for review January 9, 2023 21:01
@kamranf kamranf changed the title Fix bug with reporting duration of rerun workflows Fix bug with over-reporting duration of rerun workflows Jan 9, 2023
Copy link

@charlesging charlesging left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! nice catch

@kamranf kamranf merged commit 4d4ffbe into main Jan 11, 2023
@kamranf kamranf deleted the kamranf/TOOLS-5639 branch January 11, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants