Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
dosubot[bot] commented on issue #8790: URL: https://github.com/apache/incubator-devlake/issues/8790#issuecomment-4180021830 Hi @aitesting0! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the incubator-devlake team. Hi! It looks like you mentioned me — is there something specific I can help with regarding this issue? I already shared some findings above about the current state of the change lead time calculator bug. Let me know if you'd like me to dig deeper into any aspect of it. *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).* --- How did I do? [Good](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response#message_id=815ecca1-e7b3-4311-83ab-58286c94932e&feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer#message_id=815ecca1-e7b3-4311-83ab-58286c94932e&feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources#message_id=815ecca1-e7b3-4311-83ab-58286c94932e&feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose#message_id=815ecca1-e7b3-4311-83ab-58286c94932e&feedback_type=too_verbose) | [Hallucination](https:// app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination#message_id=815ecca1-e7b3-4311-83ab-58286c94932e&feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report#message_id=815ecca1-e7b3-4311-83ab-58286c94932e&feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other#message_id=815ecca1-e7b3-4311-83ab-58286c94932e&feedback_type=other) [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge) [](https://cursor.com/link/prompt?text=Hi%21%20It%20looks%20like%20you%20mentioned%20me%20%E2%80%94%20is%20there%20something%20specific%20I%20can%20help%20with%20regarding%20this%20issue%3F%20I%20already%20shared%20some%20findings%20above%20about%20the%20current%20state%20of%20the%20change%20lead%20time%20calculator%20bug.%20Let%20me%20know%20if%20you%27d%20like%20me%20to%20dig%20deeper%20into%20any%20aspect%20of%20it.) [](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord) [](ht tps://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8790) -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
aitesting0 commented on issue #8790: URL: https://github.com/apache/incubator-devlake/issues/8790#issuecomment-4180017925 @dosubot -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
github-actions[bot] commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-3703103018 This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
github-actions[bot] closed issue #8188: [Bug][DORA-change_lead_time_calculator] Wrong deployment reference URL: https://github.com/apache/incubator-devlake/issues/8188 -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
github-actions[bot] commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-3690648363 This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
petkostas commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-3446292242 Will test next week -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
github-actions[bot] commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-3445318261 This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
Startrekzky commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-3218795086 Hi @petkostas , thanks for the proposal. I'll discuss with @klesh to figure out how to optimize this part. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
petkostas commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-3217084639 I am re-opening this as it is still affecting some of our repositories and raising questions from engineering teams. I took some time to think about a possible approach which would possibly reduce the effect. @Startrekzky I am thinking of the following approach: Adjust `getDeploymentCommit` to use a two-phase strategy: - Direct match: if there exists a successful PRODUCTION deployment in the project whose `commit_sha` equals the PR’s merge commit, return it. This is precise and does not risk the first-deployment over-mapping problem. - Fallback to diff-based mapping: retain the current strategy (including the filter `dc.prev_success_deployment_commit_id <> ''`) to avoid mapping to the first deployment via diffs. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
github-actions[bot] commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-3134492047 This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
github-actions[bot] closed issue #8188: [Bug][DORA-change_lead_time_calculator] Wrong deployment reference URL: https://github.com/apache/incubator-devlake/issues/8188 -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
github-actions[bot] commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-3105234361 This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
kostas-petrakis commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2904545532 Following up on this issue now that we've resolved the more urgent missing DORA calculations. I can confirm that we're still seeing the same behavior on some of the newly onboarded services. As @hera-a-glitch pointed out, the behavior isn't entirely consistent—likely due to recalculation of DORA? (need to check) From what I’ve observed, this issue only affects the first batch of collected commits. The current logic attempts to find a previous deployment; if none is found, it links the PR deployment to the latest available one (if I’m recalling the behavior correctly). I'll dig deeper into this and explore potential solutions. Thanks for your patience! -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
hera-a-glitch commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2904263681 I am seeing similar behaviour although a different use case. We have historic PRs that do not have any deployment commits associated. During testing I noticed that all historic PRs without a associated deployment can be simultaneously populated by a deployment commit ID that has no link to it. This doesnt happen all the time so I am investigating what might trigger it. I thought looking at the GO code that there would have to be a merge commit hash match for a deployment commit ID to associate with a pull requesr in project PR metrics. This is hugely annoying for our usecase as it completely skews the median lead time for change. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
nicolavolpini commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2865521489 Hello Kostas, thanks for the update. We are on `v1.0.2-beta7`. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
kostas-petrakis commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2863761143 Hi @nicolavolpini I have to revisit this issue, as my original tests were performed over older versions of Apache Devlake locally. Since then we deployed `v1.0.2-beta4` for "production" use. I will try to run a local experiment at some point and see if this case is still applicable. Could you share which version of Apache Devlake you have deployed? -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
nicolavolpini commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2862129754 Hello @kostas-petrakis , we are also keeping track of this ticket since we are affected. Have you found out anything more about your affected PRs? Thanks. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
marktuckcp commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2751382217 Appreciate it @kostas-petrakis ! We'll keep an eye on this thread, thanks -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
kostas-petrakis commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2684241079 We are in the process of analyzing some of the PRs that have been wrongly mapped to non relevant deployments. This is likely due to the previously mentioned query, which appears to be producing inaccurate results during transformation. We are currently investigating affected PRs. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
marktuckcp commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2642276275 We've been tracking this and it's still an issue for us! Although we're transitioning over to Github Actions we still have a lot of teams using Github for commits and an old Jenkins set up for deploy. Where devlake is finding PRs within Github but can't find a corresponding deploy it's choosing (we think) the first and so earliest deploy available to it, creating massive data skews of 10s of weeks. If there is a PR that says it's been deployed but devlake can't find a deploy job we'd expect it to just not include that PR at all -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
github-actions[bot] commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2629647287 This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
kostas-petrakis commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2517669470 @Startrekzky thanks for the explanation. However, in my specific use case (and I assume to others looking at the upvotes), I've observed that PRs associated with the initial recorded commit are being mapped to an incorrect deployment. This seems to introduce a different kind of mis-mapping issue, which affects the accuracy of our metrics and analyses (as explained with the data above). I'm wondering if there might be a way to refactor the PR-deployment mapping process to handle this situation more accurately. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
Startrekzky commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2503573757 Hi @kostas-petrakis , I saw your PR https://github.com/apache/incubator-devlake/pull/8206 one of DevLake's strategies of `PR-deployment_commit` mapping is to skip the mapping of the very first `deployment_commit` in DevLake. Why? Because in many cases, 1. Users will collect both `PRs` and `deployment_commits` within a selected timeframe. 2. When finding a PR's associated deployment_commit, we need to diff the commits between every consecutive deployment_commits, which means we don't know the `precise commits` deployed by the very first deployment_commit collected by DevLake. 3. Hence, we don't know the PRs deployed by the very first deployment_commit. In your case, the PR `github:GithubPullRequest:4:1806504909` might be deployed by the first deployement_commit `github:GithubRun:4:435823930:8567339272:https:\/\/github.com\/l*\/` for sure. However, if we allow the first deployment_commit mapped to PRs. If the `deploy time` between the prior deployment to the first deployment collected by DevLake, many irrelevant PRs merged during this period will be mis-mapped to the deployment commit (some other users had encountered the problem). Finally, we adopted the above strategy of excluding the very first deployment when mapping to PR. -- 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]
Re: [I] [Bug][DORA-change_lead_time_calculator] Wrong deployment reference [incubator-devlake]
dosubot[bot] commented on issue #8188: URL: https://github.com/apache/incubator-devlake/issues/8188#issuecomment-2470491718 Hello @kostas-petrakis! I'm here to help you with any bugs, questions, or contributions you have. Let me know how I can assist you while we wait for a human maintainer. The issue you're encountering seems to be related to how the `getDeploymentCommit` function handles cases where the `prev_success_deployment_commit_id` is empty. This situation typically occurs for the first deployment in a `cicd_scope_id/repo_url/env` grouping, as the `EnrichPrevSuccessDeploymentCommit` function resets this field to an empty string for the first deployment in a new set of consecutive deployments [[1]](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/dora/tasks/prev_deployment_commit_enricher.go). In the `change_lead_time_calculator.go` module, the logic for selecting the deployment commit might not be correctly handling cases where `prev_success_deployment_commit_id` is empty, leading to incorrect deployment references being linked. This could explain why the deployment time is inaccurately reported as 30 weeks. To address this, you might need to adjust the logic in the `getDeploymentCommit` function to ensure it correctly identifies and links the first deployment in such groupings. This could involve modifying the query to account for cases where `prev_success_deployment_commit_id` is empty and ensuring it selects the appropriate deployment commit for the first deployment scenario. Since this issue is specific to the first deployment in each grouping, reviewing and potentially updating the logic in both the `getDeploymentCommit` and `EnrichPrevSuccessDeploymentCommit` functions to handle these edge cases more effectively would be a good starting point. *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- 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]
