leric opened a new issue, #5988:
URL: https://github.com/apache/incubator-devlake/issues/5988

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   Pipeline duration seconds in cicd_pipelines table is different from gitlab, 
and inconsistant with cicd domain definition.
   
   
![image](https://github.com/apache/incubator-devlake/assets/863493/99f939e7-ee94-49c4-8eab-97e9c4821fa6)
   
   
![image](https://github.com/apache/incubator-devlake/assets/863493/1aeb3d9e-ebda-4389-957f-7f18214ae631)
   
   
   ### What do you expect to happen
   
   Pipeline duration time should be execution time of a pipeline, in gitlab ci, 
there's a created_at and started_at for a pipeline, meaning a pipeline could be 
started after creation, it's possible for a pipeline waiting in queue for a 
long time. pipeline duration should be `finished_at- started_at`.  
https://docs.gitlab.com/ee/api/pipelines.html
   In devlake cicd domain model, we only have a created_date in cicd_pipelines 
table, and in gitlab implemention, create_time is set to gitlab pipeline 
created_at, so the duration time is not consistant with domain model definision.
   
   ### How to reproduce
   
   Sync any gitlab cicd data, find a pipeline have a different created_at and 
started_at
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   v0.18
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to