apache / incubator-devlake

Apache DevLake is an open-source dev data platform to ingest, analyze, and visualize the fragmented data from DevOps tools, extracting insights for engineering excellence, developer experience, and community growth.
https://devlake.apache.org/
Apache License 2.0
2.6k stars 528 forks source link

[Question][Module Name] How metrics co-related if source data comes from different platform #8189

Open diwangcanada opened 1 week ago

diwangcanada commented 1 week ago

Question

If I have code and PRs in GitHub, and pipelines in Jenkins, how does metrics co-related since they comes from two different platforms?

Screenshots

If applicable, add screenshots to help explain.

Additional context

Add any other context here.

klesh commented 3 days ago

They are correlated through the Project. In fact, the Project was specifically introduced for this purpose.

diwangcanada commented 2 days ago

How does DevLake know which PRs maps to which pipeline run? For example, I could have multiple PRs in Github, each of them triggers pipeline run in Jenkins, then how does DevLake know which pipeline workflow is for which PR?

klesh commented 2 days ago

By using commit_sha, you may check this doc for detail https://devlake.apache.org/docs/Metrics/LeadTimeForChanges#how-is-it-calculated