Job running time always titled as “Elapsed time”
Summary
Following !75811 (merged), the running time of a job in the job sidebar now always shows Elapsed time and never Duration.
Steps to reproduce
- Trigger a pipeline
- Open a job
- See that the running time of the job is labelled as Elapsed time
- Wait for the job to complete (fail or pass)
- See that the running time is still labelled as Elapsed time
Example Project
Job: https://gitlab.com/KevSlashNull/gitlab/-/jobs/1875922875
What is the current bug behavior?
The running time of a job is labelled as Elapsed time, regardless whether the job is running or not.
What is the expected correct behavior?
The running time of a job is labelled according to the following table:
Job is running | Job has finished |
---|---|
Elapsed time | Duration |
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Possible fixes
I tested this locally and it looks like the job doesn’t have the finished_at
field value. That means that the label is always Elapsed time in app/assets/javascripts/jobs/components/sidebar_job_details_container.vue
.