Negative duration time in a workflow run. #14536

Open
opened 2025-11-02 11:15:34 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @NorthRealm on GitHub (Jun 2, 2025).

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_run_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

Originally created by @NorthRealm on GitHub (Jun 2, 2025). ### 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](https://github.com/user-attachments/assets/045d09ba-8e5e-4612-8813-e0e1066c13be) ![Image](https://github.com/user-attachments/assets/334be537-6a25-4509-a2a2-f08200cc34e9) action_run: ![Image](https://github.com/user-attachments/assets/ea44a154-3e99-4b36-9381-07c0908b6389) action_run_job: ![Image](https://github.com/user-attachments/assets/478b746f-a755-4633-89cb-4289e03be338) action_task: ![Image](https://github.com/user-attachments/assets/3ca4396f-9935-417c-8c99-6ae27a59f43b) ### Git Version 2.47.2 ### Operating System Debian ### How are you running Gitea? Gitea in Docker. Nightly version from `docker.gitea.com` ### Database PostgreSQL
GiteaMirror added the topic/gitea-actionstype/bug labels 2025-11-02 11:15:34 -06:00
Author
Owner

@NorthRealm commented on GitHub (Jun 2, 2025):

I just edited post adding relevant database records I find.

@NorthRealm commented on GitHub (Jun 2, 2025): I just edited post adding relevant database records I find.
Author
Owner

@ChristopherHX commented on GitHub (Jun 2, 2025):

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 commented on GitHub (Jun 2, 2025): 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.
Author
Owner

@Soft-icode commented on GitHub (Jun 2, 2025):

OK

@Soft-icode commented on GitHub (Jun 2, 2025): **OK**
Author
Owner

@merlinz01 commented on GitHub (Oct 1, 2025):

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 commented on GitHub (Oct 1, 2025): I'm having a similar issue with incorrect durations as shown below: <img width="1202" height="193" alt="Image" src="https://github.com/user-attachments/assets/795e154d-0eac-4f39-8869-63f0a5df0cff" /> <img width="1212" height="232" alt="Image" src="https://github.com/user-attachments/assets/8d301029-21e1-4a3e-9a91-5f1bf1ecb6f0" /> Gitea 1.25.0-rc0 Gitea Actions Runner 0.2.13 on Windows amd64
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14536