You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
What happened
deployments downloaded via the github connector only show a FAILURE result. Successful deployments have no result set in the cicd_deployments table (or DORA validation dashboard) and have OTHER set as
What do you expect to happen
Successful deployments should set result to SUCCESS and status DONE to generate deployments for DORA dashboards.
How to reproduce
Configure a github connector as part of a project with successful and failed deployements. ingest the logs. View the DORA validation dashboard or the underlying mysql database.
Anything else
Hello,
I am trying to get deployments to parse from gitops, but it appears that the converter is not parsing successful deployments properly. The cicd_deployments table's result column only contains values in the result column for failures. This seems to be because the converter code here is looking at the State member, which doesn't actually contain "SUCCESS" for a successful deployment, from the data I am seeing from calls to our github.com repository. We are creating these deployments via api from our pipeline setting status to "failure" or "success". (I'm running v.0.20.0-beta8)
Pulling deployments from the raw_github_graphql_deployment table seems to point out a flaw in this logic, at least for my data: Success is set on LastStatus only if it is the active deployment, so failed deployments will only be populated.
I think that the logic should be success = (State == "ACTIVE" && LatestStatus.State == "SUCCESS") || (State == "INACTIVE" && Latest.State == "INACTIVE")
Looking at the source code, it appears that it is expecting different behavior from the api than I see captured in my tables.
Search before asking
What happened
deployments downloaded via the github connector only show a FAILURE result. Successful deployments have no result set in the cicd_deployments table (or DORA validation dashboard) and have OTHER set as
What do you expect to happen
Successful deployments should set result to SUCCESS and status DONE to generate deployments for DORA dashboards.
How to reproduce
Configure a github connector as part of a project with successful and failed deployements. ingest the logs. View the DORA validation dashboard or the underlying mysql database.
Anything else
Hello,
I am trying to get deployments to parse from gitops, but it appears that the converter is not parsing successful deployments properly. The cicd_deployments table's result column only contains values in the result column for failures. This seems to be because the converter code here is looking at the State member, which doesn't actually contain "SUCCESS" for a successful deployment, from the data I am seeing from calls to our github.com repository. We are creating these deployments via api from our pipeline setting status to "failure" or "success". (I'm running v.0.20.0-beta8)
Pulling deployments from the raw_github_graphql_deployment table seems to point out a flaw in this logic, at least for my data: Success is set on LastStatus only if it is the active deployment, so failed deployments will only be populated.
Failed deployment:
Successful Deployment (inactive):
Successful Deployment (if it is currently active):
I think that the logic should be success = (State == "ACTIVE" && LatestStatus.State == "SUCCESS") || (State == "INACTIVE" && Latest.State == "INACTIVE")
Looking at the source code, it appears that it is expecting different behavior from the api than I see captured in my tables.
Link to question in slack
Version
v.0.20.0-beta8
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: