Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pr should be connected to a failed deployment commit #6269

Conversation

klesh
Copy link
Contributor

@klesh klesh commented Oct 18, 2023

Summary

Based on the description of #6224, it appears that the PR is connected to a failed deployment commit which is obviously wrong.
By examining the code, I found a possible cause of the problem:

  1. Refdiff would only calculate commits_diffs for SUCCEEDED deployment commits
  2. DORA would connect PR to the deployment commit by looking up the commits_diffs table, but it doesn't check whether the deployment commit was successful.
  3. So, if somehow the failed deployment commit existed in the commits_diffs table, it breaks

Does this close any open issues?

Closes #6224

Screenshots

The case has been added to the e2e-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant