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: Check HTTP Status code for curl download #586

Merged
merged 8 commits into from
Aug 31, 2024

Conversation

ishaansehgal99
Copy link
Collaborator

@ishaansehgal99 ishaansehgal99 commented Aug 30, 2024

Reason for Change:
For some URLs, curl command won't return an error code and will output an empty file. This causes data-downloader init container to pass when it shouldn't.

In this PR we explicitly check the HTTP status code to ensure the dataset downloaded completed successfully.

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.69%. Comparing base (5c30038) to head (b57937b).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #586      +/-   ##
==========================================
- Coverage   58.18%   57.69%   -0.49%     
==========================================
  Files          30       30              
  Lines        2987     2988       +1     
==========================================
- Hits         1738     1724      -14     
- Misses       1149     1164      +15     
  Partials      100      100              

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

@ishaansehgal99 ishaansehgal99 merged commit f083822 into main Aug 31, 2024
8 of 9 checks passed
@ishaansehgal99 ishaansehgal99 deleted the Ishaan/fix-http-download branch August 31, 2024 03:13
smritidahal653 pushed a commit to smritidahal653/kaito that referenced this pull request Sep 18, 2024
**Reason for Change**:
For some URLs, curl command won't return an error code and will output
an empty file. This causes data-downloader init container to pass when
it shouldn't.

In this PR we explicitly check the HTTP status code to ensure the
dataset downloaded completed successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants