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

Refactor list_large_dir tests to use storage client to delete directories instead of gcloud. #2905

Merged
merged 8 commits into from
Jan 20, 2025

Conversation

vipnydav
Copy link
Member

Description

This PR refactors the list_large_dir tests to use the storage client for directory deletion instead of gcloud, addressing frequent test failures caused by issues with directory removal using gcloud. Additionally, it updates the tests to utilize testify/stretchr as part of our migration to these libraries. The PR also enhances the DeleteAllObjectsWithPrefix method to perform object deletions in parallel.

Link to the issue in case of a bug fix.

Bug Link

Testing details

  1. Manual - Done
  2. Unit tests - NA
  3. Integration tests - Automated

@vipnydav vipnydav added the execute-integration-tests Run only integration tests label Jan 16, 2025
@vipnydav vipnydav requested a review from ashmeenkaur January 16, 2025 15:40
@vipnydav vipnydav requested review from Tulsishah and a team as code owners January 16, 2025 15:40
@kislaykishore kislaykishore requested review from a team, BrennaEpp and tritone and removed request for a team and BrennaEpp January 16, 2025 15:41
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.03%. Comparing base (5a31b76) to head (8a40de6).
Report is 22 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2905      +/-   ##
==========================================
- Coverage   76.20%   76.03%   -0.18%     
==========================================
  Files         118      119       +1     
  Lines       16637    16685      +48     
==========================================
+ Hits        12679    12686       +7     
- Misses       3426     3456      +30     
- Partials      532      543      +11     
Flag Coverage Δ
unittests 76.03% <ø> (-0.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vipnydav vipnydav merged commit 06737af into master Jan 20, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
execute-integration-tests Run only integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants