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.   ### 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]
