[Bug][plugins/dora] incident_deploy_connector
is not matching incident with deployments properly
#8150
Open
3 tasks done
Labels
component/plugins
This issue or PR relates to plugins
devops
Something about CI/CD (devops)
type/bug
This issue is a bug
Search before asking
What happened
DORA has introduced a patch to the definition of CFR in its 2023 report:
The definition has changed to only consider those downtimes as incidents, caused by a deployment. That is for example, if we have two consecutive deployments with 12 hours between them, and some incidents happened after 6 hours after the first deployment, we shouldn't count that incident as a change that led to a failure.
However, in the DORA plugin in Devlake, we match any incident with the latest deployment before it, ignoring the time length between them. This leads to imprecise metrics.
What do you expect to happen
I think a preferred solution is to configure the time length between a deployment and an incident, which we consider as a software fault. That is, having some variable in code that is configurable and user can configure it based on their needs.
How to reproduce
Create one deployment and an incident far after it, that incident will match the deployment.
Anything else
No response
Version
v1.0.1@e061ef2
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: