Negative duration time in a workflow run.
Description
There's a negative duration time in one of my workflow runs. I was testing my runner after moving virtual machines and encountered consecutive failures. I did rerun jobs and found this negative duration record. I don't even know where went wrong, as it's quite a rare occurrence.
Gitea Version
1.25.0+dev-86-g7149c9c55d built with GNU Make 4.4.1, go1.24.3 : bindata, timetzdata, sqlite, sqlite_unlock_notify
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
action_run:
action_job:
action_task:
Git Version
2.47.2
Operating System
Debian
How are you running Gitea?
Gitea in Docker. Nightly version from docker.gitea.com
Database
PostgreSQL
I just edited post adding relevant database records I find.
I believe the data that yield to the negative duration in previous_duration has been deleted at the the time of the rerun and saving the previous_duration field.
Maybe race conditions while trying to rerun multiple jobs one by one, while the previous rerun job is still running.
Could be so many things.
OK
I'm having a similar issue with incorrect durations as shown below:
Gitea 1.25.0-rc0 Gitea Actions Runner 0.2.13 on Windows amd64