gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Negative duration time in a workflow run.

Open NorthRealm opened this issue 10 months ago • 3 comments

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

Image

Image

action_run:

Image

action_job:

Image

action_task:

Image

Git Version

2.47.2

Operating System

Debian

How are you running Gitea?

Gitea in Docker. Nightly version from docker.gitea.com

Database

PostgreSQL

NorthRealm avatar Jun 02 '25 09:06 NorthRealm

I just edited post adding relevant database records I find.

NorthRealm avatar Jun 02 '25 10:06 NorthRealm

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.

ChristopherHX avatar Jun 02 '25 10:06 ChristopherHX

OK

Soft-icode avatar Jun 02 '25 13:06 Soft-icode

I'm having a similar issue with incorrect durations as shown below:

Image Image

Gitea 1.25.0-rc0 Gitea Actions Runner 0.2.13 on Windows amd64

merlinz01 avatar Oct 01 '25 00:10 merlinz01