Skip to content

[Bug][gitlab] duration_sec has wrong value #6680

@antoniomuso

Description

@antoniomuso

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

The duration_sec attribute in the cicd_pipelines table Gitlab has the wrong value. His value is not the value taken by the API, but it is evaluated here https://github.com/apache/incubator-devlake/blob/d5276df04c02e7df0587b4a7616ddfe01625e5c0/backend/plugins/gitlab/tasks/pipeline_extractor.go#L86 .

What do you expect to happen

I expect to have the value returned by the API https://docs.gitlab.com/ee/api/pipelines.html#get-a-single-pipeline

How to reproduce

Query the cicd_pipelines you see that the value returned by the query is different from the one returned by the GitLab API

Anything else

No response

Version

v0.18.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions