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 build resolution #250

Merged
merged 3 commits into from
Mar 1, 2018
Merged

Fix build resolution #250

merged 3 commits into from
Mar 1, 2018

Conversation

msimacek
Copy link
Contributor

@msimacek msimacek commented Mar 1, 2018

Embarassing bug, which caused data loss (== no dependency changes reported) in production. Also there was a bug in the tests, which caused the bug to go undetected, despite the method was covered properly.

I already hotfixed production and triggered re-resolution of affected builds (which unfortunately won't work for builds whose repo is already dead).

msimacek added 3 commits March 1, 2018 16:27
dependency_keys were accidentaly deleted before they were used for
comparison.
So that it also tests that the two parts of the process don't stomp on
each other's feet.
This is the reason why the tests didn't hit the dependency_keys
overwriting bug.
@codecov
Copy link

codecov bot commented Mar 1, 2018

Codecov Report

Merging #250 into master will increase coverage by 0.17%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #250      +/-   ##
==========================================
+ Coverage   82.83%   83.01%   +0.17%     
==========================================
  Files          41       41              
  Lines        3368     3368              
==========================================
+ Hits         2790     2796       +6     
+ Misses        578      572       -6
Impacted Files Coverage Δ
koschei/backend/services/build_resolver.py 93.33% <100%> (+2.22%) ⬆️
koschei/db.py 93.3% <0%> (+0.41%) ⬆️
koschei/models.py 94.27% <0%> (+0.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78f98d9...210367e. Read the comment docs.

@mizdebsk mizdebsk self-assigned this Mar 1, 2018
Copy link
Member

@mizdebsk mizdebsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, tests pass and fail with the fix reverted.

@mizdebsk mizdebsk merged commit 5b6b23d into master Mar 1, 2018
@mizdebsk mizdebsk deleted the fix-build-resolution branch March 1, 2018 16:53
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.

2 participants