-
Notifications
You must be signed in to change notification settings - Fork 101
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 regression in chunk deletion for openstack provider #703
Fix regression in chunk deletion for openstack provider #703
Conversation
unit tests failed:
I would suggest let's address all of these in separate PR, let's keep this PR for bug fix, so that it become easy and quick to review. WDYT? |
unit tests also failed locally [AfterSuite]
/Users/I539698/Desktop/review/etcd-backup-restore/pkg/snapstore/snapstore_suite_test.go:43
time="2024-01-08T14:53:39+05:30" level=info msg="Shutting down test server..."
[AfterSuite] PASSED [0.000 seconds]
------------------------------
Summarizing 3 Failures:
[FAIL] Save, List, Fetch, Delete from mock snapstore When Only v1 is present [It] When Only v1 is present
/Users/I539698/Desktop/review/etcd-backup-restore/pkg/snapstore/snapstore_test.go:165
[FAIL] Save, List, Fetch, Delete from mock snapstore When both v1 and v2 are present [It] When both v1 and v2 are present
/Users/I539698/Desktop/review/etcd-backup-restore/pkg/snapstore/snapstore_test.go:217
[FAIL] Save, List, Fetch, Delete from mock snapstore When Only v2 is present [It] When Only v2 is present
/Users/I539698/Desktop/review/etcd-backup-restore/pkg/snapstore/snapstore_test.go:267
Ran 115 of 115 Specs in 3.519 seconds
FAIL! -- 112 Passed | 3 Failed | 0 Pending | 0 Skipped
--- FAIL: TestSnapstore (3.52s)
FAIL
Ginkgo ran 1 suite in 8.47315375s
Test Suite Failed I would suggest you can fix them in a separate PR. |
@ishan16696, @anveshreddy18, @seshachalam-yv You have pull request review open invite, please check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few nits
@ishan16696 thanks for your review. Addressed them. PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @shreyas-s-rao.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shreyas-s-rao for quickly fixing this issue.
LGTM!!
Please cherry-pick to branch |
* Fix bug in chunk deletion for openstack * Remove backward compatibility tests for GC, other minor fixes in snapshotter_test.go * Fix unit tests * Address review comments from @ishan16696 * Address review comments from @anveshreddy18
* Fix bug in chunk deletion for openstack * Remove backward compatibility tests for GC, other minor fixes in snapshotter_test.go * Fix unit tests * Address review comments from @ishan16696 * Address review comments from @anveshreddy18
* Fix bug in chunk deletion for openstack * Remove backward compatibility tests for GC, other minor fixes in snapshotter_test.go * Fix unit tests * Address review comments from @ishan16696 * Address review comments from @anveshreddy18
What this PR does / why we need it:
This PR fixes a recent regression in chunk deletion behavior for Openstack Swift snapshots. Additionally, remove backward compatibility tests between
v1
andv2
for garbage collection, sincev1
is no longer supported. Support forv1
backup directory structure in other parts of the code should be gradually removed as well, but not in this PR, to avoid scope spill.Which issue(s) this PR fixes:
Fixes #702
Special notes for your reviewer:
/cc @plkokanov
/invite @ishan16696 @anveshreddy18 @seshachalam-yv
Release note: